Class EmbedMediaViewerResource

    • Constructor Detail

      • EmbedMediaViewerResource

        public EmbedMediaViewerResource()
    • Method Detail

      • getPdfEmbedViewer

        @GET
        @Path("pdf")
        public org.jboss.resteasy.plugins.providers.html.View getPdfEmbedViewer​(@QueryParam("documentId")
                                                                                String documentId,
                                                                                @QueryParam("documentType")
                                                                                String documentType,
                                                                                @QueryParam("language")
                                                                                String language)
        Gets a view on the content with the embed pdf viewer.
        Returns:
        a descriptor of the renderer to use to view the document.
      • getPdfContent

        @GET
        @Path("pdf/content")
        public javax.ws.rs.core.Response getPdfContent​(@QueryParam("documentId")
                                                       String documentId,
                                                       @QueryParam("documentType")
                                                       String documentType,
                                                       @QueryParam("language")
                                                       String language)
        Gets the content of the pdf. The player URI MUST have be accessed before accessing this one.
      • getFlowPaperEmbedViewer

        @GET
        @Path("fp")
        public org.jboss.resteasy.plugins.providers.html.View getFlowPaperEmbedViewer​(@QueryParam("documentId")
                                                                                      String documentId,
                                                                                      @QueryParam("documentType")
                                                                                      String documentType,
                                                                                      @QueryParam("language")
                                                                                      String language)
        Gets a view on the content with the embed flowpaper viewer.
        Returns:
        a descriptor of the renderer to use to view the document.
      • getFlowPaperContent

        @GET
        @Path("fp/content/{documentId}/{language}/{page}")
        public javax.ws.rs.core.Response getFlowPaperContent​(@PathParam("documentId")
                                                             String documentId,
                                                             @QueryParam("documentType")
                                                             String documentType,
                                                             @PathParam("language")
                                                             String language,
                                                             @PathParam("page")
                                                             String page)
        Gets the content of the swf. The player URI MUST have be accessed before accessing this one.
      • getComponentId

        public String getComponentId()
        Description copied from interface: SilverpeasWebResource
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.