com.ibm.commerce.contract.commands
Class ScheduledContractDeployCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.command.AsyncControllerCommandImpl
                  com.ibm.commerce.contract.commands.ScheduledContractDeployCmdImpl
All Implemented Interfaces:
AccCommand, AsyncCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ScheduledContractDeployCmd

public class ScheduledContractDeployCmdImpl
extends AsyncControllerCommandImpl
implements ScheduledContractDeployCmd, AsyncCommand

Deploy the specified contract to the specified store (WebSphere Commerce Business Edition only).

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
The name of this class.
static java.lang.String COPYRIGHT
The internal copyright field.
Fields inherited from class com.ibm.commerce.command.AsyncControllerCommandImpl
jobInstanceId, jobReferenceId
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.contract.commands.ScheduledContractDeployCmd
defaultCommandClassName, NAME
Constructor Summary
ScheduledContractDeployCmdImpl()
Method Summary
AccessVector getResources() Gets the access vector accessed by this command. The default implementation returns ContractAccessBean of contract to be deployed.
void performExecute()
Submits the contract deployment job to scheduler
Methods inherited from class com.ibm.commerce.command.AsyncControllerCommandImpl
getJobInstanceId, getJobReferenceId, setJobInstanceId, setJobReferenceId
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
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.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Methods inherited from interface com.ibm.commerce.command.AsyncCommand
getJobInstanceId, getJobReferenceId, setJobInstanceId, setJobReferenceId
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this class.
See Also:
Constant Field Values
Constructor Detail

ScheduledContractDeployCmdImpl

public ScheduledContractDeployCmdImpl()
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command.
The default implementation returns ContractAccessBean of contract to be deployed.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs
Throws:
ECException - Raised with error message _ERR_MISSING_CMD_PARAMETER when contractId cannot be found in the request properties.
Raised with error message _ERR_CREATE_EXCEPTION whenever a CreateException is occured.
Raised with error message _ERR_FINDER_EXCEPTION whenever a FinderException is occured.
Raised with error message _ERR_REMOTE_EXCEPTION whenever a RemoteException is occured.
Raised with error message _ERR_NAMING_EXCEPTION whenever a NamingException is occured.
See Also:
AbstractECTargetableCommand.getResources()

performExecute

public void performExecute()
                    throws ECException
Submits the contract deployment job to scheduler
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
AbstractECTargetableCommand.performExecute()

Feedback