com.ibm.commerce.contract.commands
Class ContractSubmitPostCancelCmdImpl
com.ibm.commerce.contract.commands.ContractSubmitPostCancelCmdImpl
- All Implemented Interfaces:
- AccCommand, ContractSubmitPostCancelCmd, ControllerCommand, ECCommand, Protectable
- public class ContractSubmitPostCancelCmdImpl
- implements ContractSubmitPostCancelCmd
Cancel a contract approval process (WebSphere Commerce Business Edition only).
Method Summary |
java.lang.Long |
getContractId()
Return contract id |
java.lang.Long |
getEntityId()
Returns the entity id. |
com.ibm.commerce.ubf.beans.BusinessFlowEntityBean |
getEntityObject()
Returns business flow entity bean. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setContractId(java.lang.Long newContractId)
Set the id of the contract. |
void |
setRequestProperties(TypedProperty aRequestProperties)
The WebController calls this method before invoking the execute method in this command to
set the request properties for this command. |
void |
setStateIdentifier(java.lang.Integer stateIndentifier)
Sets the state identifier. |
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 |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
ContractSubmitPostCancelCmdImpl
public ContractSubmitPostCancelCmdImpl()
getContractId
public java.lang.Long getContractId()
- Return contract id
- Returns:
- java.lang.Long
getEntityId
public java.lang.Long getEntityId()
- Returns the entity id. It is the same as the contract id.
getEntityObject
public com.ibm.commerce.ubf.beans.BusinessFlowEntityBean getEntityObject()
- Returns business flow entity bean. it is the ContractFlowEntityBean
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.
setContractId
public void setContractId(java.lang.Long newContractId)
- Set the id of the contract.
- Specified by:
setContractId
in interface ContractSubmitPostCancelCmd
- Parameters:
contractId
- java.lang.Long
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
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.
-
setStateIdentifier
public void setStateIdentifier(java.lang.Integer stateIndentifier)
- Sets the state identifier.
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.
-