Package org.alfresco.repo.virtual.config
Class NodeRefPathExpression
java.lang.Object
org.alfresco.repo.virtual.config.NodeRefPathExpression
- All Implemented Interfaces:
NodeRefExpression
A String name or qname path expression that resolves to a
The given name or qname path is relative to a
The set path is automatically detected and checked for consistency.
NodeRef.The given name or qname path is relative to a
NodeRefContext
repository location. The default context is set to
CompanyHomeContext.COMPANY_HOME_CONTEXT_NAME. Other contexts can be
set using their name with setContext(String).The set path is automatically detected and checked for consistency.
-
Constructor Summary
ConstructorsConstructorDescriptionNodeRefPathExpression(NodeRefResolver resolver, Map<String, NodeRefContext> contexts) NodeRefPathExpression(NodeRefResolver resolver, Map<String, NodeRefContext> contexts, String context, String path) -
Method Summary
Modifier and TypeMethodDescriptionresolve()resolve(boolean createIfNotFound) voidsetContext(String context) voidsetCreatedPathName(String createNamePath) voidPath setter.
The type of path is automatically detected and checked for consistency.static String[]splitAndNormalizePath(String path) toString()
-
Constructor Details
-
NodeRefPathExpression
-
NodeRefPathExpression
public NodeRefPathExpression(NodeRefResolver resolver, Map<String, NodeRefContext> contexts, String context, String path)
-
-
Method Details
-
setContext
-
setCreatedPathName
-
setPath
Path setter.
The type of path is automatically detected and checked for consistency.- Parameters:
path- the string path to be resolved later- Throws:
org.alfresco.error.AlfrescoRuntimeException- if the given path is inconsistent (i.e. a combination of qnames and names)
-
splitAndNormalizePath
-
resolve
- Specified by:
resolvein interfaceNodeRefExpression
-
resolve
- Specified by:
resolvein interfaceNodeRefExpression
-
toString
-