com.ibm.commerce.membergroup.commands

Class CountUsersInMemberGroupCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CountUsersInMemberGroupCmd, SegmentConstants, 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 CountUsersInMemberGroupCmdImpl
    extends TaskCommandImpl
    implements CountUsersInMemberGroupCmd, SegmentConstants
    The CountUsersInMemberGroupCmdImpl class implements the CountUsersInMemberGroupCmd interface to provide the task command that counts the number of users that belong to a specified member group. AccessBean used within the implementation:MemberGroupAccessBean, UserAccessBean.
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • CountUsersInMemberGroupCmdImpl

        public CountUsersInMemberGroupCmdImpl()
    • Method Detail

      • setMemberGroupName

        public void setMemberGroupName(java.lang.String memberGroupName)
        Sets the member group name.
        Specified by:
        setMemberGroupName in interface CountUsersInMemberGroupCmd
        Parameters:
        memberGroupName - Member group name.
      • setMemberGroupOwnerId

        public void setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId)
        Sets the member group owner ID.
        Specified by:
        setMemberGroupOwnerId in interface CountUsersInMemberGroupCmd
        Parameters:
        memberGroupOwnerId - Member group owner ID.
      • getCount

        public long getCount()
        Gets the number of user in the member group.
        Specified by:
        getCount in interface CountUsersInMemberGroupCmd
        Returns:
        The number of user in the member group.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Checks to see if the command is ready to call. This method will return false if both the member group name and the member group access bean are 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.