com.ibm.commerce.membergroup.commands

Class DuplicateMemberGroupCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, DuplicateMemberGroupCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    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 Detail

    • Constructor Detail

      • DuplicateMemberGroupCmdImpl

        public DuplicateMemberGroupCmdImpl()
    • Method Detail

      • enableContentManagement

        public void enableContentManagement(boolean enabled)
        Indicates whether Content Management flow should be used for the command
        Specified by:
        enableContentManagement in interface DuplicateMemberGroupCmd
        Parameters:
        enabled - true will use the Content Management flow
      • 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.
      • 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.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        true if the command is ready to go
      • setMemberGroupDisplayName

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