info.magnolia.cms.core
Class RootOnlyPermissions
java.lang.Object
org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
info.magnolia.cms.core.DefaultACLBasedPermissions
info.magnolia.cms.core.RootOnlyPermissions
- All Implemented Interfaces:
- org.apache.jackrabbit.core.security.authorization.CompiledPermissions
public class RootOnlyPermissions
- extends DefaultACLBasedPermissions
Permissions granting access to all users to root Caches the result of resolving paths from ids, the caching implementation based org.apache.jackrabbit.core.security.authorization.principalbased.ACLProvider.CompiledPermissionImpl
. See MagnoliaAccessProvider#canAccessRoot()
for details.
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions |
org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result |
Fields inherited from interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions |
NO_PERMISSION |
Method Summary |
boolean |
canRead(org.apache.jackrabbit.spi.Path itemPath,
org.apache.jackrabbit.core.id.ItemId itemId)
|
boolean |
grants(org.apache.jackrabbit.spi.Path absPath,
int permissions)
|
Methods inherited from class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions |
canReadAll, clearCache, close, getPrivilegeSet, hasPrivileges |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootOnlyPermissions
public RootOnlyPermissions(org.apache.jackrabbit.core.SessionImpl systemSession)
canRead
public boolean canRead(org.apache.jackrabbit.spi.Path itemPath,
org.apache.jackrabbit.core.id.ItemId itemId)
throws javax.jcr.RepositoryException
- Specified by:
canRead
in interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions
- Overrides:
canRead
in class DefaultACLBasedPermissions
- Throws:
javax.jcr.RepositoryException
grants
public boolean grants(org.apache.jackrabbit.spi.Path absPath,
int permissions)
throws javax.jcr.RepositoryException
- Specified by:
grants
in interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions
- Overrides:
grants
in class DefaultACLBasedPermissions
- Throws:
javax.jcr.RepositoryException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.