com.ibm.commerce.membergroup.commands
Interface AddMemberGroupMemberCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
AddMemberGroupMemberCmdImpl

public interface AddMemberGroupMemberCmd
extends TaskCommand

This interface must be implemented to provide a task command that adds a member to a member group. Different implementations of this interface can be provided for different stores.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
static java.lang.String defaultCommandClassName
          The name of the default implementation of this interface.
static java.lang.String Name
          The name of this interface.
 
Method Summary
 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 userId)
          Sets the member id of the member that is to be added to the specified member group.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The name of the default implementation of this interface.

Name

public static final java.lang.String Name
The name of this interface.
Method Detail

setCustomerId

public void setCustomerId(java.lang.String customerId)
Sets the customer id value for the member group/member relationship. This parameter is optional. It is available for customization.
Parameters:
customerId - The value for customer id.

setExclude

public void setExclude(java.lang.String exclude)
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.
Parameters:
memberId - The id of the member.

setField1

public void setField1(java.lang.String field1)
Sets field 1 for the member group/member relationship. This parameter is optional. It is available for customization.
Parameters:
field1 - The value for field 1.

setMemberGroupId

public void setMemberGroupId(java.lang.Long memberGroupId)
Sets the member group id. This parameter is required.
Parameters:
memberGroupId - The id of the member group.

setMemberId

public void setMemberId(java.lang.Long userId)
Sets the member id of the member that is to be added to the specified member group. This parameter is required.
Parameters:
memberId - The id of the member.