Package com.avoka.fc.core.servlet.dd.cmd
Class Command
- java.lang.Object
-
- com.avoka.fc.core.servlet.dd.cmd.Command
-
public class Command extends Object
Provides a command value object.- Since:
- 17.10.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
OPTION_ADD_ATTACHMENT_FILE
Provides the "addAttachmentFile" command.options.static String
OPTION_ADD_ATTACHMENT_MANUALLY
Provides the "addAttachmentManually" command.options.static String
OPTION_CONTEXT
Provides the "context" command.options.static String
OPTION_EMAIL_ADDRESS
Provides the "emailAddress" command.options.static String
OPTION_FORM_CODE
Provides the "formCode" command.options.static String
OPTION_FORM_VERSION
Provides the "formVersion" command.options.static String
OPTION_MILESTONE
Provides the "milestone" command.options.static String
OPTION_REMOVE_ATTACHMENT
Provides the "removeAttachment" command.options.static String
OPTION_SAVE_CHALLENGE_ANSWER
Provides the "saveChallengeAnswer" command.options.static String
OPTION_SEND_EMAIL_FORM_RECEIPT
Provides the "sendEmailFormReceipt" command.options.static String
OPTION_SEND_EMAIL_SAVED_FORM
Provides the "sendEmailSavedForm" command.options.static String
OPTION_SEND_EMAIL_SHARE_FORM
Provides the "sendEmailShareForm" command.options.static String
OPTION_STACKTRACE
Provides the "stacktrace" command.options.static String
OPTION_TRACKING_CODE
Provides the "trackingCode" command.options.static String
OPTION_USER_SAVED
Provides the "userSaved" command.options.Map
options
Specifies the command options.Map<String,Object>
parameters
Specifies the command parameters.String
requestKey
Specifies the command requestKey.String
type
Specifies the command type.static String
TYPE_FORM_ERROR
Provides the "formError" command.type.static String
TYPE_FORM_FUNCTION
Provides the "formFunction" command.type.static String
TYPE_FORM_INELIGIBLE
Provides the "formIneligible" command.type.static String
TYPE_FORM_INIT
Provides the "formInit" command.type.static String
TYPE_FORM_LOAD
Provides the "formLoad" command.type.static String
TYPE_FORM_NEW
Provides the "formNew" command.type.static String
TYPE_FORM_START
Provides the "formStart" command.type.static String
TYPE_FORM_UPDATE
Provides the "formUpdate" command.type.static String
TYPE_USER_CANCEL
Provides the "userCancel" command.type.static String
TYPE_USER_SAVE
Provides the "userSave" command.type.static String
TYPE_USER_SUBMIT
Provides the "userSubmit" command.type.
-
Constructor Summary
Constructors Constructor Description Command()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.avoka.fc.core.servlet.dd.cmd.AddAttachmentFile
getOptionsAddAttachmentFile()
Return the command.options["addAttachmentFile"] value if definedcom.avoka.fc.core.servlet.dd.cmd.AddAttachmentManually
getOptionsAddAttachmentManually()
Return the command.options["addAttachmentManually"] value if definedString
getOptionsContext()
Return the command.options["context"] value if definedString
getOptionsEmailAddress()
Return the command.options["emailAddress"] value if definedString
getOptionsMilestone()
Return the command.options["milestone"] value if definedcom.avoka.fc.core.servlet.dd.cmd.RemoveAttachment
getOptionsRemoveAttachment()
Return the command.options["removeAttachment"] value if definedString
getOptionsSaveChallengeAnswer()
Return the command.options["saveChallengeAnswer"] value if definedString
getOptionsStracktrace()
Return the command.options["stacktrace"] value if definedString
getOptionsTrackingCode()
Return the command.options["trackingCode"] value if definedObject
getOptionsValue(String name)
Return the command.options value for the given name, or null if not found.boolean
hasOptionsValue(String key)
Return true if the command.options has a value for the given key.boolean
isOptionsSendEmailFormReceipt()
Return true if command.options["sendEmailFormReceipt"] is defined and trueboolean
isOptionsSendEmailSavedForm()
Return true if command.options["sendEmailSavedForm"] is defined and trueboolean
isOptionsSendEmailShareForm()
Return true if command.options["sendEmailShareForm"] is defined and trueboolean
isOptionsUserSaved()
Return true if command.options["userSaved"] is defined and trueboolean
isTypeFormError()
Return true if command.type = "formError"boolean
isTypeFormFunction()
Return true if command.type = "formFunction"boolean
isTypeFormIneligible()
Return true if command.type = "formIneligible"boolean
isTypeFormInit()
Return true if command.type = "formInit"boolean
isTypeFormLoad()
Return true if command.type = "formLoad"boolean
isTypeFormNew()
Return true if command.type = "formNew"boolean
isTypeFormStart()
Return true if command.type = "formStart"boolean
isTypeFormUpdate()
Return true if command.type = "formUpdate"boolean
isTypeUserCancel()
Return true if command.type = "userCancel"boolean
isTypeUserSave()
Return true if command.type = "userSave"boolean
isTypeUserSubmit()
Return true if command.type = "userSubmit"boolean
requiresFormData()
Return true if the command type requires formData to be performed.String
toString()
-
-
-
Field Detail
-
TYPE_USER_SAVE
public static final String TYPE_USER_SAVE
Provides the "userSave" command.type.- See Also:
- Constant Field Values
-
TYPE_USER_SUBMIT
public static final String TYPE_USER_SUBMIT
Provides the "userSubmit" command.type.- See Also:
- Constant Field Values
-
TYPE_USER_CANCEL
public static final String TYPE_USER_CANCEL
Provides the "userCancel" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_LOAD
public static final String TYPE_FORM_LOAD
Provides the "formLoad" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_START
public static final String TYPE_FORM_START
Provides the "formStart" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_INELIGIBLE
public static final String TYPE_FORM_INELIGIBLE
Provides the "formIneligible" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_UPDATE
public static final String TYPE_FORM_UPDATE
Provides the "formUpdate" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_FUNCTION
public static final String TYPE_FORM_FUNCTION
Provides the "formFunction" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_ERROR
public static final String TYPE_FORM_ERROR
Provides the "formError" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_INIT
public static final String TYPE_FORM_INIT
Provides the "formInit" command.type.- See Also:
- Constant Field Values
-
TYPE_FORM_NEW
public static final String TYPE_FORM_NEW
Provides the "formNew" command.type.- See Also:
- Constant Field Values
-
OPTION_CONTEXT
public static final String OPTION_CONTEXT
Provides the "context" command.options.- See Also:
- Constant Field Values
-
OPTION_EMAIL_ADDRESS
public static final String OPTION_EMAIL_ADDRESS
Provides the "emailAddress" command.options.- See Also:
- Constant Field Values
-
OPTION_MILESTONE
public static final String OPTION_MILESTONE
Provides the "milestone" command.options.- See Also:
- Constant Field Values
-
OPTION_SEND_EMAIL_FORM_RECEIPT
public static final String OPTION_SEND_EMAIL_FORM_RECEIPT
Provides the "sendEmailFormReceipt" command.options.- See Also:
- Constant Field Values
-
OPTION_SEND_EMAIL_SAVED_FORM
public static final String OPTION_SEND_EMAIL_SAVED_FORM
Provides the "sendEmailSavedForm" command.options.- See Also:
- Constant Field Values
-
OPTION_SEND_EMAIL_SHARE_FORM
public static final String OPTION_SEND_EMAIL_SHARE_FORM
Provides the "sendEmailShareForm" command.options.- See Also:
- Constant Field Values
-
OPTION_STACKTRACE
public static final String OPTION_STACKTRACE
Provides the "stacktrace" command.options.- See Also:
- Constant Field Values
-
OPTION_USER_SAVED
public static final String OPTION_USER_SAVED
Provides the "userSaved" command.options.- See Also:
- Constant Field Values
-
OPTION_ADD_ATTACHMENT_FILE
public static final String OPTION_ADD_ATTACHMENT_FILE
Provides the "addAttachmentFile" command.options.- See Also:
- Constant Field Values
-
OPTION_ADD_ATTACHMENT_MANUALLY
public static final String OPTION_ADD_ATTACHMENT_MANUALLY
Provides the "addAttachmentManually" command.options.- See Also:
- Constant Field Values
-
OPTION_REMOVE_ATTACHMENT
public static final String OPTION_REMOVE_ATTACHMENT
Provides the "removeAttachment" command.options.- See Also:
- Constant Field Values
-
OPTION_SAVE_CHALLENGE_ANSWER
public static final String OPTION_SAVE_CHALLENGE_ANSWER
Provides the "saveChallengeAnswer" command.options.- See Also:
- Constant Field Values
-
OPTION_FORM_CODE
public static final String OPTION_FORM_CODE
Provides the "formCode" command.options.- See Also:
- Constant Field Values
-
OPTION_FORM_VERSION
public static final String OPTION_FORM_VERSION
Provides the "formVersion" command.options.- See Also:
- Constant Field Values
-
OPTION_TRACKING_CODE
public static final String OPTION_TRACKING_CODE
Provides the "trackingCode" command.options.- See Also:
- Constant Field Values
-
type
public String type
Specifies the command type.
-
requestKey
public String requestKey
Specifies the command requestKey.
-
options
public Map options
Specifies the command options.
-
-
Method Detail
-
getOptionsValue
public Object getOptionsValue(String name)
Return the command.options value for the given name, or null if not found.- Parameters:
name
- the command.options key name- Returns:
- the command.options value for the given name, or null if not found
-
hasOptionsValue
public boolean hasOptionsValue(String key)
Return true if the command.options has a value for the given key.- Parameters:
key
- the command.options key name- Returns:
- true if the command.options has a value for the given key
-
isOptionsUserSaved
public boolean isOptionsUserSaved()
Return true if command.options["userSaved"] is defined and true- Returns:
- true if command.options["userSaved"] is defined and true
-
isOptionsSendEmailFormReceipt
public boolean isOptionsSendEmailFormReceipt()
Return true if command.options["sendEmailFormReceipt"] is defined and true- Returns:
- true if command.options["sendEmailFormReceipt"] is defined and true
-
isOptionsSendEmailSavedForm
public boolean isOptionsSendEmailSavedForm()
Return true if command.options["sendEmailSavedForm"] is defined and true- Returns:
- true if command.options["sendEmailSavedForm"] is defined and true
-
isOptionsSendEmailShareForm
public boolean isOptionsSendEmailShareForm()
Return true if command.options["sendEmailShareForm"] is defined and true- Returns:
- true if command.options["sendEmailShareForm"] is defined and true
-
getOptionsContext
public String getOptionsContext()
Return the command.options["context"] value if defined- Returns:
- the command.options["context"] value if defined
- Since:
- 18.5.0
-
getOptionsMilestone
public String getOptionsMilestone()
Return the command.options["milestone"] value if defined- Returns:
- the command.options["milestone"] value if defined
-
getOptionsAddAttachmentFile
public com.avoka.fc.core.servlet.dd.cmd.AddAttachmentFile getOptionsAddAttachmentFile()
Return the command.options["addAttachmentFile"] value if defined- Returns:
- the command.options["addAttachmentFile"] value if defined
-
getOptionsAddAttachmentManually
public com.avoka.fc.core.servlet.dd.cmd.AddAttachmentManually getOptionsAddAttachmentManually()
Return the command.options["addAttachmentManually"] value if defined- Returns:
- the command.options["addAttachmentManually"] value if defined
-
getOptionsRemoveAttachment
public com.avoka.fc.core.servlet.dd.cmd.RemoveAttachment getOptionsRemoveAttachment()
Return the command.options["removeAttachment"] value if defined- Returns:
- the command.options["removeAttachment"] value if defined
-
getOptionsEmailAddress
public String getOptionsEmailAddress()
Return the command.options["emailAddress"] value if defined- Returns:
- the command.options["emailAddress"] value if defined
-
getOptionsSaveChallengeAnswer
public String getOptionsSaveChallengeAnswer()
Return the command.options["saveChallengeAnswer"] value if defined- Returns:
- the command.options["saveChallengeAnswer"] value if defined
- Since:
- 18.11.0
-
getOptionsStracktrace
public String getOptionsStracktrace()
Return the command.options["stacktrace"] value if defined- Returns:
- the command.options["stacktrace"] value if defined
- Since:
- 18.5.0
-
getOptionsTrackingCode
public String getOptionsTrackingCode()
Return the command.options["trackingCode"] value if defined- Returns:
- the command.options["trackingCode"] value if defined
- Since:
- 18.11.0
-
isTypeFormError
public boolean isTypeFormError()
Return true if command.type = "formError"- Returns:
- true if command.type = "formError"
- Since:
- 18.5.0
-
isTypeFormFunction
public boolean isTypeFormFunction()
Return true if command.type = "formFunction"- Returns:
- true if command.type = "formFunction"
-
isTypeFormIneligible
public boolean isTypeFormIneligible()
Return true if command.type = "formIneligible"- Returns:
- true if command.type = "formIneligible"
-
isTypeFormInit
public boolean isTypeFormInit()
Return true if command.type = "formInit"- Returns:
- true if command.type = "formInit"
- Since:
- 18.5.0
-
isTypeFormLoad
public boolean isTypeFormLoad()
Return true if command.type = "formLoad"- Returns:
- true if command.type = "formLoad"
- Since:
- 18.11.0
-
isTypeFormNew
public boolean isTypeFormNew()
Return true if command.type = "formNew"- Returns:
- true if command.type = "formNew"
- Since:
- 18.11.0
-
isTypeFormStart
public boolean isTypeFormStart()
Return true if command.type = "formStart"- Returns:
- true if command.type = "formStart"
-
isTypeFormUpdate
public boolean isTypeFormUpdate()
Return true if command.type = "formUpdate"- Returns:
- true if command.type = "formUpdate"
-
isTypeUserCancel
public boolean isTypeUserCancel()
Return true if command.type = "userCancel"- Returns:
- true if command.type = "userCancel"
-
isTypeUserSave
public boolean isTypeUserSave()
Return true if command.type = "userSave"- Returns:
- true if command.type = "userSave"
-
isTypeUserSubmit
public boolean isTypeUserSubmit()
Return true if command.type = "userSubmit"- Returns:
- true if command.type = "userSubmit"
-
requiresFormData
public boolean requiresFormData()
Return true if the command type requires formData to be performed.- Returns:
- true if the command type requires formData to be performed
- Since:
- 18.11.0
-
-