public class EmailTemplateAddUpdateCtrlCmdImpl extends com.ibm.commerce.tools.command.ToolsControllerCommandImpl implements EmailTemplateAddUpdateCtrlCmd, EmailTemplateConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
ADD, ADD_UPDATE_FLAG, ALL_EMAIL_TEMPLATE, COMPONENT_EMAIL_ACTIVITY, CONTENT, CONTENTID, DIALOG_NAVIGATION, DUPLICATE, EC_USERID, EMAIL_ACTIVITY_DIALOG_ADD_XML, EMAIL_TEMPLATE_BEAN, EMAIL_TEMPLATE_CREATED_SUCCESSFULLY, EMAIL_TEMPLATE_LIST, EMAIL_TEMPLATE_LIST_VIEW_ACTIONXMLFILE_VALUE, EMAIL_TEMPLATE_LIST_VIEW_CMD_VALUE, EMAIL_TEMPLATE_MODIFIED_SUCCESSFULLY, EMAIL_TEMPLATE_NAME_DUPLICATE, EMAIL_TEMPLATE_PROPERTY_FILE, EMSPOT, ERROR, FIRST_NAME, FORM_FILLED_EDITABLE_TEMPLATE, FORM_FILLED_TYPE, HTML_FORMAT, INVALID_DELETIONS, INVALID_DELETIONS_LIST, JSP_FILE_NON_EDITABLE_TEMPLATE, JSP_TYPE, LAST_NAME, LINK, MESSAGEID, MESSAGEIDS, MSG_TEMPLATE_LIST_EMPTY, NEW_DYNAMIC_LIST_VIEW, NEW_EMAIL_ACTIVITY, NEW_TEMPLATE_CONTENT_ID, NEW_TEMPLATE_MESSAGE_ID, NEW_TEMPLATE_NAME, NEXT_VIEW, ORDER_BY_CONTENT_FORMAT, ORDER_BY_DESCRIPTION, ORDER_BY_NAME, ORDER_BY_TEMPLATE_TYPE, PARAMETER_ACTIONXMLFILE, PARAMETER_CMD, PARAMETER_EMAIL_ACTIVITY_COMMAND_ERROR, PARAMETER_EMAIL_ACTIVITY_REPLYTOCHECKBOX, PARAMETER_EMAIL_ACTIVITY_STATUS, PARAMETER_EMAIL_EVENT_NEXTVIEW, PARAMETER_EMAIL_EVENT_NEXTVIEW_CMD, PARAMETER_EMAIL_TEMPLATE_ACTIVE, PARAMETER_EMAIL_TEMPLATE_BODY, PARAMETER_EMAIL_TEMPLATE_CONTENTFORMAT, PARAMETER_EMAIL_TEMPLATE_DELETED, PARAMETER_EMAIL_TEMPLATE_DESCRIPTION, PARAMETER_EMAIL_TEMPLATE_NAME, PARAMETER_EMAIL_TEMPLATE_SUBJECT, PARAMETER_ORDER_BY, PARAMETER_XMLFILE, PLAIN_TEXT_FORMAT, RECORDOPEN, RESOURCE_BUNDLE_NAME, STOREID, UPDATE, VIEW_EMAIL_ACTIVITY_DELETE_REDIRECT
Constructor and Description |
---|
EmailTemplateAddUpdateCtrlCmdImpl() |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the resources that are accessed by this controller command.
|
boolean |
isDuplicateName(java.lang.String name)
Checks whether the any template with this name exists in the database
|
void |
performExecute()
Updates the database or inserts a new record in the database, based on the
task type.
|
void |
redirect()
Sets the response properties, which identifies the view to be shown to the user
after completion of this command.
|
void |
validateParameters()
Validates that the JSP page has in fact passed all the required parameters to
create a new e-mail template.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getViewInputProperties, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public com.ibm.commerce.accesscontrol.AccessVector getResources() throws com.ibm.commerce.exception.ECException
getResources
in interface com.ibm.commerce.command.ECCommand
getResources
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
ECCommand#getResources()
public boolean isDuplicateName(java.lang.String name) throws com.ibm.commerce.exception.ECSystemException
name
- - The name to be checked for existence in databasecom.ibm.commerce.exception.ECSystemException
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
public void redirect() throws com.ibm.commerce.exception.ECApplicationException
com.ibm.commerce.exception.ECApplicationException
public void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException