Class CountUsersInMemberGroupCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CountUsersInMemberGroupCmd, SegmentConstants,,,,,,

    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
        memberGroupName - Member group name.
      • setMemberGroupOwnerId

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

        public long getCount()
        Gets the number of user in the member group.
        Specified by:
        getCount in interface CountUsersInMemberGroupCmd
        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
        isReadyToCallExecute in class AbstractECTargetableCommand
        true if the command is ready to go.