Interface NodeRefResolver

All Known Implementing Classes:
RepositoryNodeRefResolver

public interface NodeRefResolver
Dependency inversion of the Provision of Repository Context.
See Also:
  • Method Details

    • createNamePath

      NodeRef createNamePath(String[] reference)
      Path type reference create if absent. Fail substitute for Repository.findNodeRef(String, String[]).
      Parameters:
      reference - path element names array
      Returns:
      reference array of reference segments
      Throws:
      org.alfresco.error.AlfrescoRuntimeException - if an unimplemented or invalid reference type is provided
      See Also:
    • createQNamePath

      NodeRef createQNamePath(String[] reference, String[] names)
      QName type reference create if absent.Fail safe substitute for Repository.findNodeRef(String, String[]).
      Parameters:
      reference - path element qnames array
      names - names to be used when creating the given path. If less than reference elements they will be matched from the end of the reference path.
      Returns:
      reference array of reference segments
      Throws:
      org.alfresco.error.AlfrescoRuntimeException - if an unimplemented or invalid reference type is provided
      See Also:
    • resolveNodeReference

      NodeRef resolveNodeReference(String[] reference)
      Node type explicit inversion of Repository.findNodeRef(String, String[]).
      Returns:
      reference array of reference segments
      Throws:
      org.alfresco.error.AlfrescoRuntimeException - if an unimplemented or invalid reference type is provided
      See Also:
    • resolvePathReference

      NodeRef resolvePathReference(String[] reference)
      Path type explicit inversion of Repository.findNodeRef(String, String[]).
      Returns:
      reference array of reference segments
      Throws:
      org.alfresco.error.AlfrescoRuntimeException - if an unimplemented or invalid reference type is provided
      See Also:
    • resolveQNameReference

      NodeRef resolveQNameReference(String[] reference)
      QName type explicit inversion of Repository.findNodeRef(String, String[]).
      Unlike Repository NodeRefResolver implementors must provide an adequate implementation.
      Returns:
      reference array of reference segments
      Throws:
      org.alfresco.error.AlfrescoRuntimeException - if an unimplemented or invalid reference type is provided
      See Also:
    • getCompanyHome

      NodeRef getCompanyHome()
      Gets the Company Home. Note this is tenant-aware if the correct Cache is supplied.
      Returns:
      company home node ref
    • getRootHome

      NodeRef getRootHome()
      Gets the root home of the company home store
      Returns:
      root node ref
    • getSharedHome

      NodeRef getSharedHome()
      Gets the Shared Home. Note this is tenant-aware if the correct Cache is supplied.
      Returns:
      shared home node ref
    • getUserHome

      NodeRef getUserHome(NodeRef person)
      Gets the user home of the currently authenticated person
      Parameters:
      person - person
      Returns:
      user home of person