Class SearchRestService

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.search.endpoint.SearchRestService

@Path("/search") public class SearchRestService extends org.opencastproject.rest.AbstractJobProducerEndpoint
The REST endpoint
  • Field Details

    • searchService

      protected SearchServiceImpl searchService
      The search service which talks to the database. Only needed for the JobProducer bits.
    • searchIndex

      protected SearchServiceIndex searchIndex
      The connector to the actual index
  • Constructor Details

    • SearchRestService

      public SearchRestService()
  • Method Details

    • getSeries

      @GET @Path("series.json") @Produces("application/json") public javax.ws.rs.core.Response getSeries(@QueryParam("id") String id, @QueryParam("q") String text, @QueryParam("sort") String sort, @QueryParam("limit") String limit, @QueryParam("offset") String offset) throws org.opencastproject.search.api.SearchException
      Throws:
      org.opencastproject.search.api.SearchException
    • getEpisodes

      @GET @Path("episode.json") @Produces("application/json") public javax.ws.rs.core.Response getEpisodes(@QueryParam("id") String id, @QueryParam("q") String text, @QueryParam("sid") String seriesId, @QueryParam("sname") String seriesName, @QueryParam("sort") String sort, @QueryParam("limit") String limit, @QueryParam("offset") String offset, @QueryParam("sign") String sign, @QueryParam("live") Boolean live) throws org.opencastproject.search.api.SearchException
      Throws:
      org.opencastproject.search.api.SearchException
    • indexUpdate

      @POST @Path("updateIndex") public javax.ws.rs.core.Response indexUpdate(@FormParam("id") String id)
    • getService

      public org.opencastproject.job.api.JobProducer getService()
      Specified by:
      getService in class org.opencastproject.rest.AbstractJobProducerEndpoint
      See Also:
      • AbstractJobProducerEndpoint.getService()
    • setSearchService

      public void setSearchService(SearchServiceImpl searchService)
      Callback from OSGi to set the search service implementation.
      Parameters:
      searchService - the service implementation
    • setSearchIndex

      public void setSearchIndex(SearchServiceIndex searchIndex)
    • setServiceRegistry

      public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
    • getServiceRegistry

      public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
      Specified by:
      getServiceRegistry in class org.opencastproject.rest.AbstractJobProducerEndpoint
    • setSecurityService

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