com.ibm.commerce.contract.commands
Class ContractSubmitPostApprovalCmdImpl

com.ibm.commerce.contract.commands.ContractSubmitPostApprovalCmdImpl
All Implemented Interfaces:
AccCommand, ContractSubmitPostApprovalCmd, ControllerCommand, ECCommand, Protectable

public class ContractSubmitPostApprovalCmdImpl
implements ContractSubmitPostApprovalCmd

After a contract be approved, the contract will be deployed to the target store if the target store id is provided (WebSphere Commerce Business Edition only).


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.commerce.contract.commands.ContractSubmitPostApprovalCmd
defaultCommandClassName, NAME
 
Constructor Summary
ContractSubmitPostApprovalCmdImpl()
           
 
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

ContractSubmitPostApprovalCmdImpl

public ContractSubmitPostApprovalCmdImpl()
Method Detail

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 ContractSubmitPostApprovalCmd
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. -