@Path(value="items") public class ACLManager extends Object
| Constructor and Description |
|---|
ACLManager() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
canWriteInto() |
org.gcube.common.storagehub.model.types.ACLList |
getACL()
returns the AccessType for all the users in a shared folder
|
void |
removeACL(String user)
remove right for a user only on Shared folder
|
void |
setACL(String user,
org.gcube.common.storagehub.model.acls.AccessType accessType)
Set a new AccessType for a user in a shared folder or VRE folder
|
@GET
@Path(value="{id}/acls")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.types.ACLList getACL()
{@link - RepositoryException} when a generic jcr error occurs{@link - UserNotAuthorizedException} when the caller is not authorized to access to the shared folder@PUT
@Consumes(value="multipart/form-data")
@Path(value="{id}/acls")
public void setACL(String user,
org.gcube.common.storagehub.model.acls.AccessType accessType)
String - useraccessType - accessType{@link - RepositoryException} when a generic jcr error occurs{@link - UserNotAuthorizedException} when the caller is not ADMINISTRATOR of the shared folder{@link - InvalidCallParameters} when the folder is not shared with the specified user{@link - InvalidItemException} when the folder is not share@DELETE
@Consumes(value="text/plain")
@Path(value="{id}/acls/{user}")
public void removeACL(@PathParam(value="user")
String user)
String - user{@link - RepositoryException} when a generic jcr error occurs{@link - UserNotAuthorizedException} when the caller is not ADMINISTRATOR of the shared folder{@link - InvalidCallParameters} when the folder is not shared with the specified user{@link - InvalidItemException} when the folder is not share@GET
@Path(value="{id}/acls/write")
public Boolean canWriteInto()
Copyright © 2020. All Rights Reserved.