com.citytechinc.aem.bedrock.api
Interface Linkable

All Known Subinterfaces:
BasicNode, ComponentNode, PageDecorator

public interface Linkable

Definition for "linkable" items, such as pages and components (i.e. path-addressable resources).


Method Summary
 String getHref()
          Get the URL for this item.
 String getHref(boolean mapped)
          Get the mapped URL for this item.
 Link getLink()
          Get a link for this item.
 Link getLink(boolean mapped)
          Get a link for this item.
 LinkBuilder getLinkBuilder()
          Get a link builder for the current resource path.
 LinkBuilder getLinkBuilder(boolean mapped)
          Get a mapped link builder for the current resource path.
 

Method Detail

getHref

String getHref()
Get the URL for this item.

Returns:
href

getHref

String getHref(boolean mapped)
Get the mapped URL for this item.

Parameters:
mapped - if true, the path will be routed through the resource resolver to determine the mapped path (e.g. without leading "/content").
Returns:
mapped href

getLink

Link getLink()
Get a link for this item.

Returns:
link

getLink

Link getLink(boolean mapped)
Get a link for this item.

Parameters:
mapped - if true, the Link path will be routed through the resource resolver to determine the mapped path (e.g. without leading "/content").
Returns:
mapped link

getLinkBuilder

LinkBuilder getLinkBuilder()
Get a link builder for the current resource path.

Returns:
builder instance for this item

getLinkBuilder

LinkBuilder getLinkBuilder(boolean mapped)
Get a mapped link builder for the current resource path.

Parameters:
mapped - if true, the LinkBuilder for this resource will be routed through the resource resolver to determine the mapped path (e.g. without leading "/content").
Returns:
builder instance for this item containing the mapped link


Copyright © 2015 CITYTECH, Inc.. All rights reserved.