com.ibm.commerce.order.commands
Class SetOrderTemplateCmdImpl
com.ibm.commerce.order.commands.SetOrderTemplateCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable, SetOrderTemplateCmd
- public class SetOrderTemplateCmdImpl
- implements SetOrderTemplateCmd
This is the default implementation of the SetOrderTemplate command.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
void |
checkIsAllowed(AccessVector resource,
java.lang.String action)
Reserved for IBM internal use only. |
void |
checkOrderTemplate(OrderAccessBean aabOrder,
java.lang.Integer anUsage)
Reserved for IBM internal use only. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setGroups(SetOrderTemplateCmd.Group[] aGroups)
Set the enumerationGroups.
An enumerationGroup consists of:
public Long inMemberId - memberId to resolve orderAbbreviations in the enumerationGroup.
public Integer inStoreId - storeId to resolve orderAbbreviations in the enumerationGroup.
public Integer inUsage - 0 to mark, 1 to mark as current, -1 to unmark.br>
public String[] istrOrderAbbreviations - orderAbbreviations (e.g. |
void |
setOutOrderNames(java.lang.String[] astrOutOrderNames)
Set the names of the orderId NVPs to be appended to the redirection URL. |
void |
setRequestProperties(TypedProperty ahshRequestProperties)
The WebController calls this method before invoking the execute method in this command to
set the request properties for this command. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
SetOrderTemplateCmdImpl
public SetOrderTemplateCmdImpl()
checkIsAllowed
public void checkIsAllowed(AccessVector resource,
java.lang.String action)
throws ECException
- Reserved for IBM internal use only.
checkOrderTemplate
public void checkOrderTemplate(OrderAccessBean aabOrder,
java.lang.Integer anUsage)
throws javax.ejb.CreateException,
ECException,
javax.ejb.FinderException,
javax.naming.NamingException,
java.rmi.RemoteException
- Reserved for IBM internal use only.
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setGroups
public void setGroups(SetOrderTemplateCmd.Group[] aGroups)
- Description copied from interface:
SetOrderTemplateCmd
- Set the enumerationGroups.
An enumerationGroup consists of:
public Long inMemberId - memberId to resolve orderAbbreviations in the enumerationGroup.
public Integer inStoreId - storeId to resolve orderAbbreviations in the enumerationGroup.
public Integer inUsage - 0 to mark, 1 to mark as current, -1 to unmark.br>
public String[] istrOrderAbbreviations - orderAbbreviations (e.g. '*').
- Specified by:
setGroups
in interface SetOrderTemplateCmd
- Following copied from interface:
com.ibm.commerce.order.commands.SetOrderTemplateCmd
- Parameters:
aGroups
- the enumerationGroups.
setOutOrderNames
public void setOutOrderNames(java.lang.String[] astrOutOrderNames)
- Description copied from interface:
SetOrderTemplateCmd
- Set the names of the orderId NVPs to be appended to the redirection URL.
- Specified by:
setOutOrderNames
in interface SetOrderTemplateCmd
- Following copied from interface:
com.ibm.commerce.order.commands.SetOrderTemplateCmd
- Parameters:
astrOutOrderNames
- the names of the orderId NVPs.
setRequestProperties
public void setRequestProperties(TypedProperty ahshRequestProperties)
throws ECApplicationException
- Description copied from interface:
ControllerCommand
- The WebController calls this method before invoking the execute method in this command to
set the request properties for this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface:
ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous
version of the code.
- Specified by:
validateParameters
in interface ECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-