|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PermissionService
Manages permissions in Deployit.
| Method Summary | |
|---|---|
void |
checkMyPermission(java.lang.String permission,
java.lang.String id)
Checks if the currently logged in user has a certain permission on a CI. |
void |
grant(java.lang.String permission,
java.lang.String id,
java.lang.String role)
Grants a permission to a role on a CI. |
boolean |
isGranted(java.lang.String permission,
java.lang.String id,
java.lang.String role)
Checks if a permission is granted to a role on a CI. |
void |
revoke(java.lang.String permission,
java.lang.String id,
java.lang.String role)
Revokes the permission of a role on a CI. |
| Method Detail |
|---|
boolean isGranted(java.lang.String permission,
java.lang.String id,
java.lang.String role)
permission - the name of the permission to check.id - the path of the CI to check the permission on.role - the role to which the permission should be granted.
true if granted.
void grant(java.lang.String permission,
java.lang.String id,
java.lang.String role)
permission - the name of the permission to grant.id - the path of the CI to grant the permission on.role - the role to which the permission should be granted.
void revoke(java.lang.String permission,
java.lang.String id,
java.lang.String role)
permission - the name of the permission to revoke.id - the path of the CI to revoke the permission from.role - the role from which the permission should be revoked.
void checkMyPermission(java.lang.String permission,
java.lang.String id)
403 is returned.
permission - the name of the permission to check.id - the path of the CI to check the permission on.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||