|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceContainer
Implementations that know how to rewrite a link for a nodetype containing resources, like hippogallery:exampleImageSet or hippogallery:exampleAssetSet
Method Summary | |
---|---|
Map<String,String> |
getMappings()
returns the mapping from nodename to url prefix. |
String |
getNodeType()
|
String |
getPrimaryItem()
|
String |
resolveToPathInfo(javax.jcr.Node resourceContainerNode,
javax.jcr.Node resourceNode,
Mount mount)
Implementations should here do their logic, possibly linkrewriting. |
javax.jcr.Node |
resolveToResourceNode(javax.jcr.Session session,
String pathInfo)
This is the reverse of #resolvePathInfo(Node, Node, HstSite) . |
Method Detail |
---|
String resolveToPathInfo(javax.jcr.Node resourceContainerNode, javax.jcr.Node resourceNode, Mount mount)
HstLink
object
is created
resourceContainerNode
- The parent node of the resource noderesourceNode
- The resource node itself containing the binarymount
- the Mount
the link is meant for
null
when not able to create onejavax.jcr.Node resolveToResourceNode(javax.jcr.Session session, String pathInfo)
#resolvePathInfo(Node, Node, HstSite)
. If this ResourceContainer can resolve
the pathInfo to a resource node of type getNodeType()
, it returns the resourceNode. If it cannot resolve the
pathInfo, null is returned
- Parameters:
session
- pathInfo
- : the path from the url after the context and servlet path. It starts with a slashobject
-
- Returns:
- the resourceNode or
null
if this resource container does not know how to resolve this pathInfo
String getNodeType()
String getPrimaryItem()
Map<String,String> getMappings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |