Package org.alfresco.repo.template
Class BasePathResultsMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.alfresco.repo.template.BaseTemplateMap
-
- org.alfresco.repo.template.BasePathResultsMap
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map
- Direct Known Subclasses:
NamePathResultsMap,XPathResultsMap
public abstract class BasePathResultsMap extends BaseTemplateMap
A special Map that executes an XPath against the parent Node as part of the get() Map interface implementation.- Author:
- Kevin Roast
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglogger-
Fields inherited from class org.alfresco.repo.template.BaseTemplateMap
parent, services
-
-
Constructor Summary
Constructors Constructor Description BasePathResultsMap(TemplateNode parent, ServiceRegistry services)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<TemplateNode>getChildrenByXPath(java.lang.String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] params, boolean firstOnly)Return a list or a single Node from executing an xpath against the parent Node.-
Methods inherited from class org.alfresco.repo.template.BaseTemplateMap
get
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
BasePathResultsMap
public BasePathResultsMap(TemplateNode parent, ServiceRegistry services)
Constructor- Parameters:
parent- The parent TemplateNode to execute searches fromservices- The ServiceRegistry to use
-
-
Method Detail
-
getChildrenByXPath
protected java.util.List<TemplateNode> getChildrenByXPath(java.lang.String xpath, org.alfresco.service.cmr.search.QueryParameterDefinition[] params, boolean firstOnly)
Return a list or a single Node from executing an xpath against the parent Node.- Parameters:
xpath- XPath to executefirstOnly- True to return the first result only
-
-