Class SearchRestService
- java.lang.Object
-
- org.opencastproject.rest.AbstractJobProducerEndpoint
-
- org.opencastproject.search.endpoint.SearchRestService
-
@Path("/") public class SearchRestService extends org.opencastproject.rest.AbstractJobProducerEndpointThe REST endpoint
-
-
Field Summary
Fields Modifier and Type Field Description protected SearchServiceIndexsearchIndexThe connector to the actual indexprotected SearchServiceImplsearchServiceThe search service which talks to the database.
-
Constructor Summary
Constructors Constructor Description SearchRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetEpisodes(String id, String text, String seriesId, String seriesName, String sort, String limit, String offset, String sign)javax.ws.rs.core.ResponsegetSeries(String id, String text, String sort, String limit, String offset)org.opencastproject.job.api.JobProducergetService()org.opencastproject.serviceregistry.api.ServiceRegistrygetServiceRegistry()voidsetSearchIndex(SearchServiceIndex searchIndex)voidsetSearchService(SearchServiceImpl searchService)Callback from OSGi to set the search service implementation.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService)voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
-
-
-
Field Detail
-
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
-
-
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:
getServicein classorg.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:
getServiceRegistryin classorg.opencastproject.rest.AbstractJobProducerEndpoint
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService)
-
-