Class StatisticsEndpoint
java.lang.Object
org.opencastproject.external.endpoint.StatisticsEndpoint
@Path("/api/statistics")
@Produces({"application/json","application/v1.3.0+json","application/v1.4.0+json","application/v1.5.0+json","application/v1.6.0+json","application/v1.7.0+json","application/v1.8.0+json","application/v1.9.0+json","application/v1.10.0+json","application/v1.11.0+json"})
public class StatisticsEndpoint
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetProvider(String acceptHeader, String id, Boolean withParameters) javax.ws.rs.core.ResponsegetProviders(String acceptHeader, String filter, Boolean withParameters) javax.ws.rs.core.ResponsegetStatistics(String acceptHeader, String data) voidsetElasticsearchIndex(org.opencastproject.elasticsearch.index.ElasticsearchIndex elasticsearchIndex) voidsetIndexService(org.opencastproject.index.service.api.IndexService indexService) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) voidsetStatisticsExportService(org.opencastproject.statistics.export.api.StatisticsExportService statisticsExportService) voidsetStatisticsService(org.opencastproject.statistics.api.StatisticsService statisticsService)
-
Constructor Details
-
StatisticsEndpoint
public StatisticsEndpoint()
-
-
Method Details
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) -
setIndexService
public void setIndexService(org.opencastproject.index.service.api.IndexService indexService) -
setElasticsearchIndex
public void setElasticsearchIndex(org.opencastproject.elasticsearch.index.ElasticsearchIndex elasticsearchIndex) -
setStatisticsService
public void setStatisticsService(org.opencastproject.statistics.api.StatisticsService statisticsService) -
setStatisticsExportService
public void setStatisticsExportService(org.opencastproject.statistics.export.api.StatisticsExportService statisticsExportService) -
getProviders
-
getProvider
-
getStatistics
-
getExportCSV
@POST @Produces({"application/json","application/v1.4.0+json","application/v1.5.0+json","application/v1.6.0+json","application/v1.7.0+json","application/v1.8.0+json","application/v1.9.0+json"}) @Path("data/export.csv") public javax.ws.rs.core.Response getExportCSV(@HeaderParam("Accept") String acceptHeader, @FormParam("data") String data, @FormParam("limit") Integer limit, @FormParam("offset") Integer offset, @FormParam("filter") String filter) throws org.opencastproject.util.NotFoundException, org.opencastproject.elasticsearch.api.SearchIndexException, org.opencastproject.security.api.UnauthorizedException - Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.elasticsearch.api.SearchIndexExceptionorg.opencastproject.security.api.UnauthorizedException
-