com.ibm.commerce.membergroup.commands

Interface CountUsersInMemberGroupCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    CountUsersInMemberGroupCmdImpl


    public interface CountUsersInMemberGroupCmd
    extends TaskCommand
    This interface must be implemented to provide a task command that counts the number of users that belong to a specified member group. Different implementations of this interface can be provided for different stores.
    • Field Detail

      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The name of the default implementation of this interface.
        See Also:
        Constant Field Values
    • Method Detail

      • setMemberGroupName

        void setMemberGroupName(java.lang.String memberGroupName)
        Sets the member group name. This parameter is required unless the member group access bean parameter is set.
        Parameters:
        memberGroupName - The name of the member group.
      • setMemberGroupOwnerId

        void setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId)
        Sets the owner of the member group. If this parameter is not specified then owner of the current store will be used.
        Parameters:
        memberGroupOwnerId - The member id of the owner of the member group.
      • setMemberGroupAccessBean

        void setMemberGroupAccessBean(MemberGroupAccessBean memberGroupAccessBean)
        Sets the member group access bean. This parameter is required unless the member group name is specified. If you specify this parameter, then the conditions used to evaluate the implicit inclusion of users in a member group will be taken from the access bean.
        Parameters:
        memberGroupAccessBean - The member group access bean.
      • getCount

        long getCount()
        Returns the number of users that belong to the specified member group. You must execute this task command before accessing this value.
        Returns:
        The number of users in the member group.