Package org.hippoecm.hst.core.linking
Interface LocationResolver
-
- All Known Subinterfaces:
ResourceLocationResolver
public interface LocationResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getNodeType()
HstLink
resolve(javax.jcr.Node node, Mount mount, LocationMapTree locationMapTree)
Implementations should here do their logic, possibly linkrewriting.
-
-
-
Method Detail
-
resolve
HstLink resolve(javax.jcr.Node node, Mount mount, LocationMapTree locationMapTree)
Implementations should here do their logic, possibly linkrewriting. With the resolved path from this method, aHstLink
object is created. Do not store any of the arguments as instance variables as they should not be referenced from a LocationResolver- Parameters:
node
-mount
- theMount
where the HstLink should be created forlocationMapTree
- inversed HstSiteMapItem's object, which can benull
in case of a mount that is not mapped (Mount.isMapped()
or when it does not have a site map- Returns:
- the resolved HstLink for the node, or
null
when not able to create one
-
getNodeType
String getNodeType()
- Returns:
- the node type this resolver works on
-
-