Package org.alfresco.repo.virtual.config
Interface NodeRefResolver
- All Known Implementing Classes:
RepositoryNodeRefResolver
public interface NodeRefResolver
Dependency inversion of the Provision of Repository Context.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateNamePath(String[] reference) Path type reference create if absent.createQNamePath(String[] reference, String[] names) QName type reference create if absent.Fail safe substitute forRepository.findNodeRef(String, String[]).Gets the Company Home.Gets the root home of the company home storeGets the Shared Home.getUserHome(NodeRef person) Gets the user home of the currently authenticated personresolveNodeReference(String[] reference) Node type explicit inversion ofRepository.findNodeRef(String, String[]).resolvePathReference(String[] reference) Path type explicit inversion ofRepository.findNodeRef(String, String[]).resolveQNameReference(String[] reference) QName type explicit inversion ofRepository.findNodeRef(String, String[]).
UnlikeRepositoryNodeRefResolverimplementors must provide an adequate implementation.
-
Method Details
-
createNamePath
Path type reference create if absent. Fail substitute forRepository.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
QName type reference create if absent.Fail safe substitute forRepository.findNodeRef(String, String[]).- Parameters:
reference- path element qnames arraynames- 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
Node type explicit inversion ofRepository.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
Path type explicit inversion ofRepository.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
QName type explicit inversion ofRepository.findNodeRef(String, String[]).
UnlikeRepositoryNodeRefResolverimplementors 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
-
getUserHome
Gets the user home of the currently authenticated person- Parameters:
person- person- Returns:
- user home of person
-