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
FieldsModifier and TypeFieldDescriptionstatic final StringAn auxiliary property indicating whether the template version is the one currently in use for its formstatic final StringThe subfolder to use when publishing the form template filestatic final StringThe subfolder to use when publishing the receipt template filestatic final StringThe "Composer SmartForm" form typestatic final StringThe "Dynamic PDF Form" form typestatic final StringThe "JS App" form typestatic final StringThe "Maestro Form" form typestatic final StringThe "Other Document" form typestatic final StringThe "Static PDF Form" form typestatic final StringThe "Completed" publish status".static final StringThe "Error" publish status".static final StringThe "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_PROPERTYFields inherited from class com.avoka.core.entity.BaseEntity
ID_PROPERTYFields inherited from class org.apache.cayenne.CayenneDataObject
valuesFields inherited from class org.apache.cayenne.BaseDataObject
snapshotVersionFields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceStateFields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the Form Design Metadata JSON.Return the map of VersionPropertyValues keyed on property name.voidIncrement the number of form design metadata publish attempts by one.booleanReturn whether the form template file is an Composer SmartForm.booleanReturns whether this template version is the one used by the formbooleanReturn whether the form template file is a XFA Dynamic PDF Form.static booleanisFarFileFormType(String formType) Return true if the given formType uses a FAR file for storage.booleanisJsApp()Return whether the form template file is an JS App.booleanReturn whether the form template file is an Maestro Form.booleanReturn true if the form template file is a Maestro Form or a JS App.booleanReturn whether the form template file is an other type of document, e.g.booleanReturn whether the form template file is a static PDF form.voidSet the Form Design Metadata JSON.voidsetFormFileName(String formFileName) Set the formFileName value.voidsetReceiptFileName(String receiptFileName) Set the receiptFileName value.booleanReturn true if form template version is configured to use a PDF form relying on LiveCycle.booleanReturn 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, setVersionNumberMethods inherited from class com.avoka.core.entity.BaseEntity
appendProperties, getId, getValuesMap, isNew, setId, toStringMethods inherited from class org.apache.cayenne.CayenneDataObject
makePath, readPropertyDirectly, readState, setPersistenceState, writePropertyDirectly, writeStateMethods 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, writeSerializedMethods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getPersistenceState, setObjectIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.avoka.fc.core.entity.Auditable
getId, getValuesMapMethods 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:
setFormFileNamein class_TemplateVersion- Parameters:
formFileName- the formFileName value to set
-
setReceiptFileName
Set the receiptFileName value.- Overrides:
setReceiptFileNamein 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
-