public class AclChecker extends Object
Constructor and Description |
---|
AclChecker() |
Modifier and Type | Method and Description |
---|---|
static void |
checkAccess(IPluginConfig config,
javax.jcr.Session session,
String prefix) |
static void |
checkAccess(IPluginConfig config,
javax.jcr.Session session,
String prefix,
String defaultPrivilege,
String defaultPath)
Check whether a certain user which obtained a JCR session has access to a certain frontend application or not
|
public static void checkAccess(IPluginConfig config, javax.jcr.Session session, String prefix, String defaultPrivilege, String defaultPath) throws AccessControlException, javax.jcr.RepositoryException
config
- - A plugin configuration from which some configuration parameters will be retrievedsession
- - A JCR session to check access withprefix
- - The prefix to use to lookup configuration properties of the access controldefaultPrivilege
- - Default value for the privilege in case there is no one defineddefaultPath
- - Default value for privilege path in case there is no one definedAccessControlException
- If access is not allowed using privilege
, either the configured or the
provided default value, to path
, either the configured or the default valuejavax.jcr.RepositoryException
public static void checkAccess(IPluginConfig config, javax.jcr.Session session, String prefix) throws AccessControlException, javax.jcr.RepositoryException
AccessControlException
javax.jcr.RepositoryException
checkAccess(org.hippoecm.frontend.plugin.config.IPluginConfig, javax.jcr.Session, String, String, String)
Copyright © 2007-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.