Class GroupRoleEndpoint
java.lang.Object
org.opencastproject.userdirectory.endpoint.GroupRoleEndpoint
A REST EndPoint for JpaGroupRoleProvider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Callback for activation of this component.javax.ws.rs.core.ResponsecreateGroup(String name, String description, String roles, String users) javax.ws.rs.core.ResponsegetGroupsAsJsonOrXml(String format, int limit, int offset) javax.ws.rs.core.ResponseremoveGroup(String groupId) voidsetJpaGroupRoleProvider(JpaGroupRoleProvider jpaGroupRoleProvider) javax.ws.rs.core.Response
-
Constructor Details
-
GroupRoleEndpoint
public GroupRoleEndpoint()
-
-
Method Details
-
setJpaGroupRoleProvider
- 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
-
createGroup
-
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 NotFoundException - Throws:
NotFoundException
-