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, validatePassword
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
notifyGroupChanged
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 NuxeoGroup getGroup(String groupName, DocumentModel context)
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)
public DocumentModel createGroup(DocumentModel groupModel, DocumentModel context)
MultiTenantUserManager
createGroup
in interface MultiTenantUserManager
createGroup
in class UserManagerImpl
public void updateGroup(DocumentModel groupModel, DocumentModel context)
MultiTenantUserManager
updateGroup
in interface MultiTenantUserManager
updateGroup
in class UserManagerImpl
public void deleteGroup(String groupId, DocumentModel context)
MultiTenantUserManager
deleteGroup
in interface MultiTenantUserManager
deleteGroup
in class UserManagerImpl
Copyright © 2018 Nuxeo. All rights reserved.