public interface ESAuthorizationService
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccess(ESMethodInvocation method)
Checks whether a given operation may be executed.
|
boolean |
checkProjectAdminAccess(ESSessionId sessionId,
ESGlobalProjectId projectId)
Check if the session is valid for admin access to the given project.
|
boolean |
checkProjectAdminAccess(ESSessionId sessionId,
ESGlobalProjectId projectId,
ESProjectAdminPrivileges privileg)
Check if the session is valid for admin access to the given project.
|
boolean |
checkProjectAdminAccessForOrgUnit(ESSessionId sessionId,
ESOrgUnitId orgUnitId)
Check if the session is valid for admin access to the given organizational unit.
|
boolean |
checkProjectAdminAccessForOrgUnit(ESSessionId sessionId,
ESOrgUnitId orgUnitId,
Set<ESGlobalProjectId> projectIds)
Check if the session is valid for admin access to the given organizational unit.
|
void |
checkReadAccess(ESSessionId sessionId,
ESGlobalProjectId projectId,
Set<org.eclipse.emf.ecore.EObject> modelElements)
Check if the session may read the given model elements in the project.
|
void |
checkServerAdminAccess(ESSessionId sessionId)
Check if the session is valid for server admin access.
|
void |
checkWriteAccess(ESSessionId sessionId,
ESGlobalProjectId projectId,
Set<org.eclipse.emf.ecore.EObject> modelElements)
Check if the session may write the given model elements in the project.
|
void |
init(ESSessions sessions,
ESOrgUnitResolver orgUnitResolverServive,
ESOrgUnitProvider orgUnitProvider)
Initializes this service.
|
boolean checkProjectAdminAccess(ESSessionId sessionId, ESGlobalProjectId projectId, ESProjectAdminPrivileges privileg) throws AccessControlException
sessionId - the session idprojectId - the project id. May be nullprivileg - the ESProjectAdminPrivileges to be checkedtrue, if permission is granted via the server admin role, false otherwiseAccessControlException - if the session is invalid for admin accessboolean checkProjectAdminAccessForOrgUnit(ESSessionId sessionId, ESOrgUnitId orgUnitId) throws AccessControlException
sessionId - the session idorgUnitId - the ID of an organizational unittrue, if permission is granted via the server admin role, false otherwiseAccessControlException - if the session is invalid for admin accessboolean checkProjectAdminAccessForOrgUnit(ESSessionId sessionId, ESOrgUnitId orgUnitId, Set<ESGlobalProjectId> projectIds) throws AccessControlException
sessionId - the session idorgUnitId - the ID of an organizational unitprojectIds - the set of ESGlobalProjectIds for which to check access fortrue, if permission is granted via the server admin role, false otherwiseAccessControlException - if the session is invalid for admin accessboolean checkProjectAdminAccess(ESSessionId sessionId, ESGlobalProjectId projectId) throws AccessControlException
sessionId - the session idprojectId - the project id. May be nulltrue, if permission is granted via the server admin role, false otherwiseAccessControlException - if the session is invalid for admin accessvoid checkServerAdminAccess(ESSessionId sessionId) throws AccessControlException
sessionId - the session idAccessControlException - if the session is invalid for server admin accessvoid checkReadAccess(ESSessionId sessionId, ESGlobalProjectId projectId, Set<org.eclipse.emf.ecore.EObject> modelElements) throws AccessControlException
sessionId - session idprojectId - project idmodelElements - a set of model elementsAccessControlException - if the session may not read any of the model elementsvoid checkWriteAccess(ESSessionId sessionId, ESGlobalProjectId projectId, Set<org.eclipse.emf.ecore.EObject> modelElements) throws AccessControlException
sessionId - session idprojectId - project idmodelElements - a set of model elementsAccessControlException - if the session may not write any of the model elementsvoid checkAccess(ESMethodInvocation method) throws AccessControlException
method - the method the user intends to executeAccessControlException - in case access is deniedvoid init(ESSessions sessions, ESOrgUnitResolver orgUnitResolverServive, ESOrgUnitProvider orgUnitProvider)
sessions - the ESSessions object for session handlingorgUnitResolverServive - the ESOrgUnitResolver for resolving organizational unitsorgUnitProvider - the ESOrgUnitProvider for obtaining organizational unitsCopyright © 2017. All rights reserved.