Class GroupsEndpoint

java.lang.Object
org.opencastproject.adminui.endpoint.GroupsEndpoint

@Path("/admin-ng/groups") public class GroupsEndpoint extends Object
  • Constructor Details

    • GroupsEndpoint

      public GroupsEndpoint()
  • Method Details

    • setSecurityService

      public void setSecurityService(org.opencastproject.security.api.SecurityService securityService)
      OSGi callback for the security service.
    • setIndexService

      public void setIndexService(org.opencastproject.index.service.api.IndexService indexService)
      OSGi callback for the index service.
    • setUserDirectoryService

      public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService)
      OSGi callback for users services.
    • setSearchIndex

      public void setSearchIndex(org.opencastproject.elasticsearch.index.ElasticsearchIndex searchIndex)
      OSGi callback for the search index.
    • setGroupRoleProvider

      public void setGroupRoleProvider(org.opencastproject.userdirectory.JpaGroupRoleProvider jpaGroupRoleProvider)
      OSGi callback for the group provider.
    • activate

      protected void activate(org.osgi.service.component.ComponentContext cc)
      OSGi callback.
    • getGroups

      @GET @Produces("application/json") @Path("groups.json") public javax.ws.rs.core.Response getGroups(@QueryParam("filter") String filter, @QueryParam("sort") String sort, @QueryParam("offset") Integer offset, @QueryParam("limit") Integer limit) throws IOException
      Throws:
      IOException
    • removeGroup

      @DELETE @Path("{id}") public javax.ws.rs.core.Response removeGroup(@PathParam("id") String groupId) throws org.opencastproject.util.NotFoundException
      Throws:
      org.opencastproject.util.NotFoundException
    • createGroup

      @POST @Path("") public javax.ws.rs.core.Response createGroup(@FormParam("name") String name, @FormParam("description") String description, @FormParam("roles") String roles, @FormParam("users") String users)
    • updateGroup

      @PUT @Path("{id}") public javax.ws.rs.core.Response updateGroup(@PathParam("id") String groupId, @FormParam("name") String name, @FormParam("description") String description, @FormParam("roles") String roles, @FormParam("users") String users) throws org.opencastproject.util.NotFoundException
      Throws:
      org.opencastproject.util.NotFoundException
    • getGroup

      @GET @Produces("application/json") @Path("{id}") public javax.ws.rs.core.Response getGroup(@PathParam("id") String groupId) throws org.opencastproject.util.NotFoundException
      Throws:
      org.opencastproject.util.NotFoundException