com.ibm.commerce.membergroup.commands
Class AddMemberGroupMembersCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.membergroup.commands.AddMemberGroupMembersCmdImpl
All Implemented Interfaces:
AddMemberGroupMembersCmd, ECCommand, ECTargetableCommand, TaskCommand

public class AddMemberGroupMembersCmdImpl
extends TaskCommandImpl
implements AddMemberGroupMembersCmd

This class implements the AddMemberGroupMembersCmd interface to provide the task command that adds a list of members to a member group. AccessBean used within the implementation:MemberGroupMemberAccessBean.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.membergroup.commands. AddMemberGroupMembersCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
AddMemberGroupMembersCmdImpl()
           
 
Method Summary
 java.lang.Long getMemberGroupId()
          Gets the ID of this member group.
 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.
 void setExclude(java.lang.String exclude)
          Sets the exclude flag.
 void setField1(java.lang.String field1)
          Sets the custom field 1 value.
 void setMemberGroupId(java.lang.Long memberGroupId)
          Sets the member group ID.
 void setMemberIds(java.lang.Long[] memberIds)
          Sets the member IDs.
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values
Constructor Detail

AddMemberGroupMembersCmdImpl

public AddMemberGroupMembersCmdImpl()
Method Detail

setMemberGroupId

public void setMemberGroupId(java.lang.Long memberGroupId)
Sets the member group ID.
Specified by:
setMemberGroupId in interface AddMemberGroupMembersCmd
Parameters:
memberGroupId - the Id of the membergroup.

setMemberIds

public void setMemberIds(java.lang.Long[] memberIds)
Sets the member IDs.
Specified by:
setMemberIds in interface AddMemberGroupMembersCmd
Parameters:
memberIds - the IDs of the members to be added.

setExclude

public void setExclude(java.lang.String exclude)
Sets the exclude flag.
Specified by:
setExclude in interface AddMemberGroupMembersCmd
Parameters:
exclude - exclude flag of the members

setField1

public void setField1(java.lang.String field1)
Sets the custom field 1 value.
Specified by:
setField1 in interface AddMemberGroupMembersCmd
Parameters:
field1 - custom field 1

setCustomerId

public void setCustomerId(java.lang.String customerId)
Sets the customer ID.
Specified by:
setCustomerId in interface AddMemberGroupMembersCmd
Parameters:
customerId - the customer Id of mbrgrpmbr table.

getMemberGroupId

public java.lang.Long getMemberGroupId()
Gets the ID of this member group.
Specified by:
getMemberGroupId in interface AddMemberGroupMembersCmd
Returns:
ID of this member group.

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 AbstractECTargetableCommand
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 AbstractECTargetableCommand
Throws:
ECException - Thrown when the AddMemberGroupMembersCmd implementation can not execute successfully.