. Exposed the QName based Path to an object through the FreeMarker API

- can be used to generate lucene PATH: style queries to constrain a lucene query executed from a template to a specific folder
 Example:
   QName path to space: ${space.qnamePath}

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3673 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-09-04 11:45:13 +00:00
parent ee09e601f9
commit 1313708db2

View File

@@ -495,7 +495,7 @@ public final class TemplateNode implements Serializable
} }
/** /**
* @return Display path to this node * @return Display path to this node - the path built of 'cm:name' attribute values.
*/ */
public String getDisplayPath() public String getDisplayPath()
{ {
@@ -514,6 +514,14 @@ public final class TemplateNode implements Serializable
return displayPath; return displayPath;
} }
/**
* @return QName path to this node. This can be used for Lucene PATH: style queries
*/
public String getQnamePath()
{
return this.services.getNodeService().getPath(this.nodeRef).toPrefixString(this.services.getNamespaceService());
}
/** /**
* @return the small icon image for this node * @return the small icon image for this node
*/ */