public interface PageLink
PageLink class provides functionality to validate and resolve links to Pages.
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG
Logger for
PageLink. |
| Modifier and Type | Method and Description |
|---|---|
Link |
getLink(int targetPageId)
Create a new Link object targeting a page with just a page Id.
|
Link |
getLink(int targetPageId,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
Create a Link object targeting a page.
|
Link |
getLink(int targetPageId,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail,
String parameters)
Create a Link object targeting a page.
|
Link |
getLink(String targetPageURI)
Create a new Link object targeting a page with just a page URI.
|
Link |
getLink(String targetPageURI,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
Create a page link using a tcm:uri.
|
Link |
getLink(String targetPageURI,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail,
String parameters)
Create a page link using a tcm:uri.
|
Link |
getLink(String targetPageURI,
String targetURL,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail,
String parameters)
Create a page link as a String a tcm:uri.
|
String |
getLinkAsString(int targetPageId,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
Create a page link as a String.
|
String |
getLinkAsString(int targetPageId,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail,
String parameters)
Create a page link as a String, using a tcm:uri.
|
String |
getLinkAsString(String targetPageURI,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail)
Create a page link as a String using a tcm:uri.
|
String |
getLinkAsString(String targetPageURI,
String anchor,
String linkTagAttributes,
String linkText,
boolean showTextOnFail,
String parameters)
Create a page link as a String, using a tcm:uri.
|
static final org.slf4j.Logger LOG
PageLink.Link getLink(int targetPageId)
targetPageId - Id for the target pageLink getLink(String targetPageURI)
targetPageURI - The URI for the target pageLink getLink(int targetPageId, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail, String parameters)
targetPageId - Id for the target pageanchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The linkText that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.parameters - HTTP parameters to be appended to the URL.Link getLink(int targetPageId, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail)
targetPageId - Id for the target pageanchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The linkText that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.Link getLink(String targetPageURI, String targetURL, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail, String parameters)
targetPageURI - The Id of the page where this link should link to.targetURL - The targetURL for the target pageanchor - The anchor on the page where the link has to be
pointing to.linkTagAttributes - Attributes to include in the link.linkText - The text that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.parameters - HTTP parameters to be appended to the URL.Link getLink(String targetPageURI, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail, String parameters)
targetPageURI - The Id of the page where this link should link to.anchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The text that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.Link getLink(String targetPageURI, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail)
targetPageURI - The Id of the page where this link should link to.anchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The text that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.String getLinkAsString(int targetPageId, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail)
targetPageId - The Id of the page where this link should link to.anchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The linkText that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.String getLinkAsString(int targetPageId, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail, String parameters)
targetPageId - The tcm:uri of the page where this link should link to.anchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The text that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.parameters - HTTP parameters to be appended to the URL.String getLinkAsString(String targetPageURI, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail, String parameters)
targetPageURI - The tcm:uri of the page where this link should link to.anchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The text that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.parameters - HTTP parameters to be appended to the URL.String getLinkAsString(String targetPageURI, String anchor, String linkTagAttributes, String linkText, boolean showTextOnFail)
targetPageURI - The tcm:uri of the page where this link should link to.anchor - The anchor on the page where the link has to be pointing to.linkTagAttributes - Attributes to include in the link.linkText - The text that builds up the link.showTextOnFail - Indicates if the linkText needs to be returned
in case no link can be build: an empty string is returned if false.Copyright © 2016 SDL Group. All rights reserved.