public class JCRPrivilegesInfo extends Object
| Constructor and Description |
|---|
JCRPrivilegesInfo() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canAddChildren(String owner,
String currentUser,
String id)
Checks whether the current user has been granted privileges
to add children to the specified path.
|
static boolean |
canDelete(String owner,
String currentUser,
String id,
boolean root)
Checks whether the current user has been granted privileges
to delete the specified path.
|
static boolean |
canDeleteChildren(String user,
String id)
Checks whether the current user has been granted privileges
to delete children of the specified path.
|
static boolean |
canModifyProperties(String owner,
String currentUser,
String id,
boolean root)
Checks whether the current user has been granted privileges
to modify properties of the specified path.
|
static boolean |
canReadNode(String owner,
String currentUser,
String absPath) |
static org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType |
getACLByUser(String user,
String absPath)
Get ACL by username
|
public static boolean canAddChildren(String owner, String currentUser, String id) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
owner - currentUser - absPath - org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static boolean canDeleteChildren(String user, String id) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
user - absPath - org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static boolean canDelete(String owner, String currentUser, String id, boolean root) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
owner - currentUser - absPath - root - org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static boolean canModifyProperties(String owner, String currentUser, String id, boolean root) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
owner - currentUser - absPath - root - org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic static org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType getACLByUser(String user, String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
user - absPath - org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionCopyright © 2018. All Rights Reserved.