Class NodeRefPathExpression

java.lang.Object
org.alfresco.repo.virtual.config.NodeRefPathExpression
All Implemented Interfaces:
NodeRefExpression

public class NodeRefPathExpression extends Object implements NodeRefExpression
A String name or qname path expression that resolves to a 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 Details

  • Method Details

    • setContext

      public void setContext(String context)
    • setCreatedPathName

      public void setCreatedPathName(String createNamePath)
    • setPath

      public void setPath(String path) throws org.alfresco.error.AlfrescoRuntimeException
      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

      public static String[] splitAndNormalizePath(String path)
    • resolve

      public NodeRef resolve()
      Specified by:
      resolve in interface NodeRefExpression
    • resolve

      public NodeRef resolve(boolean createIfNotFound)
      Specified by:
      resolve in interface NodeRefExpression
    • toString

      public String toString()
      Overrides:
      toString in class Object