public class ComponentPresentationAssembler extends Object
ComponentPresentationAssembler
allows you to assemble
Dynamic Component Presentations on JSP Pages.
JSP Dynamic Component Presentations are executed and an empty string
is returned. In the case of XSLT, the XSLTProcessor
is
invoked and the result is returned.Constructor and Description |
---|
ComponentPresentationAssembler(int publicationId) |
ComponentPresentationAssembler(JSPPage page)
Creates a new instance.
|
ComponentPresentationAssembler(String itemURI) |
ComponentPresentationAssembler(String publicationURI,
javax.servlet.ServletContext servletContext,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getContent(int componentId,
int componentTemplateId)
Returns the content of a Dynamic Component Presentation.
|
String |
getContent(int componentId,
int componentTemplateId,
Map<String,String> renderParameters)
Returns the content of a Dynamic Component Presentation.
|
String |
getContent(String componentURI,
String componentTemplateURI)
Returns the content of a Dynamic Component Presentation.
|
String |
getContent(String componentURI,
String componentTemplateURI,
Map<String,String> renderingParameters)
Returns the content of a Dynamic Component Presentation.
|
public ComponentPresentationAssembler(int publicationId)
public ComponentPresentationAssembler(String itemURI)
public ComponentPresentationAssembler(JSPPage page)
page
- A JSPPage instance which is needed to identify
the publication and to execute JSP Component Presentations.public ComponentPresentationAssembler(String publicationURI, javax.servlet.ServletContext servletContext, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
publicationURI
- The publication URI identifying the broker repository.servletContext
- The Servlet's ServletContext.request
- The Servlet' ServletRequest.response
- The Servlet' ServletResponse.public String getContent(int componentId, int componentTemplateId)
componentId
- The componentId of the Dynamic Component Presentation.componentTemplateId
- The templateId of the Dynamic Component Presentation.public String getContent(int componentId, int componentTemplateId, Map<String,String> renderParameters)
componentId
- The componentId of the Dynamic Component Presentation.componentTemplateId
- The templateId of the Dynamic Component Presentation.public String getContent(String componentURI, String componentTemplateURI, Map<String,String> renderingParameters)
componentURI
- The component tcm:uri of the Dynamic Component Presentation.componentTemplateURI
- The template tcm:uri of the Dynamic Component Presentation.public String getContent(String componentURI, String componentTemplateURI)
componentURI
- The component tcm:uri of the Dynamic Component Presentation.componentTemplateURI
- The template tcm:uri of the Dynamic Component Presentation.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries