| java.lang.Object com.ecyrd.jspwiki.auth.permissions.PermissionFactory
PermissionFactory | public class PermissionFactory (Code) | | Provides a factory for Permission objects. Since the Permissions are immutable,
and creating them takes a bit of time, caching them makes sense.
This class stores the permissions in a static HashMap.
author: Janne Jalkanen since: 2.5.54 |
Method Summary | |
final public static PagePermission | getPagePermission(WikiPage page, String actions) Get a permission object for a WikiPage and a set of actions.
Parameters: page - The page object. Parameters: actions - A list of actions. | final public static PagePermission | getPagePermission(String page, String actions) Get a permission object for a WikiPage and a set of actions.
Parameters: page - The name of the page. Parameters: actions - A list of actions. |
getPagePermission | final public static PagePermission getPagePermission(WikiPage page, String actions)(Code) | | Get a permission object for a WikiPage and a set of actions.
Parameters: page - The page object. Parameters: actions - A list of actions. A PagePermission object, presenting this page+actions combination. |
getPagePermission | final public static PagePermission getPagePermission(String page, String actions)(Code) | | Get a permission object for a WikiPage and a set of actions.
Parameters: page - The name of the page. Parameters: actions - A list of actions. A PagePermission object, presenting this page+actions combination. |
|
|