com.ibm.commerce.membergroup.commands
Interface CountUsersInMemberGroupCmd

All Superinterfaces:
ECCommand, 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 Summary
static java.lang.String COPYRIGHT
          Copyright.
static java.lang.String defaultCommandClassName
          The name of the default implementation of this interface.
static java.lang.String Name
          The name of this interface.
 
Method Summary
 long getCount()
          Returns the number of users that belong to the specified member group.
 void setMemberGroupAccessBean(MemberGroupAccessBean memberGroupAccessBean)
          Sets the member group access bean.
 void setMemberGroupName(java.lang.String memberGroupName)
          Sets the member group name.
 void setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId)
          Sets the owner of the member group.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The name of the default implementation of this interface.

Name

public static final java.lang.String Name
The name of this interface.
Method Detail

getCount

public 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.

setMemberGroupAccessBean

public 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.

setMemberGroupName

public 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

public 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.