com.ibm.commerce.membergroup.commands
Class DuplicateMemberGroupCmdImpl

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

public class DuplicateMemberGroupCmdImpl
extends TaskCommandImpl
implements DuplicateMemberGroupCmd

This class implements the DuplicateMemberGroupCmd interface to provide the task command that duplicate a member group. AccessBean used within the implementation:MemberGroupMemberAccessBean,MemberGroupAccessBean, RecognizedMemberGroupAccessBean,MemberGroupUsageAccessBean.

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. DuplicateMemberGroupCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
DuplicateMemberGroupCmdImpl()
           
 
Method Summary
 java.lang.Long getMemberGroupId()
          get the member group Id.
 java.lang.Long getOrigMemberGroupId()
          get the member group Id to be duplicated.
 boolean isReadyToCallExecute()
          Checks to see if the command is ready to call.
 void performExecute()
          Performs the execution of the command.
 void setMbrGrpDescription(java.lang.String description)
          set the member group description.
 void setMbrGrpName(java.lang.String name)
          set the member group name.
 void setMemberGroupDisplayName(java.lang.String _newMemberGroupDisplayName)
          Sets the _newMemberGroupDisplayName.
 void setMemberGroupId(java.lang.Long memberGroupId)
          set 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
Constructor Detail

DuplicateMemberGroupCmdImpl

public DuplicateMemberGroupCmdImpl()
Method Detail

setMemberGroupId

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

setMbrGrpName

public void setMbrGrpName(java.lang.String name)
set the member group name.
Specified by:
setMbrGrpName in interface DuplicateMemberGroupCmd
Parameters:
name - the name of the membergroup.

setMbrGrpDescription

public void setMbrGrpDescription(java.lang.String description)
set the member group description.
Specified by:
setMbrGrpDescription in interface DuplicateMemberGroupCmd
Parameters:
description - the description of the membergroup.

getOrigMemberGroupId

public java.lang.Long getOrigMemberGroupId()
get the member group Id to be duplicated.
Specified by:
getOrigMemberGroupId in interface DuplicateMemberGroupCmd
Returns:
the Id of the membergroup to be duplicated.

getMemberGroupId

public java.lang.Long getMemberGroupId()
get the member group Id.
Specified by:
getMemberGroupId in interface DuplicateMemberGroupCmd
Returns:
the Id of the membergroup.

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

setMemberGroupDisplayName

public void setMemberGroupDisplayName(java.lang.String _newMemberGroupDisplayName)
Sets the _newMemberGroupDisplayName.
Parameters:
_newMemberGroupDisplayName - The _newMemberGroupDisplayName to set