Class IdentifierServiceImpl
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierServiceImpl
-
- All Implemented Interfaces:
IdentifierService
public class IdentifierServiceImpl extends Object implements IdentifierService
- Author:
- Roy Wetherall
-
-
Field Summary
-
Fields inherited from interface org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierService
CONTEXT_NODEREF, CONTEXT_ORIG_TYPE, CONTEXT_PARENT_NODEREF
-
-
Constructor Summary
Constructors Constructor Description IdentifierServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateIdentifier(NodeRef nodeRef)
Generate an identifier for the given node.String
generateIdentifier(QName type, 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(DictionaryService dictionaryService)
Set the dictionary servicevoid
setNodeService(NodeService nodeService)
Set the node service
-
-
-
Method Detail
-
setNodeService
public void setNodeService(NodeService nodeService)
Set the node service- Parameters:
nodeService
- node service
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
Set the dictionary service- Parameters:
dictionaryService
- dictionary service
-
generateIdentifier
public String generateIdentifier(QName type, NodeRef parent)
Description copied from interface:IdentifierService
Generate an identifier for a node with the given type and parent.- Specified by:
generateIdentifier
in interfaceIdentifierService
- Parameters:
type
- type of the nodeparent
- parent of the ndoe- Returns:
- String generated identifier
- See Also:
IdentifierService.generateIdentifier(org.alfresco.service.namespace.QName, org.alfresco.service.cmr.repository.NodeRef)
-
generateIdentifier
public String generateIdentifier(NodeRef nodeRef)
Description copied from interface:IdentifierService
Generate an identifier for the given node.- Specified by:
generateIdentifier
in interfaceIdentifierService
- Parameters:
nodeRef
- node reference- Returns:
- String generated identifier
- See Also:
IdentifierService.generateIdentifier(org.alfresco.service.cmr.repository.NodeRef)
-
register
public void register(IdentifierGenerator idGen)
Description copied from interface:IdentifierService
Register an identifier generator implementation with the service.- Specified by:
register
in interfaceIdentifierService
- Parameters:
idGen
- identifier generator implementation- See Also:
IdentifierService.register(org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierGenerator)
-
-