Class IdentifierGeneratorBase
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierGeneratorBase
-
- All Implemented Interfaces:
IdentifierGenerator
- Direct Known Subclasses:
BasicIdentifierGenerator
public abstract class IdentifierGeneratorBase extends Object implements IdentifierGenerator
- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeService
nodeService
Node service
-
Constructor Summary
Constructors Constructor Description IdentifierGeneratorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QName
getType()
The content type this generator is applicible to.void
init()
Initialisation methodprotected String
padString(String s, int len)
Function to pad a string with zero '0' characters to the required lengthvoid
setIdentifierService(IdentifierService identifierService)
Set identifier service.void
setNodeService(NodeService nodeService)
Set the node servicevoid
setTypeAsString(String type)
Set type.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.module.org_alfresco_module_rm.identifier.IdentifierGenerator
generateId
-
-
-
-
Field Detail
-
nodeService
protected NodeService nodeService
Node service
-
-
Method Detail
-
init
public void init()
Initialisation method
-
setIdentifierService
public void setIdentifierService(IdentifierService identifierService)
Set identifier service.- Parameters:
identifierService
- identifier service
-
setNodeService
public void setNodeService(NodeService nodeService)
Set the node service- Parameters:
nodeService
- node service
-
setTypeAsString
public void setTypeAsString(String type)
Set type.- Parameters:
type
- content type
-
getType
public QName getType()
Description copied from interface:IdentifierGenerator
The content type this generator is applicible to.- Specified by:
getType
in interfaceIdentifierGenerator
- Returns:
- QName the type
- See Also:
IdentifierGenerator.getType()
-
-