public class DefaultACLBasedPermissions
extends org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
org.apache.jackrabbit.core.security.authorization.principalbased.ACLProvider.CompiledPermissionImpl
.Modifier and Type | Field and Description |
---|---|
protected AccessManager |
ami |
protected Object |
monitor |
protected org.apache.jackrabbit.spi.commons.conversion.PathResolver |
pathResolver
Used to convert a jackrabbit Path abstraction into a path string with slashes and namespaces.
|
protected long[][] |
permissionMapping |
protected Map<org.apache.jackrabbit.core.id.ItemId,Boolean> |
readCache |
protected org.apache.jackrabbit.core.SessionImpl |
session |
Constructor and Description |
---|
DefaultACLBasedPermissions(List<Permission> permissions,
org.apache.jackrabbit.core.SessionImpl systemSession,
Map<?,?> configuration) |
Modifier and Type | Method and Description |
---|---|
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 long |
convertJackrabbitPermissionsToMagnoliaPermissions(long jackRabbitPermissions) |
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) |
protected final AccessManager ami
protected final Object monitor
protected org.apache.jackrabbit.core.SessionImpl session
protected final long[][] permissionMapping
protected final org.apache.jackrabbit.spi.commons.conversion.PathResolver pathResolver
public DefaultACLBasedPermissions(List<Permission> permissions, org.apache.jackrabbit.core.SessionImpl systemSession, Map<?,?> configuration)
protected long convertJackrabbitPermissionsToMagnoliaPermissions(long jackRabbitPermissions)
public boolean canRead(org.apache.jackrabbit.spi.Path itemPath, org.apache.jackrabbit.core.id.ItemId itemId) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result buildResult(org.apache.jackrabbit.spi.Path absPath) throws javax.jcr.RepositoryException
buildResult
in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
javax.jcr.RepositoryException
public org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result getResult(org.apache.jackrabbit.spi.Path absPath) throws javax.jcr.RepositoryException
getResult
in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
javax.jcr.RepositoryException
public boolean grants(org.apache.jackrabbit.spi.Path absPath, int permissions) throws javax.jcr.RepositoryException
grants
in interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions
grants
in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
javax.jcr.RepositoryException
public int getPrivileges(org.apache.jackrabbit.spi.Path absPath) throws javax.jcr.RepositoryException
getPrivileges
in interface org.apache.jackrabbit.core.security.authorization.CompiledPermissions
getPrivileges
in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
javax.jcr.RepositoryException
protected org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result buildRepositoryResult() throws javax.jcr.RepositoryException
buildRepositoryResult
in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
javax.jcr.RepositoryException
protected org.apache.jackrabbit.core.security.authorization.PrivilegeManagerImpl getPrivilegeManagerImpl() throws javax.jcr.RepositoryException
getPrivilegeManagerImpl
in class org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions
javax.jcr.RepositoryException
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.