com.ibm.commerce.membergroup.commands
Class DeleteMemberGroupMemberCmdImpl

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

public class DeleteMemberGroupMemberCmdImpl
extends TaskCommandImpl
implements DeleteMemberGroupMemberCmd

This class implements the DeleteMemberGroupMemberCmd interface to provide the task command that removes a member from a member group.


Field Summary
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.DeleteMemberGroupMemberCmd
defaultCommandClassName, Name
 
Constructor Summary
DeleteMemberGroupMemberCmdImpl()
           
 
Method Summary
 boolean isReadyToCallExecute()
          Checks to see if the command is ready to call.
 void performExecute()
          Performs the execution of the command.
 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.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

_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

DeleteMemberGroupMemberCmdImpl

public DeleteMemberGroupMemberCmdImpl()
Method Detail

isReadyToCallExecute

public boolean isReadyToCallExecute()
Checks to see if the command is ready to call. This method will return false if either the member group ID or the member ID are 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.

setMemberGroupId

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

setMemberId

public void setMemberId(java.lang.Long memberId)
Description copied from interface: DeleteMemberGroupMemberCmd
Sets the member ID. This parameter is required.
Specified by:
setMemberId in interface DeleteMemberGroupMemberCmd
Following copied from interface: com.ibm.commerce.membergroup.commands.DeleteMemberGroupMemberCmd
Parameters:
memberId - The ID of the member.