com.ibm.commerce.contract.commands
Class ParticipantDeleteCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.contract.commands.ParticipantDeleteCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
ECCommand,
ECTargetableCommand,
ParticipantDeleteCmd
- public class ParticipantDeleteCmdImpl
- extends
ControllerCommandImpl
- implements
ParticipantDeleteCmd
Delete the specified participant from a trading agreement (Contract/Account)
or a Contract terms and conditions (WebSphere Commerce Business Edition only).
The following AccessBeans are used in this default implementation:
ContractAccessBean, AccountAccessBean, TradingAgreementAccessBean,
ParticipantAccessBean, TermConditionAccessBean.
- See Also:
- Serialized
Form
Field Summary |
static java.lang.String |
CLASSNAME
The name of this class. |
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 class.
- See Also:
-
Constant Field Values
ParticipantDeleteCmdImpl
public ParticipantDeleteCmdImpl()
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command. The default implementation
returns the AccountAccessBean for deleting participant to an account and
ContractAccessBean for contract.
-
- Specified by:
-
getResources
in interface
ECCommand
- Overrides:
-
getResources
in class
AbstractECTargetableCommand
-
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
-
ECException
- See Also:
AbstratECTargetableCommand#getResources()
public void performExecute()
throws ECException
- Deletes the participant from the specified contract/account or a contract
terms and condtions.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
ECException
- See Also:
-
AbstractECTargetableCommand.performExecute()
setParticipantId
public void setParticipantId(java.lang.Long anId)
- Sets the ID of the participant to be deleted.
-
- Specified by:
-
setParticipantId
in interface
ParticipantDeleteCmd
-
- Parameters:
anId
- the participant ID
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, participantId is the
required parameter.
- Throws:
-
ECApplicationException
- Raised with message
_ERR_MISSING_CMD_PARAMETER if one of the two required parameters are missing.
Raised with message _ERR_NUMBER_FORMAT_EXCEPTION if the provided participantId
cannot be converted to Long object.
- See Also:
-
ControllerCommandImpl.setRequestProperties(TypedProperty)
validateParameters
public void validateParameters()
throws ECException
- Checks the input parameters.
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
AbstractECTargetableCommand
-
- Throws:
-
ECException
- Raised with message _ERR_PARTICIPANT_OBJECT_NOT_FOUND if the participant
cannot be retrieved from the database for the given participant ID. Raised with
message _ERR_WRONG_CONTRACT_STATE if the contract do not in Draft or Rejected
state when adding a participant to a contract or a contract terms and
conditions.
- See Also:
-
AbstractECTargetableCommand.validateParameters()