com.ibm.commerce.contract.commands
Class ParticipantAddCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.contract.commands.ParticipantAddCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ParticipantAddCmd, Protectable
- public class ParticipantAddCmdImpl
- extends ControllerCommandImpl
- implements ParticipantAddCmd
Add a participant to either a trading agreement or terms and conditions (WebSphere Commerce Business Edition only).
Method Summary |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setInfo(java.lang.String newInfo)
Set information of the participant |
void |
setMemberId(java.lang.Long newMemberId)
Set member id of the participant |
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 |
setRole(java.lang.String newRole)
Set type of the participant role |
void |
setTcId(java.lang.Long newTcId)
Set id of the term and condition to which the participant will be added |
void |
setTermConditionId(java.lang.Long anTcId)
Set the id of term and condition. |
void |
setTradingId(java.lang.Long newTradingId)
Set id of the trading agreement to which the participant will be added |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
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.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
ParticipantAddCmdImpl
public ParticipantAddCmdImpl()
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command.
The default implementation returns null indicating that no protectable resource is
accessed by this command. It is the responsibilities of the command writer to
return the protectable primary resource(s) and the corresponding actions accessed
by this command.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AbstractECTargetableCommand
- Returns:
- AccessVector - a vector of resource action pairs
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 AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setInfo
public void setInfo(java.lang.String newInfo)
- Description copied from interface:
ParticipantAddCmd
- Set information of the participant
- Specified by:
setInfo
in interface ParticipantAddCmd
- Following copied from interface:
com.ibm.commerce.contract.commands.ParticipantAddCmd
- Parameters:
info
- java.lang.String
setMemberId
public void setMemberId(java.lang.Long newMemberId)
- Description copied from interface:
ParticipantAddCmd
- Set member id of the participant
- Specified by:
setMemberId
in interface ParticipantAddCmd
- Following copied from interface:
com.ibm.commerce.contract.commands.ParticipantAddCmd
- Parameters:
memberId
- 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
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
setRole
public void setRole(java.lang.String newRole)
- Description copied from interface:
ParticipantAddCmd
- Set type of the participant role
- Specified by:
setRole
in interface ParticipantAddCmd
- Following copied from interface:
com.ibm.commerce.contract.commands.ParticipantAddCmd
- Parameters:
role
- java.lang.String
setTcId
public void setTcId(java.lang.Long newTcId)
- Description copied from interface:
ParticipantAddCmd
- Set id of the term and condition to which the participant will be added
- Specified by:
setTcId
in interface ParticipantAddCmd
- Following copied from interface:
com.ibm.commerce.contract.commands.ParticipantAddCmd
- Parameters:
tcId
- java.lang.Long
setTermConditionId
public void setTermConditionId(java.lang.Long anTcId)
- Set the id of term and condition.
- Parameters:
anTcId
- java.lang.Long
setTradingId
public void setTradingId(java.lang.Long newTradingId)
- Description copied from interface:
ParticipantAddCmd
- Set id of the trading agreement to which the participant will be added
- Specified by:
setTradingId
in interface ParticipantAddCmd
- Following copied from interface:
com.ibm.commerce.contract.commands.ParticipantAddCmd
- Parameters:
tradingId
- java.lang.Long
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 AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-