Class GroupsEndpoint
java.lang.Object
org.opencastproject.adminui.endpoint.GroupsEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback.javax.ws.rs.core.ResponsecreateGroup(String name, String description, String roles, String users) javax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponseremoveGroup(String groupId) voidsetGroupRoleProvider(JpaGroupRoleProvider jpaGroupRoleProvider) OSGi callback for the group provider.voidsetIndexService(IndexService indexService) OSGi callback for the index service.voidsetSearchIndex(ElasticsearchIndex searchIndex) OSGi callback for the search index.voidsetSecurityService(SecurityService securityService) OSGi callback for the security service.voidsetUserDirectoryService(UserDirectoryService userDirectoryService) OSGi callback for users services.javax.ws.rs.core.Response
-
Constructor Details
-
GroupsEndpoint
public GroupsEndpoint()
-
-
Method Details
-
setSecurityService
OSGi callback for the security service. -
setIndexService
OSGi callback for the index service. -
setUserDirectoryService
OSGi callback for users services. -
setSearchIndex
OSGi callback for the search index. -
setGroupRoleProvider
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 NotFoundException - Throws:
NotFoundException
-
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
-
getGroup
@GET @Produces("application/json") @Path("{id}") public javax.ws.rs.core.Response getGroup(@PathParam("id") String groupId) throws NotFoundException - Throws:
NotFoundException
-