Class SearchRestService
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.search.endpoint.SearchRestService
The REST endpoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SearchServiceIndexThe connector to the actual indexprotected SearchServiceImplThe search service which talks to the database. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetEpisodes(String id, String text, String seriesId, String seriesName, String sort, String limit, String offset, String sign, Boolean live) javax.ws.rs.core.ResponseReturns the job producer that is backing this REST endpoint.Return the service registry.javax.ws.rs.core.ResponseindexUpdate(String id) voidsetSearchIndex(SearchServiceIndex searchIndex) voidsetSearchService(SearchServiceImpl searchService) Callback from OSGi to set the search service implementation.voidsetSecurityService(SecurityService securityService) voidsetServiceRegistry(ServiceRegistry serviceRegistry) Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
searchService
The search service which talks to the database. Only needed for the JobProducer bits. -
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 SearchException - Throws:
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 SearchException - Throws:
SearchException
-
indexUpdate
-
getService
Description copied from class:AbstractJobProducerEndpointReturns the job producer that is backing this REST endpoint.- Specified by:
getServicein classAbstractJobProducerEndpoint- Returns:
- the job producer
- See Also:
-
setSearchService
Callback from OSGi to set the search service implementation.- Parameters:
searchService- the service implementation
-
setSearchIndex
-
setServiceRegistry
-
getServiceRegistry
Description copied from class:AbstractJobProducerEndpointReturn the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducerEndpoint
-
setSecurityService
-