| com.sun.portal.community.mc.CMCNodeManager
All known Subclasses: com.sun.portal.community.mc.impl.manager.CMCNodeManagerImpl, com.sun.portal.community.mc.impl.am.frole.CMCNodeManagerImpl, com.sun.portal.community.mc.impl.am.org.CMCNodeManagerImpl, com.sun.portal.community.mc.impl.jdo.CMCNodeManagerImpl, com.sun.portal.community.mc.impl.am.global.CMCNodeManagerImpl, com.sun.portal.community.mc.impl.am.CMCNodeManagerImplBase, com.sun.portal.community.mc.test.impl.file.stat.CMCNodeManagerImpl, com.sun.portal.community.mc.impl.am.role.CMCNodeManagerImpl, com.sun.portal.community.mc.test.impl.file.dynamic.CMCNodeManagerImpl,
CMCNodeManager | public interface CMCNodeManager (Code) | | Provides access to operations that target >1 communities, and are not
specific to any user.
Clients obtain instances of CMCNodeManager objects
through a CommunityFactory object.
|
Method Summary | |
public Map | getRoleUserCounts(Set communityPrincipals, Set rolePrincipals) Get the count of users in communities targeted by the given set of
CMCPrincipal objects, for the given roles targeted by the
set of CMCRolePrincipal objects.
Parameters: communityPrincipals - the Set of CMCPrincipal objects to count users on. Parameters: rolePrincipals - the Set of CMCRolePrinicpal objects to count users on. throws: com.sun.portal.community.mc.CMCException - if there is a problem getting the user counts. | public Map | getUserCounts(Set communityPrincipals) Get the count of users in communities targeted by the given set of
CMCPrincipal objects.
Parameters: communityPrincipals - the Set of CMCPrincipal objects to count users on. throws: com.sun.portal.community.mc.CMCException - if there is a problem getting the user counts. | public void | init(Properties p) Initialize this CMCNodeManager object. | public Set | match(Pattern p, boolean nameOnly) Get the set of matching community principals. |
getRoleUserCounts | public Map getRoleUserCounts(Set communityPrincipals, Set rolePrincipals) throws CMCException(Code) | | Get the count of users in communities targeted by the given set of
CMCPrincipal objects, for the given roles targeted by the
set of CMCRolePrincipal objects.
Parameters: communityPrincipals - the Set of CMCPrincipal objects to count users on. Parameters: rolePrincipals - the Set of CMCRolePrinicpal objects to count users on. throws: com.sun.portal.community.mc.CMCException - if there is a problem getting the user counts. a Map , where the key is a ConfigTable.ConfigKey object, and the value is anInteger object indicating the number of unique users for the community-role pair targeted by the ConfigTable.ConfigKey object. |
getUserCounts | public Map getUserCounts(Set communityPrincipals) throws CMCException(Code) | | Get the count of users in communities targeted by the given set of
CMCPrincipal objects.
Parameters: communityPrincipals - the Set of CMCPrincipal objects to count users on. throws: com.sun.portal.community.mc.CMCException - if there is a problem getting the user counts. a Map , where the key is a CMCPrincipal object, and the value is anInteger object indicating the number of unique users in this community,across all roles. |
init | public void init(Properties p) throws CMCException(Code) | | Initialize this CMCNodeManager object.
This method should not be called by clients.
The CMCFactory object
calls this method before returning CMCNodeManager object instances.
Parameters: p - a Properties object, used to initialize the CMCNodeManager object. throws: com.sun.portal.community.mc.CMCException - if there is a problem initializing this object. |
match | public Set match(Pattern p, boolean nameOnly) throws CMCException(Code) | | Get the set of matching community principals.
A match occurs when either the community name or description matches the
given pattern.
Parameters: p - a Pattern object, the pattern to match. Parameters: nameOnly - boolean flag indicating whether to match community name only or not throws: com.sun.portal.community.mc.CMCException - if a problem occurs a Set of CMCPrincipal objects, the matchingcommunity principals. |
|
|