public class UserManagerWithComputedGroups extends UserManagerImpl
UserManager
implementation that is aware of ComputedGroup
.UserManager.MatchType
Modifier and Type | Field and Description |
---|---|
protected static ComputedGroupsService |
cgs |
protected static Boolean |
useComputedGroup |
static String |
VIRTUAL_GROUP_MARKER |
administratorGroups, administratorIds, anonymousUser, cacheService, DEFAULT_ANONYMOUS_USER_ID, defaultGroup, digestAuthDirectory, digestAuthRealm, dirService, disableDefaultAdministratorsGroup, GROUPCHANGED_EVENT_ID, GROUPCREATED_EVENT_ID, GROUPDELETED_EVENT_ID, groupDirectoryName, groupIdField, groupLabelField, groupListingMode, groupMembersField, GROUPMODIFIED_EVENT_ID, groupParentGroupsField, groupSchemaName, groupSearchFields, groupSortField, groupSubGroupsField, INVALIDATE_ALL_PRINCIPALS_EVENT_ID, INVALIDATE_PRINCIPAL_EVENT_ID, multiTenantManagement, principalCache, USERCHANGED_EVENT_ID, userConfig, USERCREATED_EVENT_ID, USERDELETED_EVENT_ID, userDirectoryName, userEmailField, userIdField, userListingMode, USERMANAGER_TOPIC, USERMODIFIED_EVENT_ID, userPasswordPattern, userSchemaName, userSearchFields, userSortField, VIRTUAL_FIELD_FILTER_PREFIX, virtualUsers
Constructor and Description |
---|
UserManagerWithComputedGroups() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
activateComputedGroup() |
protected DocumentModel |
getComputedGroupAsDocumentModel(String grpName) |
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.
|
protected ComputedGroupsService |
getService() |
protected NuxeoPrincipal |
makePrincipal(DocumentModel userEntry,
boolean anonymous,
List<String> groups) |
DocumentModelList |
searchGroups(Map<String,Serializable> filter,
Set<String> fulltext)
Returns groups matching given criteria.
|
DocumentModelList |
searchGroups(Map<String,Serializable> filter,
Set<String> fulltext,
DocumentModel context)
Returns groups matching given criteria with the given context.
|
aboutToHandleEvent, appendSubgroups, areGroupsReadOnly, areUsersReadOnly, authenticate, checkGrouId, checkUserId, checkUsernamePassword, cloneMap, cloneSet, 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, getDigestAuthModel, getDigestAuthRealm, getDirectorySortMap, getGroup, getGroupDirectoryName, getGroupId, getGroupIdField, getGroupIds, getGroupLabelField, getGroupListingMode, getGroupMembersField, getGroupModel, getGroupParentGroupsField, getGroupSchemaName, getGroupSearchFields, getGroupsInGroup, getGroupsInGroup, getGroupSortMap, getGroupSubGroupsField, getLeafPermissions, getModelForUser, getPrincipal, getPrincipal, getTopLevelGroups, getTopLevelGroups, getUserDirectoryName, getUserEmailField, getUserId, getUserIdField, getUserIds, getUserIds, getUserListingMode, getUserModel, getUserModel, getUserPasswordPattern, getUserSchemaName, getUserSearchFields, getUsersForPermission, getUsersForPermission, getUsersInGroup, getUsersInGroup, getUsersInGroupAndSubGroups, getUsersInGroupAndSubGroups, getUserSortField, getUserSortMap, handleEvent, invalidateAllPrincipals, invalidatePrincipal, isAnonymousMatching, makeAnonymousPrincipal, makeGroup, makePrincipal, makePrincipal, makeTransientPrincipal, makeVirtualPrincipal, makeVirtualUserEntry, notify, notifyGroupChanged, notifyUserChanged, removeVirtualFilters, searchByMap, searchGroups, searchGroups, searchPrincipals, searchUsers, searchUsers, searchUsers, searchUsers, searchUsers, setConfiguration, setGroupDirectoryName, setUserDirectoryName, setVirtualUsers, syncDigestAuthPassword, updateGroup, updateGroup, updateGroup, updatePrincipal, updateUser, updateUser, useCache, validatePassword
protected static ComputedGroupsService cgs
protected static Boolean useComputedGroup
public static final String VIRTUAL_GROUP_MARKER
public UserManagerWithComputedGroups()
protected ComputedGroupsService getService()
protected boolean activateComputedGroup()
protected NuxeoPrincipal makePrincipal(DocumentModel userEntry, boolean anonymous, List<String> groups)
makePrincipal
in class UserManagerImpl
public NuxeoGroup getGroup(String groupName)
UserManager
getGroup
in interface UserManager
getGroup
in class UserManagerImpl
public List<String> getGroupIds()
UserManager
getGroupIds
in interface UserManager
getGroupIds
in class UserManagerImpl
public DocumentModel getGroupModel(String groupName)
UserManager
getGroupModel
in interface UserManager
getGroupModel
in class UserManagerImpl
groupName
- the group identifierpublic DocumentModelList searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
UserManager
searchGroups
in interface UserManager
searchGroups
in class UserManagerImpl
filter
- filter with field names as keysfulltext
- field names used for fulltext matchpublic DocumentModelList searchGroups(Map<String,Serializable> filter, Set<String> fulltext, DocumentModel context)
MultiTenantUserManager
searchGroups
in interface MultiTenantUserManager
searchGroups
in class UserManagerImpl
filter
- filter with field names as keysfulltext
- field names used for fulltext matchprotected DocumentModel getComputedGroupAsDocumentModel(String grpName)
Copyright © 2016 Nuxeo SA. All rights reserved.