public class RepositoryNodeRefResolver extends Object implements NodeRefResolver
Modifier and Type | Field and Description |
---|---|
static String |
NODE_REF_EXPRESSION |
static String |
PATH_REF_EXPRESSION |
static String |
QNAME_REF_EXPRESSION |
Constructor and Description |
---|
RepositoryNodeRefResolver() |
RepositoryNodeRefResolver(Repository repository) |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createNamePath(String[] reference)
Path type reference create if absent.
|
org.alfresco.service.cmr.repository.NodeRef |
createQNamePath(String[] reference,
String[] names)
QName type reference create if absent.Fail safe substitute for
Repository.findNodeRef(String, String[]) . |
org.alfresco.service.cmr.repository.NodeRef |
getCompanyHome()
Gets the Company Home.
|
org.alfresco.service.cmr.repository.NodeRef |
getRootHome()
Gets the root home of the company home store
|
org.alfresco.service.cmr.repository.NodeRef |
getSharedHome()
Gets the Shared Home.
|
org.alfresco.service.cmr.repository.NodeRef |
getUserHome(org.alfresco.service.cmr.repository.NodeRef person)
Gets the user home of the currently authenticated person
|
org.alfresco.service.cmr.repository.NodeRef |
resolveNodeReference(String[] reference)
Node type explicit inversion of
Repository.findNodeRef(String, String[]) . |
org.alfresco.service.cmr.repository.NodeRef |
resolvePathReference(String[] reference)
Path type explicit inversion of
Repository.findNodeRef(String, String[]) . |
org.alfresco.service.cmr.repository.NodeRef |
resolveQNameReference(String[] reference)
QName type explicit inversion of
Repository.findNodeRef(String, String[]) .Unlike Repository NodeRefResolver implementors must
provide an adequate implementation. |
void |
setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setRepository(Repository repository) |
public static final String PATH_REF_EXPRESSION
public static final String NODE_REF_EXPRESSION
public static final String QNAME_REF_EXPRESSION
public RepositoryNodeRefResolver()
public RepositoryNodeRefResolver(Repository repository)
public org.alfresco.service.cmr.repository.NodeRef resolveNodeReference(String[] reference)
NodeRefResolver
Repository.findNodeRef(String, String[])
.resolveNodeReference
in interface NodeRefResolver
Repository.findNodeRef(String, String[])
public org.alfresco.service.cmr.repository.NodeRef resolvePathReference(String[] reference)
NodeRefResolver
Repository.findNodeRef(String, String[])
.resolvePathReference
in interface NodeRefResolver
Repository.findNodeRef(String, String[])
public org.alfresco.service.cmr.repository.NodeRef resolveQNameReference(String[] reference)
NodeRefResolver
Repository.findNodeRef(String, String[])
.Repository
NodeRefResolver
implementors must
provide an adequate implementation.resolveQNameReference
in interface NodeRefResolver
Repository.findNodeRef(String, String[])
public void setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
public void setRepository(Repository repository)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public org.alfresco.service.cmr.repository.NodeRef getCompanyHome()
NodeRefResolver
getCompanyHome
in interface NodeRefResolver
public org.alfresco.service.cmr.repository.NodeRef getRootHome()
NodeRefResolver
getRootHome
in interface NodeRefResolver
public org.alfresco.service.cmr.repository.NodeRef getSharedHome()
NodeRefResolver
getSharedHome
in interface NodeRefResolver
public org.alfresco.service.cmr.repository.NodeRef getUserHome(org.alfresco.service.cmr.repository.NodeRef person)
NodeRefResolver
getUserHome
in interface NodeRefResolver
person
- personpublic org.alfresco.service.cmr.repository.NodeRef createNamePath(String[] reference)
NodeRefResolver
Repository.findNodeRef(String, String[])
.createNamePath
in interface NodeRefResolver
reference
- path element names arrayRepository.findNodeRef(String, String[])
public org.alfresco.service.cmr.repository.NodeRef createQNamePath(String[] reference, String[] names)
NodeRefResolver
Repository.findNodeRef(String, String[])
.createQNamePath
in interface NodeRefResolver
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.Repository.findNodeRef(String, String[])
Copyright © 2005–2017 Alfresco Software. All rights reserved.