public class IdentifierServiceImpl extends Object implements IdentifierService
CONTEXT_NODEREF, CONTEXT_ORIG_TYPE, CONTEXT_PARENT_NODEREF| Constructor and Description |
|---|
IdentifierServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateIdentifier(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Generate an identifier for the given node.
|
String |
generateIdentifier(org.alfresco.service.namespace.QName type,
org.alfresco.service.cmr.repository.NodeRef parent)
Generate an identifier for a node with the given type and parent.
|
void |
register(IdentifierGenerator idGen)
Register an identifier generator implementation with the service.
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - node servicepublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - dictionary servicepublic String generateIdentifier(org.alfresco.service.namespace.QName type, org.alfresco.service.cmr.repository.NodeRef parent)
IdentifierServicegenerateIdentifier in interface IdentifierServicetype - type of the nodeparent - parent of the ndoeIdentifierService.generateIdentifier(org.alfresco.service.namespace.QName, org.alfresco.service.cmr.repository.NodeRef)public String generateIdentifier(org.alfresco.service.cmr.repository.NodeRef nodeRef)
IdentifierServicegenerateIdentifier in interface IdentifierServicenodeRef - node referenceIdentifierService.generateIdentifier(org.alfresco.service.cmr.repository.NodeRef)public void register(IdentifierGenerator idGen)
IdentifierServiceregister in interface IdentifierServiceidGen - identifier generator implementationIdentifierService.register(org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierGenerator)Copyright © 2005–2016 Alfresco Software. All rights reserved.