public class NodeRefPathExpression extends Object implements NodeRefExpression
NodeRef
.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)
.Constructor and Description |
---|
NodeRefPathExpression(NodeRefResolver resolver,
Map<String,NodeRefContext> contexts) |
NodeRefPathExpression(NodeRefResolver resolver,
Map<String,NodeRefContext> contexts,
String context,
String path) |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
resolve() |
org.alfresco.service.cmr.repository.NodeRef |
resolve(boolean createIfNotFound) |
void |
setContext(String context) |
void |
setCreatedPathName(String createNamePath) |
void |
setPath(String path)
Path setter.
The type of path is automatically detected and checked for consistency. |
static String[] |
splitAndNormalizePath(String path) |
String |
toString() |
public NodeRefPathExpression(NodeRefResolver resolver, Map<String,NodeRefContext> contexts)
public NodeRefPathExpression(NodeRefResolver resolver, Map<String,NodeRefContext> contexts, String context, String path)
public void setContext(String context)
public void setCreatedPathName(String createNamePath)
public void setPath(String path) throws org.alfresco.error.AlfrescoRuntimeException
path
- the string path to be resolved laterorg.alfresco.error.AlfrescoRuntimeException
- if the given path is inconsistent (i.e.
a combination of qnames and names)public org.alfresco.service.cmr.repository.NodeRef resolve()
resolve
in interface NodeRefExpression
public org.alfresco.service.cmr.repository.NodeRef resolve(boolean createIfNotFound)
resolve
in interface NodeRefExpression
Copyright © 2005–2017 Alfresco Software. All rights reserved.