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(org.opencastproject.userdirectory.JpaGroupRoleProvider jpaGroupRoleProvider) OSGi callback for the group provider.voidsetIndexService(org.opencastproject.index.service.api.IndexService indexService) OSGi callback for the index service.voidsetSearchIndex(org.opencastproject.elasticsearch.index.ElasticsearchIndex searchIndex) OSGi callback for the search index.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback for the security service.voidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) OSGi callback for users services.javax.ws.rs.core.Response
-
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
-
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
-