org.nuxeo.ecm.platform.computedgroups
Class UserManagerWithComputedGroups
java.lang.Object
org.nuxeo.ecm.platform.usermanager.UserManagerImpl
org.nuxeo.ecm.platform.computedgroups.UserManagerWithComputedGroups
- All Implemented Interfaces:
- java.io.Serializable, UserManager
public class UserManagerWithComputedGroups
- extends UserManagerImpl
UserManager
implementation that is aware of ComputedGroup
.
- Author:
- Thierry Delprat
- See Also:
- Serialized Form
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, USERCHANGED_EVENT_ID, USERCREATED_EVENT_ID, USERDELETED_EVENT_ID, USERMANAGER_TOPIC, USERMODIFIED_EVENT_ID, VIRTUAL_FIELD_FILTER_PREFIX |
Method Summary |
NuxeoGroup |
getGroup(java.lang.String groupName)
Returns the nuxeo group with given name or null if it does not exist. |
java.util.List<java.lang.String> |
getGroupIds()
Returns the list of all groups ids. |
DocumentModel |
getGroupModel(java.lang.String groupName)
Return the group document model with this id or null if group does not
exist. |
DocumentModelList |
searchGroups(java.util.Map<java.lang.String,java.io.Serializable> filter,
java.util.HashSet<java.lang.String> fulltext)
Returns groups matching given criteria. |
Methods inherited from class org.nuxeo.ecm.platform.usermanager.UserManagerImpl |
areGroupsReadOnly, areUsersReadOnly, checkUsernamePassword, createGroup, createGroup, createPrincipal, createUser, deleteGroup, deleteGroup, deleteGroup, deletePrincipal, deleteUser, deleteUser, getAdministratorsGroups, getAnonymousUserId, getAvailableGroups, getAvailablePrincipals, getBareGroupModel, getBareUserModel, getDefaultGroup, getGroupDirectoryName, getGroupIdField, getGroupListingMode, getGroupMembersField, getGroupParentGroupsField, getGroupSchemaName, getGroupsInGroup, getGroupSubGroupsField, getModelForUser, getPrincipal, getTopLevelGroups, getUserDirectoryName, getUserEmailField, getUserIdField, getUserIds, getUserListingMode, getUserModel, getUserPasswordPattern, getUserSchemaName, getUserSearchFields, getUsersInGroup, getUsersInGroupAndSubGroups, getUserSortField, searchByMap, searchGroups, searchPrincipals, searchUsers, searchUsers, setConfiguration, updateGroup, updateGroup, updatePrincipal, updateUser, validatePassword |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VIRTUAL_GROUP_MARKER
public static final java.lang.String VIRTUAL_GROUP_MARKER
- See Also:
- Constant Field Values
UserManagerWithComputedGroups
public UserManagerWithComputedGroups()
getGroup
public NuxeoGroup getGroup(java.lang.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 java.util.List<java.lang.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(java.lang.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(java.util.Map<java.lang.String,java.io.Serializable> filter,
java.util.HashSet<java.lang.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 keysfulltext
- field names used for fulltext match
- Throws:
ClientException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.