com.ibm.commerce.membergroup.commands
Class AddMemberGroupMemberCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmdImpl
All Implemented Interfaces:
AddMemberGroupMemberCmd, ECCommand, ECTargetableCommand, 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. AccessBean used within the implementation:MemberGroupMemberAccessBean.

See Also:
Serialized Form

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.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.membergroup.commands.AddMemberGroupMemberCmd
defaultCommandClassName, Name
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
AddMemberGroupMemberCmdImpl()
Method Summary
java.lang.String getMemberId()
Gets the ID of this member.
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 setMemberId(java.lang.Long memberId)
Sets the member ID.
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

COPYRIGHT

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

_memberGroupId

protected java.lang.Long _memberGroupId
Member group ID.

_memberId

protected java.lang.Long _memberId
Member ID.

_exclude

protected java.lang.String _exclude
Exclude flag.

_field1

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

_customerId

protected java.lang.String _customerId
Customer ID.
Constructor Detail

AddMemberGroupMemberCmdImpl

public AddMemberGroupMemberCmdImpl()
Method Detail

getMemberId

public java.lang.String getMemberId()
Gets the ID of this member.
Specified by:
getMemberId in interface AddMemberGroupMemberCmd
Returns:
ID of this member.

setMemberGroupId

public void setMemberGroupId(java.lang.Long memberGroupId)
Sets the member group ID.
Specified by:
setMemberGroupId in interface AddMemberGroupMemberCmd
Parameters:
memberGroupId - Member group ID.

setMemberId

public void setMemberId(java.lang.Long memberId)
Sets the member ID.
Specified by:
setMemberId in interface AddMemberGroupMemberCmd
Parameters:
memberId - Member ID.

setExclude

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

setField1

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

setCustomerId

public void setCustomerId(java.lang.String customerId)
Sets the customer ID.
Specified by:
setCustomerId in interface AddMemberGroupMemberCmd
Parameters:
customerId - Customer ID.

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

Feedback