com.ibm.commerce.contract.commands
Class CloseContractCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.contract.commands.CloseContractCmdImpl
All Implemented Interfaces:
CloseContractCmd, ECCommand, TaskCommand

public class CloseContractCmdImpl
extends TaskCommandImpl
implements CloseContractCmd

Close contracts (WebSphere Commerce Business Edition only). Normally this command will close all the contracts which in active, approved, or suspended state with the same contract as the deploying contract. If an error occurred, an ECException will be thrown. Calling commands: DeployContractCmd


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.contract.commands.CloseContractCmd
defaultCommandClassName, NAME
 
Constructor Summary
CloseContractCmdImpl()
           
 
Method Summary
 java.lang.Long getContractId()
          Return contract id
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setContractId(java.lang.Long contractId)
          Set the contract id parameter
 void setStoreId(java.lang.Integer storeId)
          Set store id parameter
 void validateParameters()
          Performs server side parameter checking.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

CloseContractCmdImpl

public CloseContractCmdImpl()
Method Detail

getContractId

public java.lang.Long getContractId()
Return contract id
Returns:
java.lang.Long

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
Overrides:
performExecute in class AbstractECCommand
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 contractId)
Set the contract id parameter
Specified by:
setContractId in interface CloseContractCmd
Parameters:
contractId - java.lang.Long

setStoreId

public void setStoreId(java.lang.Integer storeId)
Set store id parameter
Specified by:
setStoreId in interface CloseContractCmd
Parameters:
storeId - java.lang.Integer

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
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -