|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AclManager
Specifies how to parse and return ACLs from wiki pages.
Method Summary | |
---|---|
Acl |
getPermissions(WikiPage page)
Returns the access control list for the page. |
void |
initialize(WikiEngine engine,
Properties props)
Initializes the AclManager with a supplied wiki engine and properties. |
Acl |
parseAcl(WikiPage page,
String ruleLine)
A helper method for parsing textual AccessControlLists. |
void |
setPermissions(WikiPage page,
Acl acl)
Sets the access control list for the page and persists it. |
Method Detail |
---|
void initialize(WikiEngine engine, Properties props)
engine
- the wiki engineprops
- the initialization propertiesAcl parseAcl(WikiPage page, String ruleLine) throws WikiSecurityException
page
- The current wiki page. If the page already has an ACL, it
will be used as a basis for this ACL in order to avoid the
creation of a new one.ruleLine
- The rule line, as described above.
WikiSecurityException
- if the ruleLine was faulty somehow.Acl getPermissions(WikiPage page)
page
- the wiki page
void setPermissions(WikiPage page, Acl acl) throws WikiSecurityException
page
- the wiki pageacl
- the access control list
WikiSecurityException
- if the ACL cannot be set or persisted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |