|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.portals.graffito.jcr.security.SimpleAccessManager
public class SimpleAccessManager
SimpleAccessManager
...
Field Summary | |
---|---|
protected boolean |
anonymous
|
protected org.apache.jackrabbit.core.HierarchyManager |
hierMgr
hierarchy manager used for ACL-based access control model |
protected javax.security.auth.Subject |
subject
Subject whose access rights this AccessManager should reflect |
protected boolean |
system
|
Fields inherited from interface org.apache.jackrabbit.core.security.AccessManager |
---|
READ, REMOVE, WRITE |
Constructor Summary | |
---|---|
SimpleAccessManager()
Empty constructor |
Method Summary | |
---|---|
boolean |
canAccess(java.lang.String workspaceName)
|
void |
checkPermission(org.apache.jackrabbit.core.ItemId id,
int permissions)
|
void |
close()
|
void |
init(org.apache.jackrabbit.core.security.AMContext context)
|
boolean |
isGranted(org.apache.jackrabbit.core.ItemId id,
int permissions)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.security.auth.Subject subject
protected org.apache.jackrabbit.core.HierarchyManager hierMgr
protected boolean system
protected boolean anonymous
Constructor Detail |
---|
public SimpleAccessManager()
Method Detail |
---|
public void init(org.apache.jackrabbit.core.security.AMContext context) throws javax.jcr.AccessDeniedException, java.lang.Exception
init
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.AccessDeniedException
java.lang.Exception
public void close() throws java.lang.Exception
close
in interface org.apache.jackrabbit.core.security.AccessManager
java.lang.Exception
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 canAccess(java.lang.String workspaceName) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.RepositoryException
canAccess
in interface org.apache.jackrabbit.core.security.AccessManager
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |