Class ContentViewerRESTService
java.lang.Object
org.exoplatform.wcm.ext.component.document.service.rest.ContentViewerRESTService
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class ContentViewerRESTService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Constructor Summary
ConstructorsConstructorDescriptionContentViewerRESTService(org.exoplatform.web.WebAppController webAppController, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.cms.link.LinkManager linkManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String repoName, String workspaceName, String uuid) Returns a pdf file for a PDF document.getTemplate(javax.jcr.Node contentNode) voidprocessRender(String template, org.exoplatform.webui.core.UIComponent uiComponent, Writer writer)
-
Constructor Details
-
Method Details
-
getContent
public javax.ws.rs.core.Response getContent(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, String repoName, String workspaceName, String uuid) throws Exception Returns a pdf file for a PDF document.- Parameters:
repoName- The repository name.workspaceName- The workspace name.uuid- The identifier of the document.- Returns:
- Response inputstream.
- Throws:
Exception- The exception- eXo anchor for generated doc on REST API
- PDFViewerRESTService.getPDFFile
-
getTemplate
-
processRender
public void processRender(String template, org.exoplatform.webui.core.UIComponent uiComponent, Writer writer) throws Exception - Throws:
Exception
-