Class GroupRoleEndpoint

java.lang.Object
org.opencastproject.userdirectory.endpoint.GroupRoleEndpoint

@Path("/groups") public class GroupRoleEndpoint extends Object
A REST EndPoint for JpaGroupRoleProvider.
  • Constructor Details

    • GroupRoleEndpoint

      public GroupRoleEndpoint()
  • Method Details

    • setJpaGroupRoleProvider

      public void setJpaGroupRoleProvider(JpaGroupRoleProvider jpaGroupRoleProvider)
      Parameters:
      jpaGroupRoleProvider - the jpaGroupRoleProvider to set
    • activate

      public void activate()
      Callback for activation of this component.
    • getGroupsAsJsonOrXml

      @GET @Produces({"text/xml","application/json"}) @Path("groups.{format:xml|json}") public javax.ws.rs.core.Response getGroupsAsJsonOrXml(@PathParam("format") String format, @QueryParam("limit") int limit, @QueryParam("offset") int offset)
    • removeGroup

      @DELETE @Path("{id}") public javax.ws.rs.core.Response removeGroup(@PathParam("id") String groupId)
    • 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