| com.ecyrd.jspwiki.auth.acl.AclManager
All known Subclasses: com.ecyrd.jspwiki.auth.acl.DefaultAclManager,
AclManager | public interface AclManager (Code) | | Specifies how to parse and return ACLs from wiki pages.
author: Andrew Jaquith since: 2.3 |
getPermissions | public Acl getPermissions(WikiPage page)(Code) | | Returns the access control list for the page.
If the ACL has not been parsed yet, it is done
on-the-fly. If the page has a parent page, then that is tried also.
This method was moved from Authorizer;
it was consolidated with some code from AuthorizationManager.
Parameters: page - the wiki page since: 2.2.121 the Acl representing permissions for the page |
initialize | public void initialize(WikiEngine engine, Properties props)(Code) | | Initializes the AclManager with a supplied wiki engine and properties.
Parameters: engine - the wiki engine Parameters: props - the initialization properties |
parseAcl | public Acl parseAcl(WikiPage page, String ruleLine) throws WikiSecurityException(Code) | | A helper method for parsing textual AccessControlLists. The line is in
form "(ALLOW) , , ". This
method was moved from Authorizer.
Parameters: page - The current wiki page. If the page already has an ACL, itwill be used as a basis for this ACL in order to avoid thecreation of a new one. Parameters: ruleLine - The rule line, as described above. A valid Access Control List. May be empty. throws: WikiSecurityException - if the ruleLine was faulty somehow. since: 2.1.121 |
setPermissions | public void setPermissions(WikiPage page, Acl acl) throws WikiSecurityException(Code) | | Sets the access control list for the page and persists it.
Parameters: page - the wiki page Parameters: acl - the access control list since: 2.5 throws: WikiSecurityException - if the ACL cannot be set or persisted |
|
|