com.ibm.commerce.membergroup.commands
Class AddMemberGroupMemberCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmdImpl
All Implemented Interfaces:
AddMemberGroupMemberCmd, ECCommand, TaskCommand

public class AddMemberGroupMemberCmdImpl
extends TaskCommandImpl
implements AddMemberGroupMemberCmd

This class implements the AddMemberGroupMemberCmd interface to provide the task command that adds a member to a member group.


Field Summary
protected  java.lang.String _customerId
          Customer ID.
protected  java.lang.String _exclude
          Exclude flag.
protected  java.lang.String _field1
          Custom field 1 value.
protected  java.lang.Long _memberGroupId
          Member group ID.
protected  java.lang.Long _memberId
          Member ID.
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmd
defaultCommandClassName, Name
 
Constructor Summary
AddMemberGroupMemberCmdImpl()
           
 
Method Summary
 boolean isReadyToCallExecute()
          Checks to see if the command is ready to call.
 void performExecute()
          Performs the execution of the command.
 void setCustomerId(java.lang.String customerId)
          Sets the customer id value for the member group/member relationship.
 void setExclude(java.lang.String exclude)
          Sets the exclude value.
 void setField1(java.lang.String field1)
          Sets field 1 for the member group/member relationship.
 void setMemberGroupId(java.lang.Long memberGroupId)
          Sets the member group id.
 void setMemberId(java.lang.Long memberId)
          Sets the member id of the member that is to be added to the specified member group.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

_customerId

protected java.lang.String _customerId
Customer ID.

_exclude

protected java.lang.String _exclude
Exclude flag.

_field1

protected java.lang.String _field1
Custom field 1 value.

_memberGroupId

protected java.lang.Long _memberGroupId
Member group ID.

_memberId

protected java.lang.Long _memberId
Member ID.

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
Constructor Detail

AddMemberGroupMemberCmdImpl

public AddMemberGroupMemberCmdImpl()
Method Detail

isReadyToCallExecute

public boolean isReadyToCallExecute()
Checks to see if the command is ready to call. This method will return false if any of the member group id, the member id or the exclude value is null.
Overrides:
isReadyToCallExecute in class AbstractECCommand
Returns:
true if the command is ready to go

performExecute

public void performExecute()
                    throws ECException
Performs the execution of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setCustomerId

public void setCustomerId(java.lang.String customerId)
Description copied from interface: AddMemberGroupMemberCmd
Sets the customer id value for the member group/member relationship. This parameter is optional. It is available for customization.
Specified by:
setCustomerId in interface AddMemberGroupMemberCmd
Following copied from interface: com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmd
Parameters:
customerId - The value for customer id.

setExclude

public void setExclude(java.lang.String exclude)
Description copied from interface: AddMemberGroupMemberCmd
Sets the exclude value. If the specifiec member should be explicitly excluded from the member group, specify "0", otherwise specify "1". This parameter is required.
Specified by:
setExclude in interface AddMemberGroupMemberCmd
Following copied from interface: com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmd
Parameters:
memberId - The id of the member.

setField1

public void setField1(java.lang.String field1)
Description copied from interface: AddMemberGroupMemberCmd
Sets field 1 for the member group/member relationship. This parameter is optional. It is available for customization.
Specified by:
setField1 in interface AddMemberGroupMemberCmd
Following copied from interface: com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmd
Parameters:
field1 - The value for field 1.

setMemberGroupId

public void setMemberGroupId(java.lang.Long memberGroupId)
Description copied from interface: AddMemberGroupMemberCmd
Sets the member group id. This parameter is required.
Specified by:
setMemberGroupId in interface AddMemberGroupMemberCmd
Following copied from interface: com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmd
Parameters:
memberGroupId - The id of the member group.

setMemberId

public void setMemberId(java.lang.Long memberId)
Description copied from interface: AddMemberGroupMemberCmd
Sets the member id of the member that is to be added to the specified member group. This parameter is required.
Specified by:
setMemberId in interface AddMemberGroupMemberCmd
Following copied from interface: com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmd
Parameters:
memberId - The id of the member.