public interface ESOrgUnitResolver
| Modifier and Type | Method and Description |
|---|---|
ESUser |
copyAndResolveUser(ESUser user)
Resolves the given user and returns a copy of it with all roles.
|
List<ESGroup> |
getGroups(ESOrgUnit orgUnit)
Returns the group membership of the organizational unit.
|
List<ESGroup> |
getGroups(ESOrgUnitId orgUnitId)
Returns the group member of the organizational unit the given
ESOrgUnitId belongs to. |
List<ESRole> |
getRolesFromGroups(ESOrgUnit orgUnit)
Returns all roles that can be obtained via group membership.
|
void |
init(ESOrgUnitProvider orgUnitProvider)
Initializes this service.
|
ESUser |
resolveRoles(ESAuthenticationInformation authInfo)
Resolves the user behind the given
ESAuthenticationInformation. |
ESUser |
resolveUser(ESOrgUnitId orgUnitId)
Resolves the ID of an
ESUser. |
ESUser resolveRoles(ESAuthenticationInformation authInfo) throws AccessControlException
ESAuthenticationInformation.authInfo - the authentication information to be resolvedESUserAccessControlException - in case of missing access rightESUser resolveUser(ESOrgUnitId orgUnitId) throws AccessControlException
ESUser.orgUnitId - the organization unit ID to be resolvedESUserAccessControlException - in case of missing access rightList<ESRole> getRolesFromGroups(ESOrgUnit orgUnit)
orgUnit - the organizational unit for which to determine the rolesESRolesList<ESGroup> getGroups(ESOrgUnitId orgUnitId) throws AccessControlException
ESOrgUnitId belongs to.orgUnitId - the ID of an organizational unitESGroupsAccessControlException - in case of missing access rightList<ESGroup> getGroups(ESOrgUnit orgUnit)
orgUnit - an organizational unitESGroupsESUser copyAndResolveUser(ESUser user)
user - the user to be resolvedvoid init(ESOrgUnitProvider orgUnitProvider)
orgUnitProvider - the ESOrgUnitProvider for obtaining organizational unitsCopyright © 2017. All rights reserved.