public class AccessControlHelper extends Object
| Constructor and Description |
|---|
AccessControlHelper(Usersession usersession)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public AccessControlHelper(Usersession usersession)
usersession - the user session that needs to be checkedpublic void checkReadAccess(ProjectId projectId) throws AccessControlException
projectId - the project idAccessControlException - if access is not permitted.public void checkWriteAccess(ProjectId projectId) throws AccessControlException
projectId - the ID of a projectAccessControlException - if access is deniedpublic void checkProjectAdminAccess()
throws AccessControlException
AccessControlException - if access is denied.public void checkProjectAdminAccess(ProjectId projectId) throws AccessControlException
projectId - the project idAccessControlException - if access is denied.public void checkServerAdminAccess()
throws AccessControlException
AccessControlException - if access is denied.Copyright © 2017. All rights reserved.