public class JCRAccessManager extends Object implements org.gcube.common.homelibrary.home.workspace.accessmanager.AccessManager
| Modifier and Type | Field and Description |
|---|---|
static String |
JUST_OWNER |
static String |
url |
| Constructor and Description |
|---|
JCRAccessManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteAces(String resourcePath,
List<String> users) |
Map<String,List<String>> |
getACL(String absPath) |
Map<String,List<String>> |
getDeniedMap(String absPath)
Returns the mapping of declared access rights that have been set for the resource at
the given path.
|
Map<String,List<String>> |
getEACL(String absPath) |
boolean |
modifyAce(List<String> users,
String absPath,
List<String> privilegesList,
String order) |
boolean |
setAccessDenied(List<String> users,
String absPath)
Set access denied to user in list
|
boolean |
setAdminACL(List<String> users,
String absPath) |
boolean |
setReadOnlyACL(List<String> users,
String absPath) |
boolean |
setWriteAllACL(List<String> users,
String absPath) |
boolean |
setWriteOwnerACL(List<String> users,
String absPath) |
public static final String JUST_OWNER
public static String url
public Map<String,List<String>> getACL(String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean modifyAce(List<String> users, String absPath, List<String> privilegesList, String order) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic Map<String,List<String>> getEACL(String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getEACL in interface org.gcube.common.homelibrary.home.workspace.accessmanager.AccessManagerorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean setReadOnlyACL(List<String> users, String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
setReadOnlyACL in interface org.gcube.common.homelibrary.home.workspace.accessmanager.AccessManagerorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean setWriteOwnerACL(List<String> users, String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
setWriteOwnerACL in interface org.gcube.common.homelibrary.home.workspace.accessmanager.AccessManagerorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean setWriteAllACL(List<String> users, String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
setWriteAllACL in interface org.gcube.common.homelibrary.home.workspace.accessmanager.AccessManagerorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean setAccessDenied(List<String> users, String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
users - absPath - org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean setAdminACL(List<String> users, String absPath) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
setAdminACL in interface org.gcube.common.homelibrary.home.workspace.accessmanager.AccessManagerorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean deleteAces(String resourcePath, List<String> users) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
deleteAces in interface org.gcube.common.homelibrary.home.workspace.accessmanager.AccessManagerorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic Map<String,List<String>> getDeniedMap(String absPath) throws javax.jcr.RepositoryException, org.gcube.common.homelibrary.home.exceptions.InternalErrorException
session - the current user session.absPath - the path of the resource to get the access rights forjavax.jcr.RepositoryExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionCopyright © 2016. All Rights Reserved.