Class IdentifierServiceImpl
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierServiceImpl
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptiongenerateIdentifier
(NodeRef nodeRef) Generate an identifier for the given node.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
-
Constructor Details
-
IdentifierServiceImpl
public IdentifierServiceImpl()
-
-
Method Details
-
setNodeService
Set the node service- Parameters:
nodeService
- node service
-
setDictionaryService
Set the dictionary service- Parameters:
dictionaryService
- dictionary service
-
generateIdentifier
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:
-
generateIdentifier
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:
-
register
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:
-