public interface AuthorizationManager
Modifier and Type | Method and Description |
---|---|
Privilege |
addPrivilege(Privilege privilege)
Adds a Privilege to this AuthorizationManager.
|
Role |
addRole(Role role)
Adds a role to this AuthorizationManager.
|
void |
deletePrivilege(String privilegeId)
Removes a Privilege in this AuthorizationManager.
|
void |
deleteRole(String roleId)
Removes a role in this AuthorizationManager.
|
Privilege |
getPrivilege(String privilegeId)
Returns a Privilege base on an Id.
|
Role |
getRole(String roleId)
Returns a Role base on an Id.
|
String |
getSource()
The Id if this AuthorizationManager;
|
Set<Privilege> |
listPrivileges()
Returns the all Privileges from this AuthorizationManager.
|
Set<Role> |
listRoles()
Returns the all Roles from this AuthorizationManager.
|
boolean |
supportsWrite()
If this AuthorizationManager is writable.
|
Privilege |
updatePrivilege(Privilege privilege)
Updates a Privilege in this AuthorizationManager.
|
Role |
updateRole(Role role)
Updates a role in this AuthorizationManager.
|
String getSource()
boolean supportsWrite()
Set<Role> listRoles()
Role getRole(String roleId) throws NoSuchRoleException
NoSuchRoleException
Role updateRole(Role role) throws NoSuchRoleException
NoSuchRoleException
void deleteRole(String roleId) throws NoSuchRoleException
NoSuchRoleException
Set<Privilege> listPrivileges()
Privilege getPrivilege(String privilegeId) throws NoSuchPrivilegeException
NoSuchPrivilegeException
Privilege addPrivilege(Privilege privilege)
Privilege updatePrivilege(Privilege privilege) throws NoSuchPrivilegeException
NoSuchPrivilegeException
void deletePrivilege(String privilegeId) throws NoSuchPrivilegeException
NoSuchPrivilegeException
Copyright © 2008–2017 Sonatype, Inc.. All rights reserved.