Package com.avoka.fc.core.entity
Class SchemaSeed
- java.lang.Object
-
- org.apache.cayenne.PersistentObject
-
- org.apache.cayenne.CayenneDataObject
-
- com.avoka.core.entity.BaseEntity
-
- com.avoka.fc.core.entity.auto._SchemaSeed
-
- com.avoka.fc.core.entity.SchemaSeed
-
- All Implemented Interfaces:
IEntity
,Auditable
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
@CacheGroups("CONFIG") public class SchemaSeed extends _SchemaSeed implements Auditable
Provides an entity containing a blank seed file for a form, as well as configuration such as prefill mappings.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_XPATH_ABANDONMENT_REASON
The XPath used for the default "AbandonmentReason" configuration mappingstatic String
DEFAULT_XPATH_ATTACHMENTS
The XPath used for the default "Attachments" configuration mappingstatic String
DEFAULT_XPATH_PAYMENT_DETAILS
The XPath used for the default "Payment Details" configuration mappingstatic String
DEFAULT_XPATH_RECEIPT
The XPath used for the default "Receipt" configuration mappingstatic String
DEFAULT_XPATH_SIGNATURES
The XPath used for the default "Signatures" configuration mapping-
Fields inherited from class com.avoka.fc.core.entity.auto._SchemaSeed
ABANDONMENT_REASON_XPATH, ABANDONMENT_REASON_XPATH_PROPERTY, ATTACHMENTS_XPATH, ATTACHMENTS_XPATH_PROPERTY, CONTACT_AGE_XPATH, CONTACT_AGE_XPATH_PROPERTY, CONTACT_EMAIL_XPATH, CONTACT_EMAIL_XPATH_PROPERTY, CONTACT_GENDER_XPATH, CONTACT_GENDER_XPATH_PROPERTY, CONTACT_PHONE_XPATH, CONTACT_PHONE_XPATH_PROPERTY, CONTACT_POSTCODE_XPATH, CONTACT_POSTCODE_XPATH_PROPERTY, EXTRACT_MAPS, EXTRACT_MAPS_PROPERTY, FILE_DATA, FILE_DATA_MD5, FILE_DATA_MD5_PROPERTY, FILE_DATA_PROPERTY, FILE_NAME, FILE_NAME_PROPERTY, PAYMENT_DETAILS_XPATH, PAYMENT_DETAILS_XPATH_PROPERTY, PREFILL_CLIENT_PROPERTIES_FLAG, PREFILL_CLIENT_PROPERTIES_FLAG_PROPERTY, PREFILL_PARAM_XPATHS, PREFILL_PARAM_XPATHS_PROPERTY, PROPERTY_PREFILL_MAPS, PROPERTY_PREFILL_MAPS_PROPERTY, RECEIPT_XPATH, RECEIPT_XPATH_PROPERTY, SAVE_CHALLENGE_XPATH, SAVE_CHALLENGE_XPATH_PROPERTY, SCHEMA_OID_PK_COLUMN, SIGNATURE_XPATH, SIGNATURE_XPATH_PROPERTY, SIGNATURES_REQUIRED_XPATH, SIGNATURES_REQUIRED_XPATH_PROPERTY, TRANS_REF_NUMBER_XPATH, TRANS_REF_NUMBER_XPATH_PROPERTY, TRANSACTION_VALUE_XPATH, TRANSACTION_VALUE_XPATH_PROPERTY, UPDATE_USER_PROFILE_FLAG, UPDATE_USER_PROFILE_FLAG_PROPERTY, USE_DEFAULT_CONFIG_MAPPING, USE_DEFAULT_CONFIG_MAPPING_PROPERTY, VERSION, VERSION_PROPERTY, XML_INPUT_MAPS, XML_INPUT_MAPS_PROPERTY
-
Fields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description SchemaSeed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getExtractNames()
Return the set of schema extract names.Document
getSeedDocument()
Return the schema seed XML Document.String
getSeedFileData()
Return the seed file data for this schema objectboolean
hasXPath(String xpath)
Return true if the SchemaSeed Form XML data has an element matching the given xpath.-
Methods inherited from class com.avoka.fc.core.entity.auto._SchemaSeed
addToExtractMaps, addToPrefillParamXpaths, addToPropertyPrefillMaps, addToXmlInputMaps, getAbandonmentReasonXpath, getAttachmentsXpath, getContactAgeXpath, getContactEmailXpath, getContactGenderXpath, getContactPhoneXpath, getContactPostcodeXpath, getExtractMaps, getFileData, getFileDataMd5, getFileName, getPaymentDetailsXpath, getPrefillParamXpaths, getPropertyPrefillMaps, getReceiptXpath, getSaveChallengeXpath, getSignaturesRequiredXpath, getSignatureXpath, getTransactionValueXpath, getTransRefNumberXpath, getVersion, getXmlInputMaps, isPrefillClientPropertiesFlag, isUpdateUserProfileFlag, isUseDefaultConfigMapping, removeFromExtractMaps, removeFromPrefillParamXpaths, removeFromPropertyPrefillMaps, removeFromXmlInputMaps, setAbandonmentReasonXpath, setAttachmentsXpath, setContactAgeXpath, setContactEmailXpath, setContactGenderXpath, setContactPhoneXpath, setContactPostcodeXpath, setFileData, setFileDataMd5, setFileName, setPaymentDetailsXpath, setPrefillClientPropertiesFlag, setReceiptXpath, setSaveChallengeXpath, setSignaturesRequiredXpath, setSignatureXpath, setTransactionValueXpath, setTransRefNumberXpath, setUpdateUserProfileFlag, setUseDefaultConfigMapping, setVersion
-
Methods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toString
-
Methods inherited from class org.apache.cayenne.CayenneDataObject
addToManyTarget, getSnapshotVersion, makePath, readNestedProperty, readProperty, readPropertyDirectly, removeToManyTarget, setObjectContext, setPersistenceState, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writePropertyDirectly
-
Methods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.avoka.fc.core.entity.Auditable
getId, getValuesMap
-
-
-
-
Field Detail
-
DEFAULT_XPATH_ABANDONMENT_REASON
public static final String DEFAULT_XPATH_ABANDONMENT_REASON
The XPath used for the default "AbandonmentReason" configuration mapping- See Also:
- Constant Field Values
-
DEFAULT_XPATH_ATTACHMENTS
public static final String DEFAULT_XPATH_ATTACHMENTS
The XPath used for the default "Attachments" configuration mapping- See Also:
- Constant Field Values
-
DEFAULT_XPATH_PAYMENT_DETAILS
public static final String DEFAULT_XPATH_PAYMENT_DETAILS
The XPath used for the default "Payment Details" configuration mapping- See Also:
- Constant Field Values
-
DEFAULT_XPATH_RECEIPT
public static final String DEFAULT_XPATH_RECEIPT
The XPath used for the default "Receipt" configuration mapping- See Also:
- Constant Field Values
-
DEFAULT_XPATH_SIGNATURES
public static final String DEFAULT_XPATH_SIGNATURES
The XPath used for the default "Signatures" configuration mapping- See Also:
- Constant Field Values
-
-
Method Detail
-
getSeedFileData
public String getSeedFileData()
Return the seed file data for this schema object- Returns:
- the seed file data
-
hasXPath
public boolean hasXPath(String xpath)
Return true if the SchemaSeed Form XML data has an element matching the given xpath.- Parameters:
xpath
- the element xpath (required)- Returns:
- true if the SchemaSeed Form XML data has an element matching the given xpath.
-
getSeedDocument
public Document getSeedDocument()
Return the schema seed XML Document.- Returns:
- the schema seed XML Document
-
-