|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.auth.permissions.PermissionFactory
public final class PermissionFactory
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.
Method Summary | |
---|---|
static PagePermission |
getPagePermission(String page,
String actions)
Get a permission object for a WikiPage and a set of actions. |
static PagePermission |
getPagePermission(WikiPage page,
String actions)
Get a permission object for a WikiPage and a set of actions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PagePermission getPagePermission(WikiPage page, String actions)
page
- The page object.actions
- A list of actions.
public static PagePermission getPagePermission(String page, String actions)
page
- The name of the page.actions
- A list of actions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |