/** * Get this property. */ public String getProperty(String strKey) { return ((PropertiesField)this.getField(Product.PROPERTIES)).getProperty(strKey); } /**
/** * Get this property. */ public String getProperty(String strKey) { return ((PropertiesField)this.getField(Product.PROPERTIES)).getProperty(strKey); } /**
/** * Do the physical move operation. */ public int moveSourceToDest(boolean bDisplayOption, int iMoveMode) { String strTemplate = ((PropertiesField)m_fldSource).getProperty(DBParams.TEMPLATE); if ((strTemplate == null) || (strTemplate.length() == 0)) return DBConstants.NORMAL_RETURN; return m_fldDest.setString(strTemplate, bDisplayOption, iMoveMode); // Move dependent field to here } });
/** * Get this property from this record. */ public String getProperty(String strKey) { String strProperty = this.getMessageProperty(strKey); if (strProperty == null) strProperty = ((PropertiesField)this.getField(MessageLog.kMessageHeaderProperties)).getProperty(strKey); if (strProperty == null) strProperty = ((PropertiesField)this.getField(MessageLog.kMessageInfoProperties)).getProperty(strKey); if (strProperty == null) strProperty = ((PropertiesField)this.getField(MessageLog.kMessageTransportProperties)).getProperty(strKey); return strProperty; } /**
/** * Retrieve (in string format) from this field. * @return The data in string format. */ public String getString() { String string = null; // By default, DO NOT Decrypt if (m_bDecryptField) return super.getString(); if (this.getField() instanceof PropertiesField) { // Always PropertiesField field = (PropertiesField)this.getField(); int iStringLength = 0; if (field.getProperty("length") != null) iStringLength = Integer.parseInt(field.getProperty("length")); StringBuffer sb = new StringBuffer(); if (field.getProperty("last4") != null) sb.append(field.getProperty("last4")); for (; iStringLength > 4; iStringLength--) { sb.insert(0, "*"); } string = sb.toString(); } return string; }
/** * Retrieve (in string format) from this field. * @return The data in string format. */ public String getString() { String string = null; // By default, DO NOT Decrypt if (m_bDecryptField) return super.getString(); if (this.getField() instanceof PropertiesField) { // Always PropertiesField field = (PropertiesField)this.getField(); int iStringLength = 0; if (field.getProperty("length") != null) iStringLength = Integer.parseInt(field.getProperty("length")); StringBuffer sb = new StringBuffer(); if (field.getProperty("last4") != null) sb.append(field.getProperty("last4")); for (; iStringLength > 4; iStringLength--) { sb.insert(0, "*"); } string = sb.toString(); } return string; }
/** * Retrieve (in string format) from this field. * @return The data in string format. */ public String getString() { String string = null; // By default, DO NOT Decrypt if (m_bDecryptField) return super.getString(); if (this.getField() instanceof PropertiesField) { // Always PropertiesField field = (PropertiesField)this.getField(); int iStringLength = 0; if (field.getProperty("length") != null) iStringLength = Integer.parseInt(field.getProperty("length")); StringBuffer sb = new StringBuffer(); if (field.getProperty("last4") != null) sb.append(field.getProperty("last4")); for (; iStringLength > 4; iStringLength--) { sb.insert(0, "*"); } string = sb.toString(); } return string; }
/** * Retrieve (in string format) from this field. * @return This property from the property field. */ public String getString() { if (this.getField() instanceof PropertiesField) // Always return ((PropertiesField)this.getField()).getProperty(m_strProperty); return DBConstants.BLANK; } /**
/** * Retrieve (in string format) from this field. * @return This property from the property field. */ public String getString() { if (this.getField() instanceof PropertiesField) // Always return ((PropertiesField)this.getField()).getProperty(m_strProperty); return DBConstants.BLANK; } /**
/** * Get the value associated with this key. * @param strName The key to lookup. * @return The value for this sub-key. */ public String getProperty(String strName) { Record recUserRegistration = this.getUserRegistration(); return ((PropertiesField)recUserRegistration.getField(UserRegistrationModel.PROPERTIES)).getProperty(strName); } /**
/** * Get the value associated with this key. * @param strName The key to lookup. * @return The value for this sub-key. */ public String getProperty(String strName) { Record recUserRegistration = this.getUserRegistration(); return ((PropertiesField)recUserRegistration.getField(UserRegistration.kProperties)).getProperty(strName); } /**
/** * Retrieve (in string format) from this field. * @return This property from the property field. */ public String getString() { if (this.getField() instanceof PropertiesField) // Always return ((PropertiesField)this.getField()).getProperty(m_strProperty); return DBConstants.BLANK; } /**
/** * Get this property. */ public String getProperty(String strKey) { if (TrxMessageHeader.DESTINATION_PARAM.equalsIgnoreCase(strKey)) return this.getField(Vendor.WEB).toString(); else return ((PropertiesField)this.getField(Vendor.PROPERTIES)).getProperty(strKey); }
/** * Set this property in the user's property area. * @return The language code. */ public String getLanguage(boolean bCheckLocaleAlso) { Record recUserInfo = this.getUserInfo(); String strLanguage = null; if (recUserInfo != null) strLanguage = ((PropertiesField)recUserInfo.getField(UserInfo.kProperties)).getProperty(DBParams.LANGUAGE); if ((strLanguage == null) || (strLanguage.length() == 0)) strLanguage = super.getLanguage(bCheckLocaleAlso); return strLanguage; } /**
/** * Set this property in the user's property area. * @return The language code. */ public String getLanguage(boolean bCheckLocaleAlso) { Record recUserInfo = (Record)this.getUserInfo(); String strLanguage = null; if (recUserInfo != null) strLanguage = ((PropertiesField)recUserInfo.getField(UserInfoModel.PROPERTIES)).getProperty(DBParams.LANGUAGE); if ((strLanguage == null) || (strLanguage.length() == 0)) strLanguage = super.getLanguage(bCheckLocaleAlso); return strLanguage; } /**
/** * GetErrorMessage Method. */ public String getErrorMessage(String iStatusType) { return ((PropertiesField)this.getField(BookingDetail.ERROR_PROPERTIES)).getProperty(this.getFieldParam(this.getField(iStatusType)) + '.' + BookingDetail.MESSAGE_PARAM + '.' + BookingDetail.ERROR_PARAM); } /**
/** * GetErrorMessage Method. */ public String getErrorMessage(String iStatusType) { return ((PropertiesField)this.getField(BookingDetail.ERROR_PROPERTIES)).getProperty(this.getFieldParam(this.getField(iStatusType)) + '.' + BookingDetail.MESSAGE_PARAM + '.' + BookingDetail.ERROR_PARAM); } /**
/** * GetControlProperty Method. */ public String getControlProperty(String strKey, String strDefaultValue) { String strValue = ((PropertiesField)this.getRecord(MessageControl.kMessageControlFile).getField(MessageControl.kProperties)).getProperty(strKey); if (strValue == null) { if (strDefaultValue == null) strDefaultValue = this.getDefaultValue(strKey); strValue = strDefaultValue; } return strValue; } /**
/** * AddSchema Method. */ public void addSchema(String version, TypesType typesType, MessageInfo recMessageInfo) { String name = this.fixName(recMessageInfo.getField(MessageInfo.kDescription).toString()); Import importel = schemaFactory.createImport(); typesType.getAny().add(importel); String code = recMessageInfo.getField(MessageInfo.kCode).toString(); if (code == null) code = name; String namespace = ((PropertiesField)recMessageInfo.getField(MessageInfo.kMessageProperties)).getProperty(MessageInfo.NAMESPACE); String element = ((PropertiesField)recMessageInfo.getField(MessageInfo.kMessageProperties)).getProperty(MessageInfo.ELEMENT); String schemaLocation = ((PropertiesField)recMessageInfo.getField(MessageInfo.kMessageProperties)).getProperty(MessageInfo.SCHEMA_LOCATION); if (namespace == null) namespace = this.getMessageControl().getNamespaceFromVersion(version); if (element == null) if (code != null) element = code; if (schemaLocation == null) if (code != null) schemaLocation = code + ".xsd"; schemaLocation = this.getMessageControl().getSchemaLocation(version, schemaLocation); if (namespace != null) importel.setNamespace(namespace); importel.setSchemaLocation(schemaLocation); } /**
/** * Add the destination information of this person to the message. */ public TrxMessageHeader addDestInfo(TrxMessageHeader trxMessageHeader) { String strMessageTransport = (String)trxMessageHeader.get(MessageTransport.SEND_MESSAGE_BY_PARAM); if (((MessageTransport.SOAP.equalsIgnoreCase(strMessageTransport)) || (MessageTransport.XML.equalsIgnoreCase(strMessageTransport))) && (trxMessageHeader.get(TrxMessageHeader.DESTINATION_PARAM) == null)) { String strDestination = ((PropertiesField)this.getField(Vendor.PROPERTIES)).getProperty(TrxMessageHeader.DESTINATION_MESSAGE_PARAM); if (strDestination != null) { if (strDestination.startsWith("/")) if (!this.getField(Person.WEB).isNull()) strDestination = this.getField(Person.WEB).toString() + strDestination; trxMessageHeader.put(TrxMessageHeader.DESTINATION_PARAM, strDestination); } else trxMessageHeader.put(TrxMessageHeader.DESTINATION_PARAM, this.getField(Person.WEB).toString()); } trxMessageHeader = super.addDestInfo(trxMessageHeader); return trxMessageHeader; } /**