info.magnolia.cms.core
Class MagnoliaAccessProvider.RootOnlyPermissions

java.lang.Object
  extended by org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
      extended by info.magnolia.cms.core.MagnoliaAccessProvider.RootOnlyPermissions
All Implemented Interfaces:
org.apache.jackrabbit.core.security.authorization.CompiledPermissions
Enclosing class:
MagnoliaAccessProvider

public class MagnoliaAccessProvider.RootOnlyPermissions
extends org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions

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(Set) for details.

Version:
$Id$

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 interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions
NO_PERMISSION
 
Constructor Summary
MagnoliaAccessProvider.RootOnlyPermissions()
           
 
Method Summary
protected  org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result buildRepositoryResult()
           
protected  org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result buildResult(org.apache.jackrabbit.spi.Path absPath)
           
 boolean canRead(org.apache.jackrabbit.spi.Path itemPath, org.apache.jackrabbit.core.id.ItemId itemId)
           
protected  org.apache.jackrabbit.core.security.authorization.PrivilegeManagerImpl getPrivilegeManagerImpl()
           
 int getPrivileges(org.apache.jackrabbit.spi.Path absPath)
           
 org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result getResult(org.apache.jackrabbit.spi.Path absPath)
           
 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
 

Constructor Detail

MagnoliaAccessProvider.RootOnlyPermissions

public MagnoliaAccessProvider.RootOnlyPermissions()
Method Detail

canRead

public boolean canRead(org.apache.jackrabbit.spi.Path itemPath,
                       org.apache.jackrabbit.core.id.ItemId itemId)
                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

buildResult

protected org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result buildResult(org.apache.jackrabbit.spi.Path absPath)
                                                                                                    throws javax.jcr.RepositoryException
Specified by:
buildResult in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
Throws:
javax.jcr.RepositoryException

getResult

public org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result getResult(org.apache.jackrabbit.spi.Path absPath)
                                                                                               throws javax.jcr.RepositoryException
Overrides:
getResult in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
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 org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
Throws:
javax.jcr.RepositoryException

getPrivileges

public int getPrivileges(org.apache.jackrabbit.spi.Path absPath)
                  throws javax.jcr.RepositoryException
Specified by:
getPrivileges in interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions
Overrides:
getPrivileges in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
Throws:
javax.jcr.RepositoryException

buildRepositoryResult

protected org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result buildRepositoryResult()
                                                                                                              throws javax.jcr.RepositoryException
Specified by:
buildRepositoryResult in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
Throws:
javax.jcr.RepositoryException

getPrivilegeManagerImpl

protected org.apache.jackrabbit.core.security.authorization.PrivilegeManagerImpl getPrivilegeManagerImpl()
                                                                                                  throws javax.jcr.RepositoryException
Specified by:
getPrivilegeManagerImpl in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
Throws:
javax.jcr.RepositoryException


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.