Class SearchRestService


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

      • searchService

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

      • SearchRestService

        public SearchRestService()
    • Method Detail

      • 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)
                                              throws org.opencastproject.search.api.SearchException
        Throws:
        org.opencastproject.search.api.SearchException
      • 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
      • 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)