com.ibm.commerce.membergroup.commands
Class DeleteMemberGroupCmdImpl

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

public class DeleteMemberGroupCmdImpl
extends TaskCommandImpl
implements DeleteMemberGroupCmd

This class implements the DeleteMemberGroupCmd interface to provide the task command that deletes a member group. AccessBean used within the implementation:MemberAccessBean.

See Also:
Serialized Form

Field Summary
protected  java.lang.Long _memberGroupId
          Member group 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. DeleteMemberGroupCmd
defaultCommandClassName, Name
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
DeleteMemberGroupCmdImpl()
           
 
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 setMemberGroupId(java.lang.Long memberGroupId)
          Sets the member group 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
public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values

_memberGroupId

protected java.lang.Long _memberGroupId
Member group ID.
Constructor Detail

DeleteMemberGroupCmdImpl

public DeleteMemberGroupCmdImpl()
Method Detail

setMemberGroupId

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

getMemberGroupId

public java.lang.Long getMemberGroupId()
Gets the ID of this member group.
Specified by:
getMemberGroupId in interface DeleteMemberGroupCmd
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 the member group ID 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
ECException