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 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.Responseorg.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryjavax.ws.rs.core.ResponseindexUpdate(String id) 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) 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 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
-
getService
public org.opencastproject.job.api.JobProducer getService()- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
-
setSearchService
Callback from OSGi to set the search service implementation.- Parameters:
searchService- the service implementation
-
setSearchIndex
-
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)
-