java.lang.Object
org.opencastproject.elasticsearch.index.endpoint.IndexEndpoint

@Path("/index") public class IndexEndpoint extends Object
The index endpoint allows the management of the elasticsearch index.
  • Field Details

    • securityService

      protected org.opencastproject.security.api.SecurityService securityService
      The security service
  • Constructor Details

    • IndexEndpoint

      public IndexEndpoint()
  • Method Details

    • setElasticsearchIndex

      public void setElasticsearchIndex(ElasticsearchIndex elasticsearchIndex)
    • setIndexRebuildService

      public void setIndexRebuildService(IndexRebuildService indexRebuildService)
    • setSecurityService

      public void setSecurityService(org.opencastproject.security.api.SecurityService securityService)
    • activate

      public void activate()
    • clearIndex

      @POST @Path("clear") public javax.ws.rs.core.Response clearIndex()
    • partiallyRebuildIndex

      @POST @Path("rebuild/{service}") public javax.ws.rs.core.Response partiallyRebuildIndex(@PathParam("service") String serviceStr)
    • partiallyRebuildIndexByType

      @POST @Path("rebuild/{service}/{type}") public javax.ws.rs.core.Response partiallyRebuildIndexByType(@PathParam("service") String serviceStr, @PathParam("type") String dataTypeStr)
    • rebuildIndex

      @POST @Path("rebuild") public javax.ws.rs.core.Response rebuildIndex()
    • resumeIndexRebuild

      @POST @Path("resume/{service}") public javax.ws.rs.core.Response resumeIndexRebuild(@PathParam("service") String serviceStr)
    • getRebuildStates

      @GET @Path("rebuild/states.json") @Produces("application/json") public javax.ws.rs.core.Response getRebuildStates()