Package com.avoka.fc.core.entity
Class Form
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._Form
com.avoka.fc.core.entity.Form
- All Implemented Interfaces:
IEntity
,Auditable
,Serializable
,org.apache.cayenne.DataObject
,org.apache.cayenne.Persistent
,org.apache.cayenne.Validating
Provides a form entity encompassing a form template as well as configuration. This is one of the key entities in SmartForm Manager.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String[]
The user form authentication requirements.static final String
The default pattern used for generating receipt numbersstatic final String
The user receipt email mode that indicates that a confirmation email NOT including a PDF receipt will be sent.static final String
The user receipt email mode that indicates that a confirmation email including a PDF receipt will be sent.static final String
The user receipt email mode that indicates that no automated receipt emails will be sent.static final String
The user receipt email mode that indicates that a confirmation email including a link to the PDF receipt will be sent.static final String[]
The options for automatically sending receipt emails to users.static final String[]
The user form authentication requirements.static final String
The 'Direct Render' form display mode.static final String
The 'Embed with Div' form display mode.static final String
The 'Embed with IFrame' form display mode.static final String[]
The form display mode options.static final String
The All mode (e.g.static final String
The Anonymous mode.static final String
The Authenticated mode.static final String
The Disabled mode.static final String[]
The set of online save modesstatic final String
The page tracking include position: "After Body".static final String
The page tracking include position: "Inside Head".static final String
The Tracking Receipt Number Mode - use only Receipt Number.static final String
The Tracking Receipt Number Mode - use only Tracking Code.static final String[]
The Tracking Receipt Number Mode Values.Fields inherited from class com.avoka.fc.core.entity.auto._Form
ABANDON_DELIVERY, ABANDON_DELIVERY_PROPERTY, ABANDON_MIN_TRANS_SCORE, ABANDON_MIN_TRANS_SCORE_PROPERTY, ABANDON_TIMEOUT_ANON_BG_SAVE, ABANDON_TIMEOUT_ANON_BG_SAVE_PROPERTY, ABANDON_TIMEOUT_SAVED, ABANDON_TIMEOUT_SAVED_PROPERTY, ABANDON_TIMEOUT_SUBMITTED, ABANDON_TIMEOUT_SUBMITTED_PROPERTY, APPLICATION_FORMS, APPLICATION_FORMS_PROPERTY, CLIENT, CLIENT_FORM_CODE, CLIENT_FORM_CODE_PROPERTY, CLIENT_FORM_ID, CLIENT_FORM_ID_PROPERTY, CLIENT_PROPERTY, COMPOSER_IMPORT_ACTIONS, COMPOSER_IMPORT_ACTIONS_PROPERTY, CREATED_AT, CREATED_AT_PROPERTY, CREATED_BY, CREATED_BY_PROPERTY, CURRENT_VERSION, CURRENT_VERSION_PROPERTY, DELIVERY_PROD, DELIVERY_PROD_PROPERTY, DELIVERY_TEST, DELIVERY_TEST_PROPERTY, EMAIL_USER_RECEIPT_MODE, EMAIL_USER_RECEIPT_MODE_PROPERTY, EMAIL_VERIFICATION_DELIVER_ABANDONED_FLAG, EMAIL_VERIFICATION_DELIVER_ABANDONED_FLAG_PROPERTY, EMAIL_VERIFICATION_EMAIL_MESSAGE, EMAIL_VERIFICATION_EMAIL_MESSAGE_PROPERTY, EMAIL_VERIFICATION_EMAIL_SUBJECT, EMAIL_VERIFICATION_EMAIL_SUBJECT_PROPERTY, EMAIL_VERIFICATION_MAX_ATTEMPTS, EMAIL_VERIFICATION_MAX_ATTEMPTS_PROPERTY, EMAIL_VERIFICATION_MODE, EMAIL_VERIFICATION_MODE_PROPERTY, EMAIL_VERIFICATION_REMINDER_INTERVAL, EMAIL_VERIFICATION_REMINDER_INTERVAL_PROPERTY, EMAIL_VERIFICATION_TIMEOUT_DAYS, EMAIL_VERIFICATION_TIMEOUT_DAYS_PROPERTY, FIELD_EVENT_LOGGING_FLAG, FIELD_EVENT_LOGGING_FLAG_PROPERTY, FORM_ADMIN_MANAGER, FORM_ADMIN_MANAGER_PROPERTY, FORM_DESIGN, FORM_DESIGN_PROPERTY, FORM_DISPLAY_MODE, FORM_DISPLAY_MODE_PROPERTY, FORM_GROUPS, FORM_GROUPS_PROPERTY, FORM_NAME, FORM_NAME_NORMALIZED, FORM_NAME_NORMALIZED_PROPERTY, FORM_NAME_PROPERTY, FORM_OID_PK_COLUMN, FORM_PORTALS, FORM_PORTALS_PROPERTY, FORM_RECEIPT_SEQUENCE, FORM_RECEIPT_SEQUENCE_PROPERTY, GROOVY_SERVICE_LOG, GROOVY_SERVICE_LOG_PROPERTY, LAST_MODIFIED_AT, LAST_MODIFIED_AT_PROPERTY, LAST_MODIFIED_BY, LAST_MODIFIED_BY_PROPERTY, LOG_XML_FLAG, LOG_XML_FLAG_PROPERTY, PAGE_TRACKING_CONTENT, PAGE_TRACKING_CONTENT_PROPERTY, PAGE_TRACKING_ENABLED_FLAG, PAGE_TRACKING_ENABLED_FLAG_PROPERTY, PAGE_TRACKING_INCLUDE_POSITION, PAGE_TRACKING_INCLUDE_POSITION_PROPERTY, PROMOTION, PROMOTION_PROPERTY, RECEIPT_ENABLED_FLAG, RECEIPT_ENABLED_FLAG_PROPERTY, RECEIPT_NUMBER_SERVICE, RECEIPT_NUMBER_SERVICE_PROPERTY, RECEIPT_PATTERN, RECEIPT_PATTERN_PROPERTY, REDIRECT_URL_CANCELLED_PAGE, REDIRECT_URL_CANCELLED_PAGE_PROPERTY, REDIRECT_URL_CONFIRMATION_PAGE, REDIRECT_URL_CONFIRMATION_PAGE_PROPERTY, REDIRECT_URL_SAVED_PAGE, REDIRECT_URL_SAVED_PAGE_PROPERTY, REQUEST_LOG, REQUEST_LOG_PROPERTY, SAVE_ONLINE_MODE, SAVE_ONLINE_MODE_PROPERTY, SKIP_CONFIRMATION_PAGE_FLAG, SKIP_CONFIRMATION_PAGE_FLAG_PROPERTY, STATUS, STATUS_PROPERTY, SUB_MAX_AGE_DATA_DELIVERED, SUB_MAX_AGE_DATA_DELIVERED_PROPERTY, SUBMISSION_EXPIRY_DATE, SUBMISSION_EXPIRY_DATE_PROPERTY, SUBMISSION_EXPIRY_DAYS, SUBMISSION_EXPIRY_DAYS_PROPERTY, SUBMISSIONS, SUBMISSIONS_PROPERTY, TEST_ENABLED_FLAG, TEST_ENABLED_FLAG_PROPERTY, TRACKING_NUMBER_SERVICE, TRACKING_NUMBER_SERVICE_PROPERTY, TRACKING_RECEIPT_NO_MODE, TRACKING_RECEIPT_NO_MODE_PROPERTY, TRANSACTION_VALUE, TRANSACTION_VALUE_PROPERTY, VALIDATION_DELIVERY, VALIDATION_DELIVERY_PROPERTY, VERSION_DEPLOYMENTS, VERSION_DEPLOYMENTS_PROPERTY, VERSION_SELECTOR_SERVICE, VERSION_SELECTOR_SERVICE_PROPERTY, VERSIONS, VERSIONS_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 TypeMethodDescriptionDeprecated.Return globally unique the client form code.Returns the form description.Return the set of group names the form belongs to.getFormPortal
(Portal portal) Returns the FormPortal associated with the given portal, if the portal is not associated with this form it returns nullReturn the set of portals this form is associated withReturn globally unique the client form code.boolean
isActive()
Return whether the form is activeboolean
Return whether the form is configured to allow online saving by anonymous usersboolean
Deprecated.boolean
isAnonymousRequired
(Portal portal) Return true if the form only support anonymous access.boolean
isAssociatedWithPortal
(Portal portal) Return whether the form is associated with the given portalboolean
Return whether the form is configured to allow online saving by authenticated usersboolean
Deprecated.boolean
isAuthenticationRequired
(Portal portal) Return true if the form requires the user to be authenticated.boolean
Return whether the form is configured to automatically send receipt emails to users when they complete a submissionboolean
Return whether the form is configured to automatically send receipt emails that include the PDF receipt to users when they complete a submissionboolean
Return whether the form is configured for submission email verificationboolean
Return true if the form display mode is 'Direct Render'.boolean
Return true if the form display mode is 'Embed with Div'.boolean
Return true if the form display mode is 'Embed with IFrame'.boolean
Return true if the form is enabled, submission expiry date is not before current time, and form template version available.boolean
Return whether the form is configured to automatically send receipt emails that include the PDF receipt to users when they complete a submissionboolean
boolean
Deprecated.boolean
Return whether the form requires email verification of anonymous usersboolean
Return whether the form requires email verification of authenticated usersvoid
setAuthenticationMode
(String authenticationMode) Deprecated.void
setTrackingNoUseReceiptFlag
(boolean trackingNoUseReceiptFlag) Deprecated.Methods inherited from class com.avoka.fc.core.entity.auto._Form
addToApplicationForms, addToComposerImportActions, addToFormGroups, addToFormPortals, addToFormReceiptSequence, addToGroovyServiceLog, addToPromotion, addToRequestLog, addToSubmissions, addToVersionDeployments, addToVersions, getAbandonDelivery, getAbandonMinTransScore, getAbandonTimeoutAnonBgSave, getAbandonTimeoutSaved, getAbandonTimeoutSubmitted, getApplicationForms, getClient, getClientFormCode, getClientFormId, getComposerImportActions, getCreatedAt, getCreatedBy, getCurrentVersion, getDeliveryProd, getDeliveryTest, getEmailUserReceiptMode, getEmailVerificationEmailMessage, getEmailVerificationEmailSubject, getEmailVerificationMaxAttempts, getEmailVerificationMode, getEmailVerificationReminderInterval, getEmailVerificationTimeoutDays, getFormAdminManager, getFormDesign, getFormDisplayMode, getFormGroups, getFormName, getFormNameNormalized, getFormPortals, getFormReceiptSequence, getGroovyServiceLog, getLastModifiedAt, getLastModifiedBy, getPageTrackingContent, getPageTrackingIncludePosition, getPromotion, getReceiptNumberService, getReceiptPattern, getRedirectUrlCancelledPage, getRedirectUrlConfirmationPage, getRedirectUrlSavedPage, getRequestLog, getSaveOnlineMode, getStatus, getSubMaxAgeDataDelivered, getSubmissionExpiryDate, getSubmissionExpiryDays, getSubmissions, getTrackingNumberService, getTrackingReceiptNoMode, getTransactionValue, getValidationDelivery, getVersionDeployments, getVersions, getVersionSelectorService, isEmailVerificationDeliverAbandonedFlag, isFieldEventLoggingFlag, isLogXmlFlag, isPageTrackingEnabledFlag, isReceiptEnabledFlag, isSkipConfirmationPageFlag, isTestEnabledFlag, removeFromApplicationForms, removeFromComposerImportActions, removeFromFormGroups, removeFromFormPortals, removeFromFormReceiptSequence, removeFromGroovyServiceLog, removeFromPromotion, removeFromRequestLog, removeFromSubmissions, removeFromVersionDeployments, removeFromVersions, setAbandonDelivery, setAbandonMinTransScore, setAbandonTimeoutAnonBgSave, setAbandonTimeoutSaved, setAbandonTimeoutSubmitted, setClient, setClientFormCode, setClientFormId, setCreatedAt, setCreatedBy, setCurrentVersion, setDeliveryProd, setDeliveryTest, setEmailUserReceiptMode, setEmailVerificationDeliverAbandonedFlag, setEmailVerificationEmailMessage, setEmailVerificationEmailSubject, setEmailVerificationMaxAttempts, setEmailVerificationMode, setEmailVerificationReminderInterval, setEmailVerificationTimeoutDays, setFieldEventLoggingFlag, setFormAdminManager, setFormDesign, setFormDisplayMode, setFormName, setFormNameNormalized, setLastModifiedAt, setLastModifiedBy, setLogXmlFlag, setPageTrackingContent, setPageTrackingEnabledFlag, setPageTrackingIncludePosition, setReceiptEnabledFlag, setReceiptNumberService, setReceiptPattern, setRedirectUrlCancelledPage, setRedirectUrlConfirmationPage, setRedirectUrlSavedPage, setSaveOnlineMode, setSkipConfirmationPageFlag, setStatus, setSubMaxAgeDataDelivered, setSubmissionExpiryDate, setSubmissionExpiryDays, setTestEnabledFlag, setTrackingNumberService, setTrackingReceiptNoMode, setTransactionValue, setValidationDelivery, setVersionSelectorService
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
-
FORM_DISPLAY_MODE_DIRECT_RENDER
The 'Direct Render' form display mode.- See Also:
-
FORM_DISPLAY_MODE_EMBED_WITH_DIV
The 'Embed with Div' form display mode.- See Also:
-
FORM_DISPLAY_MODE_EMBED_WITH_IFRAME
The 'Embed with IFrame' form display mode.- See Also:
-
FORM_DISPLAY_MODES
The form display mode options. -
MODE_DISABLED
The Disabled mode.- See Also:
-
MODE_ANONYMOUS_ONLY
The Anonymous mode.- See Also:
-
MODE_AUTHENTICATED_ONLY
The Authenticated mode.- See Also:
-
ONLINE_SAVE_MODES
The set of online save modes -
MODE_ALL_SUBMISSIONS
The All mode (e.g. a setting applying to all submissions).- See Also:
-
AUTHENTICATION_MODES
The user form authentication requirements. -
EMAIL_VERIFICATION_MODES
The user form authentication requirements. -
DEFAULT_RECEIPT_NUMBER_PATTERN
The default pattern used for generating receipt numbers- See Also:
-
EMAIL_USER_RECEIPT_MODE_NONE
The user receipt email mode that indicates that no automated receipt emails will be sent.- See Also:
-
EMAIL_USER_RECEIPT_MODE_CONFIRMATION_ONLY
The user receipt email mode that indicates that a confirmation email NOT including a PDF receipt will be sent.- See Also:
-
EMAIL_USER_RECEIPT_MODE_FULL
The user receipt email mode that indicates that a confirmation email including a PDF receipt will be sent.- See Also:
-
EMAIL_USER_RECEIPT_MODE_RECEIPT_LINK
The user receipt email mode that indicates that a confirmation email including a link to the PDF receipt will be sent.- See Also:
-
EMAIL_USER_RECEIPT_MODES
The options for automatically sending receipt emails to users. -
PAGE_TRACKING_POSTION_INSIDE_HEAD
The page tracking include position: "Inside Head".- See Also:
-
PAGE_TRACKING_POSTION_AFTER_HTML
The page tracking include position: "After Body".- See Also:
-
TR_NO_MODE_TRACKING_CODE_ONLY
The Tracking Receipt Number Mode - use only Tracking Code.- See Also:
-
TR_NO_MODE_RECEIPT_NUMBER_ONLY
The Tracking Receipt Number Mode - use only Receipt Number.- See Also:
-
TR_NO_MODES
The Tracking Receipt Number Mode Values.
-
-
Constructor Details
-
Form
public Form()
-
-
Method Details
-
isAuthenticationRequired
public boolean isAuthenticationRequired()Deprecated.Return true if the form requires the user to be authenticated.- Returns:
- true if the form requires the user to be authenticated.
-
isAuthenticationRequired
Return true if the form requires the user to be authenticated.- Parameters:
portal
- the portal (required)- Returns:
- true if the form requires the user to be authenticated.
- Since:
- 5.1.0
-
isAnonymousRequired
public boolean isAnonymousRequired()Deprecated.Return true if the form only support anonymous access.- Returns:
- true if the form only support anonymous access otherwise false
-
isAnonymousRequired
Return true if the form only support anonymous access.- Parameters:
portal
- the portal (required)- Returns:
- true if the form only support anonymous access otherwise false
- Since:
- 5.1.0
-
isAnonymousOnlineSaveEnabled
public boolean isAnonymousOnlineSaveEnabled()Return whether the form is configured to allow online saving by anonymous users- Returns:
- true if the form is configured to allow online saving by anonymous users
-
isAuthenticatedOnlineSaveEnabled
public boolean isAuthenticatedOnlineSaveEnabled()Return whether the form is configured to allow online saving by authenticated users- Returns:
- true if the form is configured to allow online saving by authenticated users
-
setAuthenticationMode
Deprecated.Set the authenticationMode value.- Parameters:
authenticationMode
- the authenticationMode value to set
-
getAuthenticationMode
Deprecated.Return the authenticationMode value.- Returns:
- authenticationMode the authenticationMode value
-
isOnlineSaveDisabled
public boolean isOnlineSaveDisabled()- Returns:
- true if online save is disabled
- Since:
- 4.0.0
-
isActive
public boolean isActive()Return whether the form is active- Returns:
- true if the form has active status
-
isFormEnabled
public boolean isFormEnabled()Return true if the form is enabled, submission expiry date is not before current time, and form template version available.- Returns:
- true if the form is enabled, submission expiry date is not before current time, and form template version available.
- Since:
- 4.0.0
-
isEmailVerificationEnabled
public boolean isEmailVerificationEnabled()Return whether the form is configured for submission email verification- Returns:
- true if the form is configured for submission email verification
-
requiresEmailVerificationForAnonymousUsers
public boolean requiresEmailVerificationForAnonymousUsers()Return whether the form requires email verification of anonymous users- Returns:
- true if the email verification mode is
Form#MODE_ALL
orMODE_ANONYMOUS_ONLY
-
requiresEmailVerificationForAuthenticatedUsers
public boolean requiresEmailVerificationForAuthenticatedUsers()Return whether the form requires email verification of authenticated users- Returns:
- true if the email verification mode is
Form#MODE_ALL
-
getFormDescription
Returns the form description. This is defined as the value of the propertyPropertyValueDao.FORM_DESCRIPTION
for the form's current template version.- Returns:
- the form description
-
isFormDisplayDirectRender
public boolean isFormDisplayDirectRender()Return true if the form display mode is 'Direct Render'.- Returns:
- true if the form display mode is 'Direct Render'
-
isFormDisplayEmbedDiv
public boolean isFormDisplayEmbedDiv()Return true if the form display mode is 'Embed with Div'.- Returns:
- true if the form display mode is 'Embed with Div'
-
isFormDisplayEmbedIFrame
public boolean isFormDisplayEmbedIFrame()Return true if the form display mode is 'Embed with IFrame'.- Returns:
- true if the form display mode is 'Embed with IFrame'
-
getFormGroupNames
Return the set of group names the form belongs to.- Returns:
- the set of group names the form belongs to.
- Since:
- 3.6.0
-
isAssociatedWithPortal
Return whether the form is associated with the given portal- Parameters:
portal
- the portal (required)- Returns:
- true if the form has been assigned the given portal
-
getFormPortal
Returns the FormPortal associated with the given portal, if the portal is not associated with this form it returns null- Parameters:
portal
- the portal (required)- Returns:
- the FormPortal associated with the given portal
- Since:
- 5.1.0
-
getPortals
Return the set of portals this form is associated with- Returns:
- a collection containing all portals this form is associated with, sorted by name
-
getFormCode
Return globally unique the client form code.- Returns:
- globally unique the client form code
- Since:
- 3.6.0
-
getUrlSafeFormCode
Return globally unique the client form code.- Returns:
- url encoded globally unique client form code
- Since:
- 18.11.0
-
isEmailUserReceiptEnabled
public boolean isEmailUserReceiptEnabled()Return whether the form is configured to automatically send receipt emails to users when they complete a submission- Returns:
- true if
_Form.EMAIL_USER_RECEIPT_MODE_PROPERTY
isEMAIL_USER_RECEIPT_MODE_FULL
orEMAIL_USER_RECEIPT_MODE_CONFIRMATION_ONLY
- Since:
- 4.1.0
-
isFullEmailUserReceiptEnabled
public boolean isFullEmailUserReceiptEnabled()Return whether the form is configured to automatically send receipt emails that include the PDF receipt to users when they complete a submission- Returns:
- true if
_Form.EMAIL_USER_RECEIPT_MODE_PROPERTY
isEMAIL_USER_RECEIPT_MODE_FULL
- Since:
- 4.1.0
-
isEmailUserReceiptLinkEnabled
public boolean isEmailUserReceiptLinkEnabled()Return whether the form is configured to automatically send receipt emails that include the PDF receipt to users when they complete a submission- Returns:
- true if
_Form.EMAIL_USER_RECEIPT_MODE_PROPERTY
isEMAIL_USER_RECEIPT_MODE_RECEIPT_LINK
- Since:
- 5.1.0
-
setTrackingNoUseReceiptFlag
Deprecated.Set the trackingNoUseReceiptFlag value.- Parameters:
trackingNoUseReceiptFlag
- the trackingNoUseReceiptFlag value to set
-
isTrackingNoUseReceiptFlag
Deprecated.Return the trackingNoUseReceiptFlag value.- Returns:
- trackingNoUseReceiptFlag the trackingNoUseReceiptFlag value
-