@Path(value="groups") public class GroupManager extends Object
| Constructor and Description |
|---|
GroupManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUserToGroup(String groupId,
String userId) |
String |
createGroup(String group,
org.gcube.common.storagehub.model.acls.AccessType accessType) |
String |
deleteGroup(String group) |
List<String> |
getGroups() |
List<String> |
getUsersOfGroup(String groupId) |
boolean |
removeUserFromGroup(String groupId,
String userId) |
@POST @Path(value="") @Consumes(value="application/x-www-form-urlencoded") public String createGroup(@FormParam(value="group") String group, @FormParam(value="accessType") org.gcube.common.storagehub.model.acls.AccessType accessType)
@DELETE
@Path(value="{group}")
public String deleteGroup(@PathParam(value="group")
String group)
@PUT
@Path(value="{id}")
@Consumes(value="application/x-www-form-urlencoded")
public boolean addUserToGroup(@PathParam(value="id")
String groupId,
@FormParam(value="userId")
String userId)
@DELETE
@Path(value="{groupId}/users/{userId}")
public boolean removeUserFromGroup(@PathParam(value="groupId")
String groupId,
@PathParam(value="userId")
String userId)
Copyright © 2019. All Rights Reserved.