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
@CacheGroups("CONFIG") public class Form extends _Form implements Auditable
Provides a form entity encompassing a form template as well as configuration. This is one of the key entities in SmartForm Manager.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
AUTHENTICATION_MODES
The user form authentication requirements.static String
DEFAULT_RECEIPT_NUMBER_PATTERN
The default pattern used for generating receipt numbersstatic String
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.static String
EMAIL_USER_RECEIPT_MODE_FULL
The user receipt email mode that indicates that a confirmation email including a PDF receipt will be sent.static String
EMAIL_USER_RECEIPT_MODE_NONE
The user receipt email mode that indicates that no automated receipt emails will be sent.static String
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.static String[]
EMAIL_USER_RECEIPT_MODES
The options for automatically sending receipt emails to users.static String[]
EMAIL_VERIFICATION_MODES
The user form authentication requirements.static String
FORM_DISPLAY_MODE_DIRECT_RENDER
The 'Direct Render' form display mode.static String
FORM_DISPLAY_MODE_EMBED_WITH_DIV
The 'Embed with Div' form display mode.static String
FORM_DISPLAY_MODE_EMBED_WITH_IFRAME
The 'Embed with IFrame' form display mode.static String[]
FORM_DISPLAY_MODES
The form display mode options.static String
MODE_ALL_SUBMISSIONS
The All mode (e.g.static String
MODE_ANONYMOUS_ONLY
The Anonymous mode.static String
MODE_AUTHENTICATED_ONLY
The Authenticated mode.static String
MODE_DISABLED
The Disabled mode.static String[]
ONLINE_SAVE_MODES
The set of online save modesstatic String
PAGE_TRACKING_POSTION_AFTER_HTML
The page tracking include position: "After Body".static String
PAGE_TRACKING_POSTION_INSIDE_HEAD
The page tracking include position: "Inside Head".static String
TR_NO_MODE_RECEIPT_NUMBER_ONLY
The Tracking Receipt Number Mode - use only Receipt Number.static String
TR_NO_MODE_TRACKING_CODE_ONLY
The Tracking Receipt Number Mode - use only Tracking Code.static String[]
TR_NO_MODES
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, SIGNATURE_TYPE, SIGNATURE_TYPE_PROPERTY, SKIP_CONFIRMATION_PAGE_FLAG, SKIP_CONFIRMATION_PAGE_FLAG_PROPERTY, SKIP_LANDING_PAGE_FLAG, SKIP_LANDING_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, TERMS_PAGE_FLAG, TERMS_PAGE_FLAG_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
-
-
Constructor Summary
Constructors Constructor Description Form()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getAuthenticationMode()
Deprecated.String
getFormCode()
Return globally unique the client form code.String
getFormDescription()
Returns the form description.Set<String>
getFormGroupNames()
Return the set of group names the form belongs to.FormPortal
getFormPortal(Portal portal)
Returns the FormPortal associated with the given portal, if the portal is not associated with this form it returns nullList<Portal>
getPortals()
Return the set of portals this form is associated withString
getUrlSafeFormCode()
Return globally unique the client form code.boolean
isActive()
Return whether the form is activeboolean
isAnonymousOnlineSaveEnabled()
Return whether the form is configured to allow online saving by anonymous usersboolean
isAnonymousRequired()
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
isAuthenticatedOnlineSaveEnabled()
Return whether the form is configured to allow online saving by authenticated usersboolean
isAuthenticationRequired()
Deprecated.boolean
isAuthenticationRequired(Portal portal)
Return true if the form requires the user to be authenticated.boolean
isEmailUserReceiptEnabled()
Return whether the form is configured to automatically send receipt emails to users when they complete a submissionboolean
isEmailUserReceiptLinkEnabled()
Return whether the form is configured to automatically send receipt emails that include the PDF receipt to users when they complete a submissionboolean
isEmailVerificationEnabled()
Return whether the form is configured for submission email verificationboolean
isESignatureRequired()
Deprecated.boolean
isFormDisplayDirectRender()
Return true if the form display mode is 'Direct Render'.boolean
isFormDisplayEmbedDiv()
Return true if the form display mode is 'Embed with Div'.boolean
isFormDisplayEmbedIFrame()
Return true if the form display mode is 'Embed with IFrame'.boolean
isFormEnabled()
Return true if the form is enabled, submission expiry date is not before current time, and form template version available.boolean
isFullEmailUserReceiptEnabled()
Return whether the form is configured to automatically send receipt emails that include the PDF receipt to users when they complete a submissionboolean
isOnlineSaveDisabled()
boolean
isTrackingNoUseReceiptFlag()
Deprecated.boolean
isWetSignatureRequired()
Return whether the form requires wet signaturesboolean
requiresEmailVerificationForAnonymousUsers()
Return whether the form requires email verification of anonymous usersboolean
requiresEmailVerificationForAuthenticatedUsers()
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, getSignatureType, getStatus, getSubMaxAgeDataDelivered, getSubmissionExpiryDate, getSubmissionExpiryDays, getSubmissions, getTrackingNumberService, getTrackingReceiptNoMode, getTransactionValue, getValidationDelivery, getVersionDeployments, getVersions, getVersionSelectorService, isEmailVerificationDeliverAbandonedFlag, isFieldEventLoggingFlag, isLogXmlFlag, isPageTrackingEnabledFlag, isReceiptEnabledFlag, isSkipConfirmationPageFlag, isSkipLandingPageFlag, isTermsPageFlag, 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, setSignatureType, setSkipConfirmationPageFlag, setSkipLandingPageFlag, setStatus, setSubMaxAgeDataDelivered, setSubmissionExpiryDate, setSubmissionExpiryDays, setTermsPageFlag, 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
-
-
-
-
Field Detail
-
FORM_DISPLAY_MODE_DIRECT_RENDER
public static final String FORM_DISPLAY_MODE_DIRECT_RENDER
The 'Direct Render' form display mode.- See Also:
- Constant Field Values
-
FORM_DISPLAY_MODE_EMBED_WITH_DIV
public static final String FORM_DISPLAY_MODE_EMBED_WITH_DIV
The 'Embed with Div' form display mode.- See Also:
- Constant Field Values
-
FORM_DISPLAY_MODE_EMBED_WITH_IFRAME
public static final String FORM_DISPLAY_MODE_EMBED_WITH_IFRAME
The 'Embed with IFrame' form display mode.- See Also:
- Constant Field Values
-
FORM_DISPLAY_MODES
public static final String[] FORM_DISPLAY_MODES
The form display mode options.
-
MODE_DISABLED
public static final String MODE_DISABLED
The Disabled mode.- See Also:
- Constant Field Values
-
MODE_ANONYMOUS_ONLY
public static final String MODE_ANONYMOUS_ONLY
The Anonymous mode.- See Also:
- Constant Field Values
-
MODE_AUTHENTICATED_ONLY
public static final String MODE_AUTHENTICATED_ONLY
The Authenticated mode.- See Also:
- Constant Field Values
-
ONLINE_SAVE_MODES
public static final String[] ONLINE_SAVE_MODES
The set of online save modes
-
MODE_ALL_SUBMISSIONS
public static final String MODE_ALL_SUBMISSIONS
The All mode (e.g. a setting applying to all submissions).- See Also:
- Constant Field Values
-
AUTHENTICATION_MODES
public static final String[] AUTHENTICATION_MODES
The user form authentication requirements.
-
EMAIL_VERIFICATION_MODES
public static final String[] EMAIL_VERIFICATION_MODES
The user form authentication requirements.
-
DEFAULT_RECEIPT_NUMBER_PATTERN
public static final String DEFAULT_RECEIPT_NUMBER_PATTERN
The default pattern used for generating receipt numbers- See Also:
- Constant Field Values
-
EMAIL_USER_RECEIPT_MODE_NONE
public static final String EMAIL_USER_RECEIPT_MODE_NONE
The user receipt email mode that indicates that no automated receipt emails will be sent.- See Also:
- Constant Field Values
-
EMAIL_USER_RECEIPT_MODE_CONFIRMATION_ONLY
public static final String 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:
- Constant Field Values
-
EMAIL_USER_RECEIPT_MODE_FULL
public static final String 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:
- Constant Field Values
-
EMAIL_USER_RECEIPT_MODE_RECEIPT_LINK
public static final String 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:
- Constant Field Values
-
EMAIL_USER_RECEIPT_MODES
public static final String[] EMAIL_USER_RECEIPT_MODES
The options for automatically sending receipt emails to users.
-
PAGE_TRACKING_POSTION_INSIDE_HEAD
public static final String PAGE_TRACKING_POSTION_INSIDE_HEAD
The page tracking include position: "Inside Head".- See Also:
- Constant Field Values
-
PAGE_TRACKING_POSTION_AFTER_HTML
public static final String PAGE_TRACKING_POSTION_AFTER_HTML
The page tracking include position: "After Body".- See Also:
- Constant Field Values
-
TR_NO_MODE_TRACKING_CODE_ONLY
public static final String TR_NO_MODE_TRACKING_CODE_ONLY
The Tracking Receipt Number Mode - use only Tracking Code.- See Also:
- Constant Field Values
-
TR_NO_MODE_RECEIPT_NUMBER_ONLY
public static final String TR_NO_MODE_RECEIPT_NUMBER_ONLY
The Tracking Receipt Number Mode - use only Receipt Number.- See Also:
- Constant Field Values
-
TR_NO_MODES
public static final String[] TR_NO_MODES
The Tracking Receipt Number Mode Values.
-
-
Method Detail
-
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
public boolean isAuthenticationRequired(Portal portal)
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
public boolean isAnonymousRequired(Portal portal)
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
public void setAuthenticationMode(String authenticationMode)
Deprecated.Set the authenticationMode value.- Parameters:
authenticationMode
- the authenticationMode value to set
-
getAuthenticationMode
public String 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
-
isESignatureRequired
@Deprecated public boolean isESignatureRequired()
Deprecated.- Returns:
- false
-
isWetSignatureRequired
public boolean isWetSignatureRequired()
Return whether the form requires wet signatures- Returns:
- true if the form requires wet signatures
-
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
public String 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
public Set<String> 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
public boolean isAssociatedWithPortal(Portal portal)
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
public FormPortal getFormPortal(Portal portal)
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
public List<Portal> 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
public String getFormCode()
Return globally unique the client form code.- Returns:
- globally unique the client form code
- Since:
- 3.6.0
-
getUrlSafeFormCode
public String 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 public void setTrackingNoUseReceiptFlag(boolean trackingNoUseReceiptFlag)
Deprecated.Set the trackingNoUseReceiptFlag value.- Parameters:
trackingNoUseReceiptFlag
- the trackingNoUseReceiptFlag value to set
-
isTrackingNoUseReceiptFlag
@Deprecated public boolean isTrackingNoUseReceiptFlag()
Deprecated.Return the trackingNoUseReceiptFlag value.- Returns:
- trackingNoUseReceiptFlag the trackingNoUseReceiptFlag value
-
-