Class OaiPmhPublicationRestService
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.publication.oaipmh.endpoint.OaiPmhPublicationRestService
@Path("/publication/oaipmh")
public class OaiPmhPublicationRestService
extends org.opencastproject.rest.AbstractJobProducerEndpoint
Rest endpoint for publishing media to the OAI-PMH publication channel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.publication.api.OaiPmhPublicationServiceThe OAI-PMH publication serviceprotected org.opencastproject.serviceregistry.api.ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryjavax.ws.rs.core.Responsepublish(String mediaPackageXml, String channel, String downloadElementIds, String streamingElementIds, boolean checkAvailability) javax.ws.rs.core.Responsereplace(String mediaPackageXml, String channel, String downloadElementsXml, String streamingElementsXml, String retractDownloadFlavorsString, String retractStreamingFlavorsString, String publicationsXml, boolean checkAvailability) javax.ws.rs.core.ResponsereplaceSync(String mediaPackageXml, String channel, String downloadElementsXml, String streamingElementsXml, String retractDownloadFlavorsString, String retractStreamingFlavorsString, String publicationsXml, boolean checkAvailability) javax.ws.rs.core.ResponsevoidsetService(org.opencastproject.publication.api.OaiPmhPublicationService service) protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.javax.ws.rs.core.ResponseupdateMetadata(String mediaPackageXml, String channel, String flavors, String tags, boolean checkAvailability) Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
service
protected org.opencastproject.publication.api.OaiPmhPublicationService serviceThe OAI-PMH publication service -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe service registry
-
-
Constructor Details
-
OaiPmhPublicationRestService
public OaiPmhPublicationRestService()
-
-
Method Details
-
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setService
public void setService(org.opencastproject.publication.api.OaiPmhPublicationService service) - Parameters:
service- the service to set
-
publish
@POST @Path("/") @Produces("text/xml") public javax.ws.rs.core.Response publish(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channel") String channel, @FormParam("downloadElementIds") String downloadElementIds, @FormParam("streamingElementIds") String streamingElementIds, @FormParam("checkAvailability") @DefaultValue("true") boolean checkAvailability) throws Exception - Throws:
Exception
-
replace
@POST @Path("/replace") @Produces("text/xml") public javax.ws.rs.core.Response replace(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channel") String channel, @FormParam("downloadElements") String downloadElementsXml, @FormParam("streamingElements") String streamingElementsXml, @FormParam("retractDownloadFlavors") String retractDownloadFlavorsString, @FormParam("retractStreamingFlavors") String retractStreamingFlavorsString, @FormParam("publications") String publicationsXml, @FormParam("checkAvailability") @DefaultValue("true") boolean checkAvailability) -
replaceSync
@POST @Path("/replacesync") @Produces("text/xml") public javax.ws.rs.core.Response replaceSync(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channel") String channel, @FormParam("downloadElements") String downloadElementsXml, @FormParam("streamingElements") String streamingElementsXml, @FormParam("retractDownloadFlavors") String retractDownloadFlavorsString, @FormParam("retractStreamingFlavors") String retractStreamingFlavorsString, @FormParam("publications") String publicationsXml, @FormParam("checkAvailability") @DefaultValue("true") boolean checkAvailability) throws org.opencastproject.mediapackage.MediaPackageException - Throws:
org.opencastproject.mediapackage.MediaPackageException
-
retract
@POST @Path("/retract") @Produces("text/xml") public javax.ws.rs.core.Response retract(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channel") String channel) throws Exception - Throws:
Exception
-
updateMetadata
@POST @Path("/updateMetadata") @Produces("text/xml") public javax.ws.rs.core.Response updateMetadata(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channel") String channel, @FormParam("flavors") String flavors, @FormParam("tags") String tags, @FormParam("checkAvailability") @DefaultValue("true") boolean checkAvailability) throws Exception - Throws:
Exception
-
getService
public org.opencastproject.job.api.JobProducer getService()- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
-
getServiceRegistry
public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
-