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, ANCESTOR_GROUPS_PROPERTY_KEY, anonymousUser, cacheService, DEFAULT_ANONYMOUS_USER_ID, defaultGroup, digestAuthDirectory, digestAuthRealm, dirService, disableDefaultAdministratorsGroup, GROUPCHANGED_EVENT_ID, groupConfig, GROUPCREATED_EVENT_ID, GROUPDELETED_EVENT_ID, groupDirectoryName, groupIdField, groupLabelField, groupListingMode, groupMembersField, GROUPMODIFIED_EVENT_ID, groupParentGroupsField, groupSchemaName, groupSearchFields, groupSortField, groupSubGroupsField, ID_PROPERTY_KEY, INVALIDATE_ALL_PRINCIPALS_EVENT_ID, INVALIDATE_PRINCIPAL_EVENT_ID, multiTenantManagement, principalCache, USER_GROUP_CATEGORY, 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() |
DocumentModel |
createGroup(DocumentModel groupModel,
DocumentModel context)
Creates a group from given model with the given context.
|
void |
deleteGroup(String groupId,
DocumentModel context)
Deletes group with given id with the given context.
|
protected DocumentModel |
getComputedGroupAsDocumentModel(String grpName) |
NuxeoGroup |
getGroup(String groupName)
Returns the nuxeo group with given name or null if it does not exist.
|
NuxeoGroup |
getGroup(String groupName,
DocumentModel context) |
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.
|
void |
updateGroup(DocumentModel groupModel,
DocumentModel context)
Updates group represented by given model with the given context.
|
appendSubgroups, areGroupsReadOnly, areUsersReadOnly, authenticate, checkGrouId, checkPasswordValidity, checkUserId, checkUsernamePassword, cloneMap, cloneSet, createGroup, createUser, createUser, deleteGroup, deleteGroup, deleteGroup, deleteUser, deleteUser, deleteUser, deleteUser, encodeDigestAuthPassword, getAdministratorsGroups, getAncestorGroups, getAnonymousUserId, getBareGroupModel, getBareUserModel, getDefaultGroup, getDigestAuthDirectory, getDigestAuthModel, getDigestAuthRealm, getDirectorySortMap, getGroupConfig, getGroupDirectoryName, getGroupId, getGroupIdField, getGroupIds, getGroupLabelField, getGroupListingMode, getGroupMembersField, getGroupModel, getGroupParentGroupsField, getGroupSchemaName, getGroupSearchFields, getGroupsInGroup, getGroupsInGroup, getGroupSortMap, getGroupSubGroupsField, getLeafPermissions, getPrincipal, getPrincipal, getPrincipalUsingCache, 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, notifyCore, notifyCore, notifyGroupChanged, notifyRuntime, notifyUserChanged, populateAncestorGroups, removeVirtualFilters, searchGroups, searchGroups, searchPrincipals, searchUsers, searchUsers, searchUsers, searchUsers, searchUsers, setConfiguration, setGroupDirectoryName, setUserDirectoryName, setVirtualUsers, syncDigestAuthPassword, updateGroup, updateUser, updateUser, useCache, validatePasswordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifyGroupChangedprotected 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 UserManagerImplpublic NuxeoGroup getGroup(String groupName)
UserManagergetGroup in interface UserManagergetGroup in class UserManagerImplpublic NuxeoGroup getGroup(String groupName, DocumentModel context)
getGroup in class UserManagerImplpublic List<String> getGroupIds()
UserManagergetGroupIds in interface UserManagergetGroupIds in class UserManagerImplpublic DocumentModel getGroupModel(String groupName)
UserManagergetGroupModel in interface UserManagergetGroupModel in class UserManagerImplgroupName - the group identifierpublic DocumentModelList searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
UserManagersearchGroups in interface UserManagersearchGroups in class UserManagerImplfilter - filter with field names as keysfulltext - field names used for fulltext matchpublic DocumentModelList searchGroups(Map<String,Serializable> filter, Set<String> fulltext, DocumentModel context)
MultiTenantUserManagersearchGroups in interface MultiTenantUserManagersearchGroups in class UserManagerImplfilter - filter with field names as keysfulltext - field names used for fulltext matchprotected DocumentModel getComputedGroupAsDocumentModel(String grpName)
public DocumentModel createGroup(DocumentModel groupModel, DocumentModel context)
MultiTenantUserManagercreateGroup in interface MultiTenantUserManagercreateGroup in class UserManagerImplpublic void updateGroup(DocumentModel groupModel, DocumentModel context)
MultiTenantUserManagerupdateGroup in interface MultiTenantUserManagerupdateGroup in class UserManagerImplpublic void deleteGroup(String groupId, DocumentModel context)
MultiTenantUserManagerdeleteGroup in interface MultiTenantUserManagerdeleteGroup in class UserManagerImplCopyright © 2018 Nuxeo. All rights reserved.