info.magnolia.cms.core
Class RootOnlyPermissions

java.lang.Object
  extended by org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
      extended by info.magnolia.cms.core.DefaultACLBasedPermissions
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result
 
Field Summary
 
Fields inherited from class info.magnolia.cms.core.DefaultACLBasedPermissions
ami, pathResolver, permissionMapping, session
 
Fields inherited from interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions
NO_PERMISSION
 
Constructor Summary
RootOnlyPermissions(org.apache.jackrabbit.core.SessionImpl systemSession)
           
 
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 info.magnolia.cms.core.DefaultACLBasedPermissions
buildRepositoryResult, buildResult, convertJackrabbitPermissionsToMagnoliaPermissions, getPrivilegeManagerImpl, getPrivileges, getResult
 
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
 

Constructor Detail

RootOnlyPermissions

public RootOnlyPermissions(org.apache.jackrabbit.core.SessionImpl systemSession)
Method Detail

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–2014 Magnolia International Ltd.. All rights reserved.