| java.lang.Object org.apache.lenya.cms.ac.PolicyUtil
PolicyUtil | final public class PolicyUtil (Code) | | Policy utility class.
|
Method Summary | |
final public static Role[] | getRoles(Request request) Fetches the stored roles from the request.
Parameters: request - The request. | final public static User | getUser(ServiceManager manager, String webappUrl, String userId, Logger logger) Parameters: manager - The service manager. Parameters: webappUrl - The web application URL. Parameters: userId - The user ID. Parameters: logger - The logger. | final public static User[] | getUsersWithRole(ServiceManager manager, String webappUrl, String role, Logger logger) Parameters: manager - The service manager. Parameters: webappUrl - The web application URL. Parameters: role - The ID of the role. Parameters: logger - The logger to use. |
getUser | final public static User getUser(ServiceManager manager, String webappUrl, String userId, Logger logger) throws AccessControlException(Code) | | Parameters: manager - The service manager. Parameters: webappUrl - The web application URL. Parameters: userId - The user ID. Parameters: logger - The logger. A user. throws: AccessControlException - if an error occurs. |
getUsersWithRole | final public static User[] getUsersWithRole(ServiceManager manager, String webappUrl, String role, Logger logger) throws AccessControlException(Code) | | Parameters: manager - The service manager. Parameters: webappUrl - The web application URL. Parameters: role - The ID of the role. Parameters: logger - The logger to use. All users which have the role on this URL. throws: AccessControlException - if an error occurs. |
|
|