public class ParticipantAddCmdImpl extends ControllerCommandImpl implements ParticipantAddCmd
Name | Description |
---|---|
Info | A string of information for the participant. Mandatory. |
MemberId | The member ID of the participant. Mandatory. |
RequestProperties | The request properties. MemberId and role are required parameters. optional parameters are info, id, tcId. In the case to add a participant to an account/contract, the account/contract ID has to be provided through the parameter id. In the case to add participant to a term and condition of a contract. The ID of the term and condition has to be provided through the parameter tcId. If the parameters are set by setter methods, the request properties is optional. |
Role | The type of the participant role. Mandatory. |
TcId | The term condition ID. Mandatory. |
TradingId | The trading agreement ID. Optional. |
Name | Description |
---|---|
Resources | The access vector accessed by this command.The default implementation returns the AccountAccessBean for adding participant to an account and ContractAccessBean for contract. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ParticipantAddCmdImpl()
Constructor for ParticipantAddCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setInfo(java.lang.String info)
Sets information of the participant
|
void | setMemberId(java.lang.Long memberId)
Sets member ID of the participant.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void | setRole(java.lang.String role)
Sets the role type of the participant.
|
void | setTcId(java.lang.Long tcId)
Sets ID of the term and condition to which the participant will be added
|
void | setTermConditionId(java.lang.Long tcId)
Deprecated.
Replaced by setTcId(Long).
|
void | setTradingId(java.lang.Long tradingId)
Sets ID of the trading agreement to which the participant will be added
|
void | validateParameters()
Checks the input parameters.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public ParticipantAddCmdImpl()
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
public void setInfo(java.lang.String info)
public void setMemberId(java.lang.Long memberId)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setRole(java.lang.String role)
public void setTcId(java.lang.Long tcId)
public void setTermConditionId(java.lang.Long tcId)
public void setTradingId(java.lang.Long tradingId)
public void validateParameters() throws ECException