|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.metacat.PermissionController
Constructor Summary | |
PermissionController(java.lang.String myDocid)
Constructor for PermissionController |
|
PermissionController(java.lang.String myDocid,
boolean needDeleteRevFromDocid)
Constructor for PermssionController |
Method Summary | |
static java.util.Hashtable |
getUnReadableInlineDataIdList(java.lang.String docidWithoutRev,
java.lang.String user,
java.lang.String[] groups,
boolean withRevision)
A static method to get Hashtable which cointains a inlinedata object list that user can't read it. |
static java.util.Hashtable |
getUnWritableInlineDataIdList(java.lang.String docidWithoutRev,
java.lang.String user,
java.lang.String[] groups,
boolean withRevision)
A static method to get Hashtable which cointains a inline data object list that user can't overwrite it. |
boolean |
hasPermission(java.lang.String user,
java.lang.String[] groups,
java.lang.String myPermission)
Check from db connection if at least one of the list of @principals |
boolean |
hasPermissionForSubTreeNode(java.lang.String user,
java.lang.String[] groups,
java.lang.String myPermission,
long nodeId)
The method to determine of a node can be access by a user just by subtree access control |
boolean |
hasSubTreeAccessControl()
Return if a document has subtree access control |
java.util.Hashtable |
hasUnaccessableSubTree(java.lang.String user,
java.lang.String[] groups,
java.lang.String myPermission)
This method will return a hasTable of subtree which user doesn't has the permssion to access |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PermissionController(java.lang.String myDocid) throws McdbException
myDocid
- the docid need to accesspublic PermissionController(java.lang.String myDocid, boolean needDeleteRevFromDocid)
myDocid
- StringMethod Detail |
public boolean hasSubTreeAccessControl()
public boolean hasPermission(java.lang.String user, java.lang.String[] groups, java.lang.String myPermission) throws java.sql.SQLException, java.lang.Exception
user
- the user namegroups
- the groups which the use is inmyPermission
- permission type to check for
java.sql.SQLException
java.lang.Exception
public boolean hasPermissionForSubTreeNode(java.lang.String user, java.lang.String[] groups, java.lang.String myPermission, long nodeId) throws McdbException
McdbException
public java.util.Hashtable hasUnaccessableSubTree(java.lang.String user, java.lang.String[] groups, java.lang.String myPermission) throws McdbException
user
- the user namegroups
- the groups which the use is inmyPermission
- permission type to check for
McdbException
public static java.util.Hashtable getUnReadableInlineDataIdList(java.lang.String docidWithoutRev, java.lang.String user, java.lang.String[] groups, boolean withRevision) throws java.lang.Exception
user
- , the name of user
java.lang.Exception
public static java.util.Hashtable getUnWritableInlineDataIdList(java.lang.String docidWithoutRev, java.lang.String user, java.lang.String[] groups, boolean withRevision) throws java.lang.Exception
user
- , the name of user
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |