com.ibm.commerce.membergroup.commands

Class AddMemberGroupMembersCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AddMemberGroupMembersCmd, 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 AddMemberGroupMembersCmdImpl
    extends TaskCommandImpl
    implements AddMemberGroupMembersCmd
    This class implements the AddMemberGroupMembersCmd interface to provide the task command that adds a list of members to a member group. AccessBean used within the implementation:MemberGroupMemberAccessBean.
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • AddMemberGroupMembersCmdImpl

        public AddMemberGroupMembersCmdImpl()
    • Method Detail

      • enableContentManagement

        public void enableContentManagement(boolean enabled)
        Indicates whether Content Management flow should be used for the command
        Specified by:
        enableContentManagement in interface AddMemberGroupMembersCmd
        Parameters:
        enabled - true will use the Content Management flow
      • setMemberGroupId

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

        public void setMemberIds(java.lang.Long[] memberIds)
        Sets the member IDs.
        Specified by:
        setMemberIds in interface AddMemberGroupMembersCmd
        Parameters:
        memberIds - the IDs of the members to be added.
      • setExclude

        public void setExclude(java.lang.String exclude)
        Sets the exclude flag.
        Specified by:
        setExclude in interface AddMemberGroupMembersCmd
        Parameters:
        exclude - exclude flag of the members
      • setField1

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

        public void setField1s(java.lang.String[] field1s)
        Sets the custom array of field 1 values.
        Specified by:
        setField1s in interface AddMemberGroupMembersCmd
        Parameters:
        field1s - custom array of field 1 values. If field1s is not found code uses setField1 for all the members
      • setCustomerId

        public void setCustomerId(java.lang.String customerId)
        Sets the customer ID.
        Specified by:
        setCustomerId in interface AddMemberGroupMembersCmd
        Parameters:
        customerId - the customer Id of mbrgrpmbr table.
      • setCustomerIds

        public void setCustomerIds(java.lang.String[] customerIds)
        Sets the custom array of customer ID values.
        Specified by:
        setCustomerIds in interface AddMemberGroupMembersCmd
        Parameters:
        customerIds - custom array of customer Ids values. If customerIds is not found code uses setCustomerId for all the members
      • getMemberGroupId

        public java.lang.Long getMemberGroupId()
        Gets the ID of this member group.
        Specified by:
        getMemberGroupId in interface AddMemberGroupMembersCmd
        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 any of the member group ID, the member id or the exclude value 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