Package org.alfresco.repo.virtual.config
Interface NodeRefResolver
-
- All Known Implementing Classes:
RepositoryNodeRefResolver
public interface NodeRefResolverDependency inversion of the Provision of Repository Context.- See Also:
Repository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeRefcreateNamePath(String[] reference)Path type reference create if absent.NodeRefcreateQNamePath(String[] reference, String[] names)QName type reference create if absent.Fail safe substitute forRepository.findNodeRef(String, String[]).NodeRefgetCompanyHome()Gets the Company Home.NodeRefgetRootHome()Gets the root home of the company home storeNodeRefgetSharedHome()Gets the Shared Home.NodeRefgetUserHome(NodeRef person)Gets the user home of the currently authenticated personNodeRefresolveNodeReference(String[] reference)Node type explicit inversion ofRepository.findNodeRef(String, String[]).NodeRefresolvePathReference(String[] reference)Path type explicit inversion ofRepository.findNodeRef(String, String[]).NodeRefresolveQNameReference(String[] reference)QName type explicit inversion ofRepository.findNodeRef(String, String[]).
UnlikeRepositoryNodeRefResolverimplementors must provide an adequate implementation.
-
-
-
Method Detail
-
createNamePath
NodeRef createNamePath(String[] reference)
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:
AlfrescoRuntimeException- if an unimplemented or invalid reference type is provided- See Also:
Repository.findNodeRef(String, String[])
-
createQNamePath
NodeRef createQNamePath(String[] reference, String[] names)
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:
AlfrescoRuntimeException- if an unimplemented or invalid reference type is provided- See Also:
Repository.findNodeRef(String, String[])
-
resolveNodeReference
NodeRef resolveNodeReference(String[] reference)
Node type explicit inversion ofRepository.findNodeRef(String, String[]).- Returns:
- reference array of reference segments
- Throws:
AlfrescoRuntimeException- if an unimplemented or invalid reference type is provided- See Also:
Repository.findNodeRef(String, String[])
-
resolvePathReference
NodeRef resolvePathReference(String[] reference)
Path type explicit inversion ofRepository.findNodeRef(String, String[]).- Returns:
- reference array of reference segments
- Throws:
AlfrescoRuntimeException- if an unimplemented or invalid reference type is provided- See Also:
Repository.findNodeRef(String, String[])
-
resolveQNameReference
NodeRef resolveQNameReference(String[] reference)
QName type explicit inversion ofRepository.findNodeRef(String, String[]).
UnlikeRepositoryNodeRefResolverimplementors must provide an adequate implementation.- Returns:
- reference array of reference segments
- Throws:
AlfrescoRuntimeException- if an unimplemented or invalid reference type is provided- See Also:
Repository.findNodeRef(String, String[])
-
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
-
-