Package com.avoka.fc.core.entity
Class TemplateVersion
java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
com.avoka.core.entity.BaseEntity
com.avoka.fc.core.entity.auto._TemplateVersion
com.avoka.fc.core.entity.TemplateVersion
- All Implemented Interfaces:
IEntity
,Auditable
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
Provides a version of a form template, defining the actual form template files (e.g. PDF or ES2 guide) that will be used to render the form and receipt.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
An auxiliary property indicating whether the template version is the one currently in use for its formstatic final String
The subfolder to use when publishing the form template filestatic final String
The subfolder to use when publishing the receipt template filestatic final String
The "Composer SmartForm" form typestatic final String
The "Dynamic PDF Form" form typestatic final String
The "JS App" form typestatic final String
The "Maestro Form" form typestatic final String
The "Other Document" form typestatic final String
The "Static PDF Form" form typestatic final String
The "Completed" publish status".static final String
The "Error" publish status".static final String
The "Ready" publish status".Fields inherited from class com.avoka.fc.core.entity.auto._TemplateVersion
COMPLETED_PROCESSOR_SERVICE, COMPLETED_PROCESSOR_SERVICE_PROPERTY, CREATED_AT, CREATED_AT_PROPERTY, CREATED_BY, CREATED_BY_PROPERTY, CURRENT_VERSION_FORM, CURRENT_VERSION_FORM_PROPERTY, DELIVERY_ABANDON, DELIVERY_ABANDON_PROPERTY, DELIVERY_PROD, DELIVERY_PROD_PROPERTY, DELIVERY_TEST, DELIVERY_TEST_PROPERTY, DELIVERY_VALIDATION, DELIVERY_VALIDATION_PROPERTY, EMAIL_SERVICE, EMAIL_SERVICE_PROPERTY, EXPIRY_PROCESS_SERVICE, EXPIRY_PROCESS_SERVICE_PROPERTY, FAR_DATA_FLAG, FAR_DATA_FLAG_PROPERTY, FAR_DATA_VERSION, FAR_DATA_VERSION_PROPERTY, FAR_FILE_MD5, FAR_FILE_MD5_PROPERTY, FAR_FORM_KEY, FAR_FORM_KEY_PROPERTY, FAR_FORM_TARGET, FAR_FORM_TARGET_PROPERTY, FORM, FORM_CATEGORIES, FORM_CATEGORIES_PROPERTY, FORM_DATA_ENCRYPT_FLAG, FORM_DATA_ENCRYPT_FLAG_PROPERTY, FORM_DESIGN_VERSION, FORM_DESIGN_VERSION_PROPERTY, FORM_FILE_MD5, FORM_FILE_MD5_PROPERTY, FORM_FILE_NAME, FORM_FILE_NAME_PROPERTY, FORM_FUNCTIONS, FORM_FUNCTIONS_PROPERTY, FORM_HTTP_API2FLAG, FORM_HTTP_API2FLAG_PROPERTY, FORM_MAESTRO_FLAG, FORM_MAESTRO_FLAG_PROPERTY, FORM_PREFILL_SERVICE, FORM_PREFILL_SERVICE_PROPERTY, FORM_PROPERTY, FORM_TYPE, FORM_TYPE_PROPERTY, HAS_DESKTOP_FORM, HAS_DESKTOP_FORM_PROPERTY, HAS_PDF_FORM, HAS_PDF_FORM_PROPERTY, HAS_PDF_RECEIPT, HAS_PDF_RECEIPT_PROPERTY, HAS_PHONE_FORM, HAS_PHONE_FORM_PROPERTY, HAS_TABLET_FORM, HAS_TABLET_FORM_PROPERTY, IS_BILLABLE, IS_BILLABLE_PROPERTY, JOB_CONTROLLER_SERVICE, JOB_CONTROLLER_SERVICE_PROPERTY, LAST_MODIFIED_AT, LAST_MODIFIED_AT_PROPERTY, LAST_MODIFIED_BY, LAST_MODIFIED_BY_PROPERTY, MAX_ATTACHMENT_NUMBER, MAX_ATTACHMENT_NUMBER_PROPERTY, MAX_ATTACHMENT_SIZE, MAX_ATTACHMENT_SIZE_PROPERTY, METADATA_PUBLISH_ATTEMPTS, METADATA_PUBLISH_ATTEMPTS_PROPERTY, METADATA_PUBLISH_STATUS, METADATA_PUBLISH_STATUS_PROPERTY, METADATA_PUBLISH_TIME, METADATA_PUBLISH_TIME_PROPERTY, NOTES, NOTES_PROPERTY, PROMOTION_LOGS, PROMOTION_LOGS_PROPERTY, RECEIPT_FILE_MD5, RECEIPT_FILE_MD5_PROPERTY, RECEIPT_FILE_NAME, RECEIPT_FILE_NAME_PROPERTY, RECEIPT_PROCESS_TIMEOUT, RECEIPT_PROCESS_TIMEOUT_PROPERTY, RECEIPT_RENDER_SERVICE, RECEIPT_RENDER_SERVICE_PROPERTY, RECEIPT_XML_MAPPING, RECEIPT_XML_MAPPING_PROPERTY, REQUEST_LOG, REQUEST_LOG_PROPERTY, SAVED_PROCESSOR_SERVICE, SAVED_PROCESSOR_SERVICE_PROPERTY, SCHEMA, SCHEMA_PROPERTY, SECURITY_FILTER_SERVICE, SECURITY_FILTER_SERVICE_PROPERTY, STATUS, STATUS_PROPERTY, STRICT_HEADER_SECURITY_FLAG, STRICT_HEADER_SECURITY_FLAG_PROPERTY, SUBMISSION_HISTORY_LIST, SUBMISSION_HISTORY_LIST_PROPERTY, SUBMISSION_PREPROCESSOR_SERVICE, SUBMISSION_PREPROCESSOR_SERVICE_PROPERTY, SUBMISSION_VALIDATOR_SERVICE, SUBMISSION_VALIDATOR_SERVICE_PROPERTY, SUBMISSIONS, SUBMISSIONS_PROPERTY, SUPPORTS_SAVE_CHALLENGE_FLAG, SUPPORTS_SAVE_CHALLENGE_FLAG_PROPERTY, TEMPLATE_VERSION_DATA, TEMPLATE_VERSION_DATA_PROPERTY, UNIFIED_APP_DATA_FLAG, UNIFIED_APP_DATA_FLAG_PROPERTY, USE_DELIVERY_RECEIPT_FLAG, USE_DELIVERY_RECEIPT_FLAG_PROPERTY, USE_SERVER_ATTACHMENT_RULES, USE_SERVER_ATTACHMENT_RULES_PROPERTY, VERSION_ATTACHMENTS, VERSION_ATTACHMENTS_PROPERTY, VERSION_METADATA_VALUES, VERSION_METADATA_VALUES_PROPERTY, VERSION_NUMBER, VERSION_NUMBER_PROPERTY, VERSION_OID_PK_COLUMN, VERSION_PROPERTY_VALUES, VERSION_PROPERTY_VALUES_PROPERTY
Fields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTY
Fields inherited from class org.apache.cayenne.CayenneDataObject
values
Fields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersion
Fields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceState
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the Form Design Metadata JSON.Return the map of VersionPropertyValues keyed on property name.void
Increment the number of form design metadata publish attempts by one.boolean
Return whether the form template file is an Composer SmartForm.boolean
Returns whether this template version is the one used by the formboolean
Return whether the form template file is a XFA Dynamic PDF Form.static boolean
isFarFileFormType
(String formType) Return true if the given formType uses a FAR file for storage.boolean
isJsApp()
Return whether the form template file is an JS App.boolean
Return whether the form template file is an Maestro Form.boolean
Return true if the form template file is a Maestro Form or a JS App.boolean
Return whether the form template file is an other type of document, e.g.boolean
Return whether the form template file is a static PDF form.void
Set the Form Design Metadata JSON.void
setFormFileName
(String formFileName) Set the formFileName value.void
setReceiptFileName
(String receiptFileName) Set the receiptFileName value.boolean
Return true if form template version is configured to use a PDF form relying on LiveCycle.boolean
Return true if form template version is configured to use PDF form.Methods inherited from class com.avoka.fc.core.entity.auto._TemplateVersion
addToFormCategories, addToFormFunctions, addToPromotionLogs, addToRequestLog, addToSubmissionHistoryList, addToSubmissions, addToVersionAttachments, addToVersionMetadataValues, addToVersionPropertyValues, getCompletedProcessorService, getCreatedAt, getCreatedBy, getCurrentVersionForm, getDeliveryAbandon, getDeliveryProd, getDeliveryTest, getDeliveryValidation, getEmailService, getExpiryProcessService, getFarDataVersion, getFarFileMd5, getFarFormKey, getFarFormTarget, getForm, getFormCategories, getFormDesignVersion, getFormFileMd5, getFormFileName, getFormFunctions, getFormPrefillService, getFormType, getIsBillable, getJobControllerService, getLastModifiedAt, getLastModifiedBy, getMaxAttachmentNumber, getMaxAttachmentSize, getMetadataPublishAttempts, getMetadataPublishStatus, getMetadataPublishTime, getNotes, getPromotionLogs, getReceiptFileMd5, getReceiptFileName, getReceiptProcessTimeout, getReceiptRenderService, getReceiptXmlMapping, getRequestLog, getSavedProcessorService, getSchema, getSecurityFilterService, getStatus, getSubmissionHistoryList, getSubmissionPreprocessorService, getSubmissions, getSubmissionValidatorService, getTemplateVersionData, getVersionAttachments, getVersionMetadataValues, getVersionNumber, getVersionPropertyValues, isFarDataFlag, isFormDataEncryptFlag, isFormHttpApi2Flag, isFormMaestroFlag, isHasDesktopForm, isHasPdfForm, isHasPdfReceipt, isHasPhoneForm, isHasTabletForm, isStrictHeaderSecurityFlag, isSupportsSaveChallengeFlag, isUnifiedAppDataFlag, isUseDeliveryReceiptFlag, isUseServerAttachmentRules, removeFromFormCategories, removeFromFormFunctions, removeFromPromotionLogs, removeFromRequestLog, removeFromSubmissionHistoryList, removeFromSubmissions, removeFromVersionAttachments, removeFromVersionMetadataValues, removeFromVersionPropertyValues, setCompletedProcessorService, setCreatedAt, setCreatedBy, setCurrentVersionForm, setDeliveryAbandon, setDeliveryProd, setDeliveryTest, setDeliveryValidation, setEmailService, setExpiryProcessService, setFarDataFlag, setFarDataVersion, setFarFileMd5, setFarFormKey, setFarFormTarget, setForm, setFormDataEncryptFlag, setFormDesignVersion, setFormFileMd5, setFormHttpApi2Flag, setFormMaestroFlag, setFormPrefillService, setFormType, setHasDesktopForm, setHasPdfForm, setHasPdfReceipt, setHasPhoneForm, setHasTabletForm, setIsBillable, setJobControllerService, setLastModifiedAt, setLastModifiedBy, setMaxAttachmentNumber, setMaxAttachmentSize, setMetadataPublishAttempts, setMetadataPublishStatus, setMetadataPublishTime, setNotes, setReceiptFileMd5, setReceiptProcessTimeout, setReceiptRenderService, setReceiptXmlMapping, setSavedProcessorService, setSchema, setSecurityFilterService, setStatus, setStrictHeaderSecurityFlag, setSubmissionPreprocessorService, setSubmissionValidatorService, setSupportsSaveChallengeFlag, setTemplateVersionData, setUnifiedAppDataFlag, setUseDeliveryReceiptFlag, setUseServerAttachmentRules, setVersionNumber
Methods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toString
Methods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeState
Methods inherited from class org.apache.cayenne.BaseDataObject
addToManyTarget, beforePropertyRead, beforePropertyWrite, getSnapshotVersion, readNestedProperty, readProperty, readSerialized, removeToManyTarget, setObjectContext, setReverseRelationship, setSnapshotVersion, setToManyTarget, setToOneTarget, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect, writeProperty, writeSerialized
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
Methods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectContext, setObjectId, setPersistenceState
-
Field Details
-
STATUS_READY
The "Ready" publish status".- See Also:
-
STATUS_COMPLETED
The "Completed" publish status".- See Also:
-
STATUS_ERROR
The "Error" publish status".- See Also:
-
FORM_TYPE_DYNAMIC_PDF_FORM
The "Dynamic PDF Form" form type- See Also:
-
FORM_TYPE_COMPOSER_SMARTFORM
The "Composer SmartForm" form type- See Also:
-
FORM_TYPE_JS_APP
The "JS App" form type- See Also:
-
FORM_TYPE_MAESTRO_FORM
The "Maestro Form" form type- See Also:
-
FORM_TYPE_STATIC_PDF_FORM
The "Static PDF Form" form type- See Also:
-
FORM_TYPE_OTHER_DOCUMENT
The "Other Document" form type- See Also:
-
DIR_FORM
The subfolder to use when publishing the form template file- See Also:
-
DIR_RECEIPT
The subfolder to use when publishing the receipt template file- See Also:
-
CURRENT_VERSION_PROPERTY
An auxiliary property indicating whether the template version is the one currently in use for its form- See Also:
-
-
Constructor Details
-
TemplateVersion
public TemplateVersion()
-
-
Method Details
-
isFarFileFormType
Return true if the given formType uses a FAR file for storage.- Parameters:
formType
- the form type- Returns:
- true if the given formType uses a FAR file for storage
- Since:
- 17.10.0
-
isDynamicPdfForm
public boolean isDynamicPdfForm()Return whether the form template file is a XFA Dynamic PDF Form.- Returns:
- true if the form type is
FORM_TYPE_DYNAMIC_PDF_FORM
-
isComposerSmartForm
public boolean isComposerSmartForm()Return whether the form template file is an Composer SmartForm.- Returns:
- true if the form type is
FORM_TYPE_COMPOSER_SMARTFORM
-
isJsApp
public boolean isJsApp()Return whether the form template file is an JS App.- Returns:
- true if the form type is
FORM_TYPE_JS_APP
- Since:
- 17.10.0
-
isMaestroForm
public boolean isMaestroForm()Return whether the form template file is an Maestro Form.- Returns:
- true if the form type is
FORM_TYPE_MAESTRO_FORM
- Since:
- 5.0.0
-
isMaestroFormOrJsApp
public boolean isMaestroFormOrJsApp()Return true if the form template file is a Maestro Form or a JS App.- Returns:
- true if the form template file is a Maestro Form or a JS App.
- Since:
- 18.5.0
-
isStaticPdfForm
public boolean isStaticPdfForm()Return whether the form template file is a static PDF form.- Returns:
- true if the form type is
FORM_TYPE_STATIC_PDF_FORM
-
isOtherDocument
public boolean isOtherDocument()Return whether the form template file is an other type of document, e.g. Microsoft Word document.- Returns:
- true if the form type is
FORM_TYPE_OTHER_DOCUMENT
-
getVersionPropertyMap
Return the map of VersionPropertyValues keyed on property name.- Returns:
- the map of VersionPropertyValues keyed on property name
- Since:
- 4.2.0
-
useLiveCycleForm
public boolean useLiveCycleForm()Return true if form template version is configured to use a PDF form relying on LiveCycle. Such forms cannot be rendered any more as LiveCycle support has been removed.- Returns:
- true if form template version is configured to use a PDF form relying on LiveCycle.
- Since:
- 19.11.0
-
usePdfForm
public boolean usePdfForm()Return true if form template version is configured to use PDF form.- Returns:
- true if form template version is configured to use PDF form.
-
isCurrentVersion
public boolean isCurrentVersion()Returns whether this template version is the one used by the form- Returns:
- true if this template version matches the current version configured for the form
-
setFormFileName
Set the formFileName value.- Overrides:
setFormFileName
in class_TemplateVersion
- Parameters:
formFileName
- the formFileName value to set
-
setReceiptFileName
Set the receiptFileName value.- Overrides:
setReceiptFileName
in class_TemplateVersion
- Parameters:
receiptFileName
- the receiptFileName value to set
-
getFormDesignMetadataJson
Return the Form Design Metadata JSON.- Returns:
- the Form Design Metadata JSON
- Since:
- 5.1.0
-
setFormDesignMetadataJson
Set the Form Design Metadata JSON.- Parameters:
json
- set the Form Design Metadata JSON- Since:
- 5.1.0
-
incrementMetadataPublishAttempts
public void incrementMetadataPublishAttempts()Increment the number of form design metadata publish attempts by one.- Since:
- 5.1.0
-
getFormDesignUrl
- Returns:
- the form design URL or null if not available.
- Since:
- 17.10.0
-