Class YouTubePublicationRestService

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.publication.youtube.endpoint.YouTubePublicationRestService

@Path("/youtube") public class YouTubePublicationRestService extends org.opencastproject.rest.AbstractJobProducerEndpoint
Rest endpoint for publishing media to youtube.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opencastproject.publication.api.YouTubePublicationService
     
    protected org.opencastproject.serviceregistry.api.ServiceRegistry
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opencastproject.job.api.JobProducer
    org.opencastproject.serviceregistry.api.ServiceRegistry
    javax.ws.rs.core.Response
    publish(String mediaPackageXml, String elementId)
     
    javax.ws.rs.core.Response
    retract(String mediaPackageXml)
     
    protected void
    setService(org.opencastproject.publication.api.YouTubePublicationService service)
    Callback from OSGi to set a reference to the youtube publication service.
    protected void
    setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
    Callback from the OSGi declarative services to set the service registry

    Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint

    checkHeartbeat, dispatchJob

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • service

      protected org.opencastproject.publication.api.YouTubePublicationService service
    • serviceRegistry

      protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry
  • Constructor Details

    • YouTubePublicationRestService

      public YouTubePublicationRestService()
  • Method Details

    • publish

      @POST @Path("/") @Produces("text/xml") public javax.ws.rs.core.Response publish(@FormParam("mediapackage") String mediaPackageXml, @FormParam("elementId") String elementId)
    • retract

      @POST @Path("/retract") @Produces("text/xml") public javax.ws.rs.core.Response retract(@FormParam("mediapackage") String mediaPackageXml)
    • getService

      public org.opencastproject.job.api.JobProducer getService()
      Specified by:
      getService in class org.opencastproject.rest.AbstractJobProducerEndpoint
      See Also:
      • AbstractJobProducerEndpoint.getService()
    • 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
    • getServiceRegistry

      public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
      Specified by:
      getServiceRegistry in class org.opencastproject.rest.AbstractJobProducerEndpoint
      See Also:
      • AbstractJobProducerEndpoint.getServiceRegistry()
    • setService

      protected void setService(org.opencastproject.publication.api.YouTubePublicationService service)
      Callback from OSGi to set a reference to the youtube publication service.
      Parameters:
      service - the service to set