Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.computedgroups
Class UserManagerWithComputedGroups

java.lang.Object
  extended by org.nuxeo.ecm.platform.usermanager.UserManagerImpl
      extended by org.nuxeo.ecm.platform.computedgroups.UserManagerWithComputedGroups
All Implemented Interfaces:
Serializable, MultiTenantUserManager, UserManager, Authenticator

public class UserManagerWithComputedGroups
extends UserManagerImpl

UserManager implementation that is aware of ComputedGroup.

Author:
Thierry Delprat
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuxeo.ecm.platform.usermanager.UserManager
UserManager.MatchType
 
Field Summary
static String VIRTUAL_GROUP_MARKER
           
 
Fields inherited from class org.nuxeo.ecm.platform.usermanager.UserManagerImpl
DEFAULT_ANONYMOUS_USER_ID, GROUPCHANGED_EVENT_ID, GROUPCREATED_EVENT_ID, GROUPDELETED_EVENT_ID, GROUPMODIFIED_EVENT_ID, multiTenantManagement, USERCHANGED_EVENT_ID, USERCREATED_EVENT_ID, USERDELETED_EVENT_ID, USERMANAGER_TOPIC, USERMODIFIED_EVENT_ID, VIRTUAL_FIELD_FILTER_PREFIX
 
Constructor Summary
UserManagerWithComputedGroups()
           
 
Method Summary
 NuxeoGroup getGroup(String groupName)
          Returns the nuxeo group with given name or null if it does not exist.
 List<String> getGroupIds()
          Returns the list of all groups ids.
 DocumentModel getGroupModel(String groupName)
          Return the group document model with this id or null if group does not exist.
 DocumentModelList searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
          Returns groups matching given criteria.
 
Methods inherited from class org.nuxeo.ecm.platform.usermanager.UserManagerImpl
areGroupsReadOnly, areUsersReadOnly, authenticate, checkUsernamePassword, createGroup, createGroup, createGroup, createPrincipal, createUser, createUser, deleteGroup, deleteGroup, deleteGroup, deleteGroup, deleteGroup, deletePrincipal, deleteUser, deleteUser, deleteUser, deleteUser, encodeDigestAuthPassword, getAdministratorsGroups, getAnonymousUserId, getAvailableGroups, getAvailablePrincipals, getBareGroupModel, getBareUserModel, getDefaultGroup, getDigestAuthDirectory, getDigestAuthRealm, getGroupDirectoryName, getGroupIdField, getGroupIds, getGroupLabelField, getGroupListingMode, getGroupMembersField, getGroupModel, getGroupParentGroupsField, getGroupSchemaName, getGroupSearchFields, getGroupsInGroup, getGroupsInGroup, getGroupSubGroupsField, getModelForUser, getPrincipal, getPrincipal, getTopLevelGroups, getTopLevelGroups, getUserDirectoryName, getUserEmailField, getUserIdField, getUserIds, getUserIds, getUserListingMode, getUserModel, getUserModel, getUserPasswordPattern, getUserSchemaName, getUserSearchFields, getUsersForPermission, getUsersForPermission, getUsersInGroup, getUsersInGroup, getUsersInGroupAndSubGroups, getUsersInGroupAndSubGroups, getUserSortField, searchByMap, searchGroups, searchGroups, searchGroups, searchPrincipals, searchUsers, searchUsers, searchUsers, searchUsers, searchUsers, setConfiguration, updateGroup, updateGroup, updateGroup, updatePrincipal, updateUser, updateUser, validatePassword
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIRTUAL_GROUP_MARKER

public static final String VIRTUAL_GROUP_MARKER
See Also:
Constant Field Values
Constructor Detail

UserManagerWithComputedGroups

public UserManagerWithComputedGroups()
Method Detail

getGroup

public NuxeoGroup getGroup(String groupName)
                    throws ClientException
Description copied from interface: UserManager
Returns the nuxeo group with given name or null if it does not exist.

Specified by:
getGroup in interface UserManager
Overrides:
getGroup in class UserManagerImpl
Throws:
ClientException

getGroupIds

public List<String> getGroupIds()
                         throws ClientException
Description copied from interface: UserManager
Returns the list of all groups ids.

Specified by:
getGroupIds in interface UserManager
Overrides:
getGroupIds in class UserManagerImpl
Throws:
ClientException

getGroupModel

public DocumentModel getGroupModel(String groupName)
                            throws ClientException
Description copied from interface: UserManager
Return the group document model with this id or null if group does not exist.

Specified by:
getGroupModel in interface UserManager
Overrides:
getGroupModel in class UserManagerImpl
Parameters:
groupName - the group identifier
Throws:
ClientException

searchGroups

public DocumentModelList searchGroups(Map<String,Serializable> filter,
                                      Set<String> fulltext)
                               throws ClientException
Description copied from interface: UserManager
Returns groups matching given criteria.

Specified by:
searchGroups in interface UserManager
Overrides:
searchGroups in class UserManagerImpl
Parameters:
filter - filter with field names as keys
fulltext - field names used for fulltext match
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.