public class MyAccessManager extends Object implements org.apache.jackrabbit.core.security.AccessManager
Constructor and Description |
---|
MyAccessManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccess(String workspaceName) |
boolean |
canRead(org.apache.jackrabbit.spi.Path itemPath) |
void |
checkPermission(org.apache.jackrabbit.core.ItemId id,
int permissions) |
void |
checkPermission(org.apache.jackrabbit.spi.Path arg0,
int arg1) |
void |
close() |
void |
init(org.apache.jackrabbit.core.security.AMContext context) |
void |
init(org.apache.jackrabbit.core.security.AMContext context,
org.apache.jackrabbit.core.security.authorization.AccessControlProvider acProvider,
org.apache.jackrabbit.core.security.authorization.WorkspaceAccessManager wspAccessMgr) |
boolean |
isGranted(org.apache.jackrabbit.core.ItemId id,
int permissions) |
boolean |
isGranted(org.apache.jackrabbit.spi.Path absPath,
int permissions) |
boolean |
isGranted(org.apache.jackrabbit.spi.Path parentPath,
org.apache.jackrabbit.spi.Name childName,
int permissions) |
public void init(org.apache.jackrabbit.core.security.AMContext context) throws javax.jcr.AccessDeniedException, Exception
init
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.AccessDeniedException
Exception
public void init(org.apache.jackrabbit.core.security.AMContext context, org.apache.jackrabbit.core.security.authorization.AccessControlProvider acProvider, org.apache.jackrabbit.core.security.authorization.WorkspaceAccessManager wspAccessMgr) throws javax.jcr.AccessDeniedException, Exception
init
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.AccessDeniedException
Exception
public void close() throws Exception
close
in interface org.apache.jackrabbit.core.security.AccessManager
Exception
public boolean canAccess(String workspaceName) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.RepositoryException
canAccess
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException
public boolean canRead(org.apache.jackrabbit.spi.Path itemPath) throws javax.jcr.RepositoryException
canRead
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.RepositoryException
public void checkPermission(org.apache.jackrabbit.core.ItemId id, int permissions) throws javax.jcr.AccessDeniedException, javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
checkPermission
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.AccessDeniedException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public boolean isGranted(org.apache.jackrabbit.core.ItemId id, int permissions) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
isGranted
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public boolean isGranted(org.apache.jackrabbit.spi.Path absPath, int permissions) throws javax.jcr.RepositoryException
isGranted
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.RepositoryException
public boolean isGranted(org.apache.jackrabbit.spi.Path parentPath, org.apache.jackrabbit.spi.Name childName, int permissions) throws javax.jcr.RepositoryException
isGranted
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.RepositoryException
public void checkPermission(org.apache.jackrabbit.spi.Path arg0, int arg1) throws javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
checkPermission
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
Copyright © 2016. All rights reserved.