|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.accesscontrol.AccessControlHelper
public class AccessControlHelper
Helper class for access control checks.
Constructor Summary | |
---|---|
AccessControlHelper(Usersession usersession)
Default constructor. |
Method Summary | |
---|---|
void |
checkProjectAdminAccess()
Check project administrator access for the given project. |
void |
checkProjectAdminAccess(ProjectId projectId)
Check project administrator access for the given project. |
void |
checkReadAccess(ProjectId projectId)
Check if user has read access to given project id. |
void |
checkServerAdminAccess()
Check the server admin access. |
void |
checkWriteAccess(ProjectId projectId)
Check write access for the given project. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessControlHelper(Usersession usersession)
usersession
- the user session that needs to be checkedMethod Detail |
---|
public void checkReadAccess(ProjectId projectId) throws AccessControlException
projectId
- the project id
AccessControlException
- if access is not permitted.public void checkWriteAccess(ProjectId projectId) throws AccessControlException
projectId
- the ID of a project
AccessControlException
- if access is deniedpublic void checkProjectAdminAccess() throws AccessControlException
AccessControlException
- if access is denied.public void checkProjectAdminAccess(ProjectId projectId) throws AccessControlException
projectId
- the project id
AccessControlException
- if access is denied.public void checkServerAdminAccess() throws AccessControlException
AccessControlException
- if access is denied.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |