| java.lang.Object com.ecyrd.jspwiki.auth.AuthorizationManager
AuthorizationManager | public class AuthorizationManager (Code) | | Manages all access control and authorization.
See Also: UserManager |
Method Summary | |
public boolean | checkPermission(WikiPage page, UserProfile wup, String permission) Returns true or false, depending on whether this action
is allowed for this WikiPage. | public boolean | checkPermission(WikiPage page, UserProfile wup, WikiPermission permission) Returns true or false, depending on whether this action
is allowed. | public boolean | oldcheckPermission(WikiPage page, UserProfile wup, WikiPermission permission) Returns true or false, depending on whether this action
is allowed. | public boolean | strictLogins() Returns true, if strict logins are required. |
DEFAULT_AUTHORIZER | final public static String DEFAULT_AUTHORIZER(Code) | | |
PROP_AUTHORIZER | final public static String PROP_AUTHORIZER(Code) | | |
PROP_STRICTLOGINS | final public static String PROP_STRICTLOGINS(Code) | | |
PROP_USEOLDAUTH | final protected static String PROP_USEOLDAUTH(Code) | | |
AuthorizationManager | public AuthorizationManager(WikiEngine engine, Properties properties) throws WikiException(Code) | | Creates a new AuthorizationManager, owned by engine and initialized
according to the settings in properties. Expects to find property
'jspwiki.authorizer' with a valid WikiAuthorizer implementation name
to take care of authorization.
|
checkPermission | public boolean checkPermission(WikiPage page, UserProfile wup, String permission)(Code) | | Returns true or false, depending on whether this action
is allowed for this WikiPage.
Parameters: permission - Any of the available permissions "view", "edit, "comment", etc. |
checkPermission | public boolean checkPermission(WikiPage page, UserProfile wup, WikiPermission permission)(Code) | | Returns true or false, depending on whether this action
is allowed. This method returns true for 2.2.
|
oldcheckPermission | public boolean oldcheckPermission(WikiPage page, UserProfile wup, WikiPermission permission)(Code) | | Returns true or false, depending on whether this action
is allowed. This method returns true for 2.2.
|
strictLogins | public boolean strictLogins()(Code) | | Returns true, if strict logins are required. Strict logins
mean that all pages are accessible only to users who have logged in.
|
|
|