Method Summary |
|
void | allowFunction(String lock) Add this function to the set of functions that users with this role are allowed to perform. |
void | allowFunctions(Collection functions) Add these functions to the set of functions that users with this role are allowed to perform. |
boolean | allowsNoFunctions() Check if the Role has no functons in the set of functions that users with this role are allowed to perform. |
void | disallowAll() Remove all functions from the set of functions that users with this role are allowed to perform. |
void | disallowFunction(String lock) Remove this function from the set of functions that users with this role are allowed to perform. |
void | disallowFunctions(Collection functions) Remove these functions from the set of functions that users with this role are allowed to perform. |
Set | getAllowedFunctions() Access the set of functions that users with this role are allowed to perform. |
String | getDescription() Access the Role description. |
String | getId() Access the Role id. |
boolean | isAllowed(String function) Test if users with this role are allowed to perform this named function.
Parameters: function - The function name. |
boolean | isProviderOnly() Whether this Role is assignable only by a provider (true) or if the role can
be manipulated by users (false). |
void | setDescription(String description) Set the role description. |
void | setProviderOnly(boolean providerOnly) Sets the provider only flag. |