Class TobiraEndpoint

java.lang.Object
org.opencastproject.tobira.impl.TobiraEndpoint

@Path("/tobira") public class TobiraEndpoint extends Object
Tobira API Endpoint
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opencastproject.db.DBSession
     
    protected org.opencastproject.db.DBSessionFactory
     
    protected javax.persistence.EntityManagerFactory
    The factory used to generate the entity manager
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    acceptStats(javax.servlet.http.HttpServletRequest request)
     
    void
    activate(org.osgi.framework.BundleContext bundleContext)
     
    javax.ws.rs.core.Response
     
    javax.ws.rs.core.Response
    harvest(Integer preferredAmount, Long since)
     
    void
    setAuthorizationService(org.opencastproject.security.api.AuthorizationService service)
     
    void
    setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory)
     
    void
    setPlaylistService(org.opencastproject.playlists.PlaylistService service)
     
    void
    setSearchService(org.opencastproject.search.api.SearchService service)
     
    void
    setSecurityService(org.opencastproject.security.api.SecurityService service)
     
    void
    setSeriesService(org.opencastproject.series.api.SeriesService service)
     
    void
    setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
     
    javax.ws.rs.core.Response
     

    Methods inherited from class java.lang.Object

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

    • emf

      protected javax.persistence.EntityManagerFactory emf
      The factory used to generate the entity manager
    • dbSessionFactory

      protected org.opencastproject.db.DBSessionFactory dbSessionFactory
    • db

      protected org.opencastproject.db.DBSession db
  • Constructor Details

    • TobiraEndpoint

      public TobiraEndpoint()
  • Method Details

    • activate

      public void activate(org.osgi.framework.BundleContext bundleContext)
    • setDBSessionFactory

      public void setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory)
    • setSearchService

      public void setSearchService(org.opencastproject.search.api.SearchService service)
    • setSeriesService

      public void setSeriesService(org.opencastproject.series.api.SeriesService service)
    • setAuthorizationService

      public void setAuthorizationService(org.opencastproject.security.api.AuthorizationService service)
    • setSecurityService

      public void setSecurityService(org.opencastproject.security.api.SecurityService service)
    • setPlaylistService

      public void setPlaylistService(org.opencastproject.playlists.PlaylistService service)
    • setWorkspace

      public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
    • version

      @GET @Path("/version") @Produces("application/json") public javax.ws.rs.core.Response version()
    • harvest

      @GET @Path("/harvest") @Produces("application/json") public javax.ws.rs.core.Response harvest(@QueryParam("preferredAmount") Integer preferredAmount, @QueryParam("since") Long since)
    • acceptStats

      @POST @Path("/stats") @Consumes("application/json") public javax.ws.rs.core.Response acceptStats(@Context javax.servlet.http.HttpServletRequest request)
    • getCachedStats

      @GET @Path("/stats") @Produces("application/json") public javax.ws.rs.core.Response getCachedStats()