com.ibm.commerce.contract.tc.commands
Class ContractTCDeleteCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.contract.tc.commands.ContractTCDeleteCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ContractTCDeleteCmd,
ControllerCommand,
ECCommand,
ECTargetableCommand
- public class ContractTCDeleteCmdImpl
- extends
ControllerCommandImpl
- implements
ContractTCDeleteCmd
Delete terms and condtions from a contract (WebSphere Commerce Business
Edition only). The contract has to be in Draft state. The following AccessBeans
are used in this default implementation: TermConditionAccessBean,
ContractAccessBean
- See Also:
- Serialized
Form
Field Summary |
static java.lang.String |
CLASSNAME
The name of this command. |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
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,
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 |
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,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
CLASSNAME
public static final java.lang.String CLASSNAME
- The name of this command.
- See Also:
-
Constant Field Values
ContractTCDeleteCmdImpl
public ContractTCDeleteCmdImpl()
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command. The default implementation
returns a vector of ContractAccessBean objects of the contracts which the terms
and conditions will be deleted from.
-
- Specified by:
-
getResources
in interface
ECCommand
- Overrides:
-
getResources
in class
AbstractECTargetableCommand
-
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
-
ECException
- See Also:
-
AbstractECTargetableCommand.getResources()
public void performExecute()
throws ECException
- Deletes the specified terms and conditions
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
ECException
- Raised with message _ERR_FINDER_EXCEPTION if the FinderException occurred.
Raised with message _ERR_REMOTE_EXCEPTION if the RemoteException occurred.
Raised with message _ERR_NAMING_EXCEPTION if the NamingException occurred.
Raised with message _ERR_CREATE_EXCEPTION if the CreateException occurred.
Raised with message _ERR_REMOVE_EXCEPTION if the RemoveException
occurred.
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
throws ECApplicationException
- Retrieves input parameters from the request properties.
-
- Specified by:
-
setRequestProperties
in interface
ControllerCommand
- Overrides:
-
setRequestProperties
in class
ControllerCommandImpl
-
- Parameters:
aRequestProperties
- An TypedProperty object contains the
input parameters. For this default implementation, the tcId is the required
parameter.
- Throws:
-
ECApplicationException
- Raised with message
_ERR_MISSING_CMD_PARAMETER if one of the these required parameters are missing.
Raised wiht message _ERR_NUMBER_FORMAT_EXCEPTION if the provided IDs of the
terms and conditions cannot be convert to Long object.
- See Also:
-
ControllerCommandImpl.setRequestProperties(TypedProperty)
setTcIdList
public void setTcIdList(java.lang.String[] asaList)
- Sets the IDs of the Terms and Conditions to be deleted
-
- Specified by:
-
setTcIdList
in interface
ContractTCDeleteCmd
-
- Parameters:
asaList
- the ID list of the term and
condition
validateParameters
public void validateParameters()
throws ECException
- Checks if the contract object exists.
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
AbstractECTargetableCommand
-
- Throws:
-
ECException
- Raised with message _ERR_TERM_CONDITION_OBJECT_NOT_FOUND if one of terms and
conditions cannot be found in the database. Raised with message
_ERR_WRONG_CONTRACT_STATE If the contract is not in Draft or Rejected state.
Raised with message _ERR_NUMBER_FORMAT_EXCEPTION if an error occurred when
converts one of terms and conditions IDs string to Long object. Raised with
message _ERR_FINDER_EXCEPTION if the FinderException occurred. Raised with
message _ERR_REMOTE_EXCEPTION if the RemoteException occurred. Raised with
message _ERR_NAMING_EXCEPTION if the NamingException occurred. Raised with
message _ERR_CREATE_EXCEPTION if the CreateException occurred.
- See Also:
-
AbstractECTargetableCommand.validateParameters()