public class DefaultESOrgUnitResolverService extends Object implements ESOrgUnitResolver
ESOrgUnitResolver.| Constructor and Description |
|---|
DefaultESOrgUnitResolverService() |
| Modifier and Type | Method and Description |
|---|---|
ESUser |
copyAndResolveUser(ESUser esUser)
Resolves the given user and returns a copy of it with all roles.
|
List<ESGroup> |
getGroups(ESOrgUnit esOrgUnit)
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. |
public List<ESRole> getRolesFromGroups(ESOrgUnit orgUnit)
getRolesFromGroups in interface ESOrgUnitResolverorgUnit - the organizational unit for which to determine the rolesESRolesESOrgUnitResolver.getRolesFromGroups(org.eclipse.emf.emfstore.server.model.ESOrgUnit)public ESUser resolveRoles(ESAuthenticationInformation authInfo) throws AccessControlException
ESAuthenticationInformation.resolveRoles in interface ESOrgUnitResolverauthInfo - the authentication information to be resolvedESUserAccessControlException - in case of missing access rightESOrgUnitResolver.resolveRoles(org.eclipse.emf.emfstore.server.model.ESAuthenticationInformation)public ESUser copyAndResolveUser(ESUser esUser)
copyAndResolveUser in interface ESOrgUnitResolveresUser - the user to be resolvedESOrgUnitResolver.copyAndResolveUser(org.eclipse.emf.emfstore.server.model.ESUser)public ESUser resolveUser(ESOrgUnitId orgUnitId) throws AccessControlException
ESUser.resolveUser in interface ESOrgUnitResolverorgUnitId - the organization unit ID to be resolvedESUserAccessControlExceptionESOrgUnitResolver.resolveUser(org.eclipse.emf.emfstore.server.model.ESOrgUnitId)public List<ESGroup> getGroups(ESOrgUnitId orgUnitId) throws AccessControlException
ESOrgUnitId belongs to.getGroups in interface ESOrgUnitResolverorgUnitId - the ID of an organizational unitESGroupsAccessControlExceptionESOrgUnitResolver.getGroups(org.eclipse.emf.emfstore.server.model.ESOrgUnitId)public List<ESGroup> getGroups(ESOrgUnit esOrgUnit)
getGroups in interface ESOrgUnitResolveresOrgUnit - an organizational unitESGroupsESOrgUnitResolver.getGroups(org.eclipse.emf.emfstore.server.model.ESOrgUnit)public void init(ESOrgUnitProvider orgUnitProvider)
init in interface ESOrgUnitResolverorgUnitProvider - the ESOrgUnitProvider for obtaining organizational unitsESOrgUnitResolver.init(org.eclipse.emf.emfstore.server.model.ESOrgUnitProvider)Copyright © 2017. All rights reserved.