Class GroupManager


  • @Path("groups")
    public class GroupManager
    extends Object
    • Constructor Detail

      • GroupManager

        public GroupManager()
    • Method Detail

      • getGroups

        @GET
        @Path("")
        @Produces("application/json")
        public List<String> getGroups()
      • createGroup

        @POST
        @Path("")
        @Consumes("multipart/form-data")
        public String createGroup​(String group,
                                  org.gcube.common.storagehub.model.acls.AccessType accessType,
                                  String folderOwner)
      • deleteGroup

        @DELETE
        @Path("{group}")
        public String deleteGroup​(@PathParam("group")
                                  String group)
      • isInfraManager

        public boolean isInfraManager()
      • isVREManager

        public boolean isVREManager()
      • addAdmin

        @PUT
        @Path("{id}/admins")
        @Consumes("application/x-www-form-urlencoded")
        public void addAdmin​(@PathParam("id")
                             String groupId,
                             @FormParam("userId")
                             String userId)
      • removeAdmin

        @DELETE
        @Path("{id}/admins/{userId}")
        @Consumes("application/x-www-form-urlencoded")
        public void removeAdmin​(@PathParam("id")
                                String groupId,
                                @PathParam("userId")
                                String userId)
      • getAdmins

        @GET
        @Path("{groupId}/admins")
        @Produces("application/json")
        public List<String> getAdmins​(@PathParam("groupId")
                                      String groupId)
      • addUserToGroup

        @PUT
        @Path("{id}/users")
        @Consumes("application/x-www-form-urlencoded")
        public boolean addUserToGroup​(@PathParam("id")
                                      String groupId,
                                      @FormParam("userId")
                                      String userId)
      • removeUserFromGroup

        @DELETE
        @Path("{groupId}/users/{userId}")
        public boolean removeUserFromGroup​(@PathParam("groupId")
                                           String groupId,
                                           @PathParam("userId")
                                           String userId)
      • getUsersOfGroup

        @GET
        @Path("{groupId}/users")
        @Produces("application/json")
        public List<String> getUsersOfGroup​(@PathParam("groupId")
                                            String groupId)