| |
|
| java.lang.Object org.jaffa.security.PolicyManager
PolicyManager | class PolicyManager (Code) | | This class in the main interface to the secuity policy.
Its pupose its to allow the Security Manager to request specific
information about the policy. It uses the PolicyCache to delegate
the reading of the ploicy file via the domain objects
author: paule version: 1.0 |
Method Summary | |
public static void | clearCache() Clear the cached policy. | public static Set | getRoleSet() | public static String[] | getRolesForComponent(String componentName) | public static String[] | getRolesForFunction(String functionName) Get the list of Role names that have access to the specified business function
Parameters: functionName - The function name to get the roles for Returns an array of Strings, each entry is a role name. | static void | printPolicy() Utility function that dumps out the information loaded about the current policy. | static void | printPolicy(PrintWriter out) Utility function that dumps out the information loaded about the current policy. |
clearCache | public static void clearCache()(Code) | | Clear the cached policy. Will be reloaded on the next access.
|
getRoleSet | public static Set getRoleSet()(Code) | | Get the list of roles defined for the application
|
getRolesForComponent | public static String[] getRolesForComponent(String componentName)(Code) | | Get the list of Role names that have access to the specified component
Parameters: componentName - The component name to get the roles for Returns an array of Strings, each entry is a role name.If no roles have access to the component an empty array (new String[] {}) will be returned,If all roles have access to the component 'null' will be returned |
getRolesForFunction | public static String[] getRolesForFunction(String functionName)(Code) | | Get the list of Role names that have access to the specified business function
Parameters: functionName - The function name to get the roles for Returns an array of Strings, each entry is a role name. If no roles have access to the function a null will be returned |
printPolicy | static void printPolicy()(Code) | | Utility function that dumps out the information loaded about the current policy.
This writes the output to System.out
|
printPolicy | static void printPolicy(PrintWriter out)(Code) | | Utility function that dumps out the information loaded about the current policy.
This writes the output to the specified writer
|
|
|
|