|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Authorizations
Defines a container for Authorizations.
The two types of authorizations defined in the Coalevo platform are:Permission)Role
| Method Summary | |
|---|---|
java.util.Set<java.lang.String> |
getRolenames()
Returns an unmodifiable set of the names of all roles of the corresponding agent. |
boolean |
hasPermission(java.lang.String id)
Checks if this Agent has a permission specified by the given name. |
boolean |
hasRole(java.lang.String id)
Checks if this Agent has a role specified by the given identifier. |
| Method Detail |
|---|
boolean hasPermission(java.lang.String id)
id - a String that identifies a permission.
boolean hasRole(java.lang.String id)
id - a String identifier for a Role instance.
java.util.Set<java.lang.String> getRolenames()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||