info.magnolia.cms.core
Class MagnoliaAccessManager

java.lang.Object
  extended by org.apache.jackrabbit.core.security.AbstractAccessControlManager
      extended by org.apache.jackrabbit.core.security.DefaultAccessManager
          extended by info.magnolia.cms.core.MagnoliaAccessManager
All Implemented Interfaces:
javax.jcr.security.AccessControlManager, org.apache.jackrabbit.api.security.JackrabbitAccessControlManager, org.apache.jackrabbit.core.security.AccessManager

Deprecated. this class will change package as part of removal direct JR dependencies.

@Deprecated
public class MagnoliaAccessManager
extends org.apache.jackrabbit.core.security.DefaultAccessManager

Magnolia's own access manager exposing access to repository to all Magnolia users.

Version:
$Id: $
Author:
had

Field Summary
 
Fields inherited from interface org.apache.jackrabbit.core.security.AccessManager
READ, REMOVE, WRITE
 
Constructor Summary
MagnoliaAccessManager()
          Deprecated.  
 
Method Summary
 boolean canAccess(String workspaceName)
          Deprecated.  
 boolean canRead(org.apache.jackrabbit.spi.Path itemPath, org.apache.jackrabbit.core.id.ItemId itemId)
          Deprecated.  
protected  void checkInitialized()
          Deprecated.  
 void checkPermission(org.apache.jackrabbit.core.id.ItemId id, int permissions)
          Deprecated.  
 void checkPermission(org.apache.jackrabbit.spi.Path absPath, int permissions)
          Deprecated.  
protected  void checkPermission(String absPath, int permission)
          Deprecated.  
protected  void checkValidNodePath(String absPath)
          Deprecated.  
 void close()
          Deprecated.  
 org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy[] getApplicablePolicies(Principal principal)
          Deprecated.  
 javax.jcr.security.AccessControlPolicyIterator getApplicablePolicies(String absPath)
          Deprecated.  
 javax.jcr.security.AccessControlPolicy[] getEffectivePolicies(Set<Principal> principals)
          Deprecated.  
 javax.jcr.security.AccessControlPolicy[] getEffectivePolicies(String absPath)
          Deprecated.  
 org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy[] getPolicies(Principal principal)
          Deprecated.  
 javax.jcr.security.AccessControlPolicy[] getPolicies(String absPath)
          Deprecated.  
 javax.jcr.security.Privilege[] getPrivileges(String absPath)
          Deprecated.  
 javax.jcr.security.Privilege[] getPrivileges(String absPath, Set<Principal> principals)
          Deprecated.  
 boolean hasPrivileges(String absPath, javax.jcr.security.Privilege[] privileges)
          Deprecated.  
 boolean hasPrivileges(String absPath, Set<Principal> principals, javax.jcr.security.Privilege[] privileges)
          Deprecated.  
 void init(org.apache.jackrabbit.core.security.AMContext amContext)
          Deprecated.  
 void init(org.apache.jackrabbit.core.security.AMContext amContext, org.apache.jackrabbit.core.security.authorization.AccessControlProvider acProvider, org.apache.jackrabbit.core.security.authorization.WorkspaceAccessManager wspAccessManager)
          Deprecated.  
 boolean isGranted(org.apache.jackrabbit.core.id.ItemId id, int actions)
          Deprecated.  
 boolean isGranted(org.apache.jackrabbit.spi.Path absPath, int permissions)
          Deprecated.  
 boolean isGranted(org.apache.jackrabbit.spi.Path parentPath, org.apache.jackrabbit.spi.Name childName, int permissions)
          Deprecated.  
 void removePolicy(String absPath, javax.jcr.security.AccessControlPolicy policy)
          Deprecated.  
 void setPolicy(String absPath, javax.jcr.security.AccessControlPolicy policy)
          Deprecated.  
 
Methods inherited from class org.apache.jackrabbit.core.security.DefaultAccessManager
checkRepositoryPermission, getPrivilegeManager
 
Methods inherited from class org.apache.jackrabbit.core.security.AbstractAccessControlManager
getSupportedPrivileges, privilegeFromName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagnoliaAccessManager

public MagnoliaAccessManager()
Deprecated. 
Method Detail

canAccess

public boolean canAccess(String workspaceName)
                  throws javax.jcr.RepositoryException
Deprecated. 
Specified by:
canAccess in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
canAccess in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.RepositoryException

canRead

public boolean canRead(org.apache.jackrabbit.spi.Path itemPath,
                       org.apache.jackrabbit.core.id.ItemId itemId)
                throws javax.jcr.RepositoryException
Deprecated. 
Specified by:
canRead in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
canRead in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.RepositoryException

checkInitialized

protected void checkInitialized()
Deprecated. 
Overrides:
checkInitialized in class org.apache.jackrabbit.core.security.DefaultAccessManager

checkPermission

public void checkPermission(org.apache.jackrabbit.core.id.ItemId id,
                            int permissions)
                     throws javax.jcr.AccessDeniedException,
                            javax.jcr.ItemNotFoundException,
                            javax.jcr.RepositoryException
Deprecated. 
Specified by:
checkPermission in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
checkPermission in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

checkPermission

public void checkPermission(org.apache.jackrabbit.spi.Path absPath,
                            int permissions)
                     throws javax.jcr.AccessDeniedException,
                            javax.jcr.RepositoryException
Deprecated. 
Specified by:
checkPermission in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
checkPermission in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

checkPermission

protected void checkPermission(String absPath,
                               int permission)
                        throws javax.jcr.AccessDeniedException,
                               javax.jcr.RepositoryException
Deprecated. 
Overrides:
checkPermission in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

checkValidNodePath

protected void checkValidNodePath(String absPath)
                           throws javax.jcr.PathNotFoundException,
                                  javax.jcr.RepositoryException
Deprecated. 
Overrides:
checkValidNodePath in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

close

public void close()
           throws Exception
Deprecated. 
Specified by:
close in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
close in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
Exception

getApplicablePolicies

public org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy[] getApplicablePolicies(Principal principal)
                                                                                         throws javax.jcr.AccessDeniedException,
                                                                                                javax.jcr.security.AccessControlException,
                                                                                                javax.jcr.UnsupportedRepositoryOperationException,
                                                                                                javax.jcr.RepositoryException
Deprecated. 
Specified by:
getApplicablePolicies in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlManager
Overrides:
getApplicablePolicies in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
javax.jcr.security.AccessControlException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException

getApplicablePolicies

public javax.jcr.security.AccessControlPolicyIterator getApplicablePolicies(String absPath)
                                                                     throws javax.jcr.PathNotFoundException,
                                                                            javax.jcr.AccessDeniedException,
                                                                            javax.jcr.RepositoryException
Deprecated. 
Specified by:
getApplicablePolicies in interface javax.jcr.security.AccessControlManager
Overrides:
getApplicablePolicies in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getEffectivePolicies

public javax.jcr.security.AccessControlPolicy[] getEffectivePolicies(Set<Principal> principals)
                                                              throws javax.jcr.AccessDeniedException,
                                                                     javax.jcr.security.AccessControlException,
                                                                     javax.jcr.UnsupportedRepositoryOperationException,
                                                                     javax.jcr.RepositoryException
Deprecated. 
Specified by:
getEffectivePolicies in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlManager
Overrides:
getEffectivePolicies in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
javax.jcr.security.AccessControlException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException

getEffectivePolicies

public javax.jcr.security.AccessControlPolicy[] getEffectivePolicies(String absPath)
                                                              throws javax.jcr.PathNotFoundException,
                                                                     javax.jcr.AccessDeniedException,
                                                                     javax.jcr.RepositoryException
Deprecated. 
Specified by:
getEffectivePolicies in interface javax.jcr.security.AccessControlManager
Overrides:
getEffectivePolicies in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getPolicies

public org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy[] getPolicies(Principal principal)
                                                                               throws javax.jcr.AccessDeniedException,
                                                                                      javax.jcr.security.AccessControlException,
                                                                                      javax.jcr.UnsupportedRepositoryOperationException,
                                                                                      javax.jcr.RepositoryException
Deprecated. 
Specified by:
getPolicies in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlManager
Overrides:
getPolicies in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
javax.jcr.security.AccessControlException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException

getPolicies

public javax.jcr.security.AccessControlPolicy[] getPolicies(String absPath)
                                                     throws javax.jcr.PathNotFoundException,
                                                            javax.jcr.AccessDeniedException,
                                                            javax.jcr.RepositoryException
Deprecated. 
Specified by:
getPolicies in interface javax.jcr.security.AccessControlManager
Overrides:
getPolicies in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

getPrivileges

public javax.jcr.security.Privilege[] getPrivileges(String absPath,
                                                    Set<Principal> principals)
                                             throws javax.jcr.PathNotFoundException,
                                                    javax.jcr.RepositoryException
Deprecated. 
Specified by:
getPrivileges in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlManager
Overrides:
getPrivileges in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getPrivileges

public javax.jcr.security.Privilege[] getPrivileges(String absPath)
                                             throws javax.jcr.PathNotFoundException,
                                                    javax.jcr.RepositoryException
Deprecated. 
Specified by:
getPrivileges in interface javax.jcr.security.AccessControlManager
Overrides:
getPrivileges in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

hasPrivileges

public boolean hasPrivileges(String absPath,
                             javax.jcr.security.Privilege[] privileges)
                      throws javax.jcr.PathNotFoundException,
                             javax.jcr.RepositoryException
Deprecated. 
Specified by:
hasPrivileges in interface javax.jcr.security.AccessControlManager
Overrides:
hasPrivileges in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

hasPrivileges

public boolean hasPrivileges(String absPath,
                             Set<Principal> principals,
                             javax.jcr.security.Privilege[] privileges)
                      throws javax.jcr.PathNotFoundException,
                             javax.jcr.RepositoryException
Deprecated. 
Specified by:
hasPrivileges in interface org.apache.jackrabbit.api.security.JackrabbitAccessControlManager
Overrides:
hasPrivileges in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

init

public void init(org.apache.jackrabbit.core.security.AMContext amContext,
                 org.apache.jackrabbit.core.security.authorization.AccessControlProvider acProvider,
                 org.apache.jackrabbit.core.security.authorization.WorkspaceAccessManager wspAccessManager)
          throws javax.jcr.AccessDeniedException,
                 Exception
Deprecated. 
Specified by:
init in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
init in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
Exception

init

public void init(org.apache.jackrabbit.core.security.AMContext amContext)
          throws javax.jcr.AccessDeniedException,
                 Exception
Deprecated. 
Specified by:
init in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
init in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.AccessDeniedException
Exception

isGranted

public boolean isGranted(org.apache.jackrabbit.core.id.ItemId id,
                         int actions)
                  throws javax.jcr.ItemNotFoundException,
                         javax.jcr.RepositoryException
Deprecated. 
Specified by:
isGranted in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
isGranted in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

isGranted

public boolean isGranted(org.apache.jackrabbit.spi.Path absPath,
                         int permissions)
                  throws javax.jcr.RepositoryException
Deprecated. 
Specified by:
isGranted in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
isGranted in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.RepositoryException

isGranted

public boolean isGranted(org.apache.jackrabbit.spi.Path parentPath,
                         org.apache.jackrabbit.spi.Name childName,
                         int permissions)
                  throws javax.jcr.RepositoryException
Deprecated. 
Specified by:
isGranted in interface org.apache.jackrabbit.core.security.AccessManager
Overrides:
isGranted in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.RepositoryException

removePolicy

public void removePolicy(String absPath,
                         javax.jcr.security.AccessControlPolicy policy)
                  throws javax.jcr.PathNotFoundException,
                         javax.jcr.security.AccessControlException,
                         javax.jcr.AccessDeniedException,
                         javax.jcr.RepositoryException
Deprecated. 
Specified by:
removePolicy in interface javax.jcr.security.AccessControlManager
Overrides:
removePolicy in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.security.AccessControlException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException

setPolicy

public void setPolicy(String absPath,
                      javax.jcr.security.AccessControlPolicy policy)
               throws javax.jcr.PathNotFoundException,
                      javax.jcr.security.AccessControlException,
                      javax.jcr.AccessDeniedException,
                      javax.jcr.RepositoryException
Deprecated. 
Specified by:
setPolicy in interface javax.jcr.security.AccessControlManager
Overrides:
setPolicy in class org.apache.jackrabbit.core.security.DefaultAccessManager
Throws:
javax.jcr.PathNotFoundException
javax.jcr.security.AccessControlException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException


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