public interface DynamicComponentLink
DynamicComponentLink validates links to Dynamic Component Presentations on Pages. This can be useful
when it is known that a certain page can assemble Component Presentations but it is not known if both the page and
the Component Presentation are available on the Delivery Server. The receiving page should implement the retrieval of
HTTP-GET-parameters and use them to assemble the ComponentPresentation on the page.
For this the ComponentPresentationAssembler can be used.| Modifier and Type | Method and Description |
|---|---|
Link |
getLink(int targetPageId,
int targetComponentId,
int targetTemplateId,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
This method tries to validate a link to a Dynamic Component Presentation on a Page.
|
Link |
getLink(String targetPageURI,
String targetComponentURI,
String targetTemplateURI,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
This method tries to validate a link to a Dynamic Component Presentation on a Page.
|
String |
getLinkAsString(int targetPageId,
int targetComponentId,
int targetTemplateId,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
This method tries to validate a link to a Dynamic Component Presentation on a Page.
|
String |
getLinkAsString(String targetPageURI,
String targetComponentURI,
String targetTemplateURI,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
This method tries to validate a link to a Dynamic Component Presentation on a Page.
|
Link getLink(int targetPageId, int targetComponentId, int targetTemplateId, String linkTagAttributes, String linkText, boolean showTextOnFail)
Link object.targetPageId - The id of the Page that is able to assemble Dynamic Component Presentations.targetComponentId - The id of the Component of the targetted Dynamic Component Presentation.targetTemplateId - The id of the Component Template of the targetted Dynamic Component Presentation.linkTagAttributes - Any linkTagAttributes that should be added to the link, for instance an
onMouseOver or style attribute.linkText - The that should be placed inside the anchor tags.showTextOnFail - This parameter indicates if a linkText should be returned if the link cannot be resolvednull if there was an error.LinkLink getLink(String targetPageURI, String targetComponentURI, String targetTemplateURI, String linkTagAttributes, String linkText, boolean showTextOnFail)
Link object.targetPageURI - The tcm:uri of the Page that is able to assemble Dynamic Component Presentations.targetComponentURI - The tcm:uri of the Component of the targetted Dynamic Component Presentation.targetTemplateURI - The tcm:uri of the Component Template of the targetted Dynamic Component Presentation.linkTagAttributes - Any linkTagAttributes that should be added to the link, for instance an
onMouseOver or style attribute.linkText - The text that should be placed inside the anchor tags.showTextOnFail - This parameter indicates if a text should be returned if the link cannot be resolved.LinkString getLinkAsString(String targetPageURI, String targetComponentURI, String targetTemplateURI, String linkTagAttributes, String linkText, boolean showTextOnFail)
java.lang.String object.targetPageURI - The tcm:uri of the Page that is able to assemble Dynamic Component Presentations.targetComponentURI - The tcm:uri of the Component of the targetted Dynamic Component Presentation.targetTemplateURI - The tcm:uri of the Component Template of the targetted Dynamic Component Presentation.linkTagAttributes - Any linkTagAttributes that should be added to the link, for instance an
onMouseOver or style attribute.linkText - The text that should be placed inside the anchor tags.showTextOnFail - This parameter indicates if a text should be returned if the link cannot be resolved.String getLinkAsString(int targetPageId, int targetComponentId, int targetTemplateId, String linkTagAttributes, String linkText, boolean showTextOnFail)
java.lang.String object.targetPageId - The id of the Page that is able to assemble Dynamic Component Presentations.targetComponentId - The id of the Component of the targetted Dynamic Component Presentation.targetTemplateId - The id of the Component Template of the targetted Dynamic Component Presentation.linkTagAttributes - Any linkTagAttributes that should be added to the link, for instance an
onMouseOver or style attribute.linkText - The that should be placed inside the anchor tags.showTextOnFail - This parameter indicates if a text should be returned if the link cannot be resolved.Copyright © 2017 SDL Group. All rights reserved.