public abstract class IdentifierGeneratorBase extends Object implements IdentifierGenerator
| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
Node service
|
| Constructor and Description |
|---|
IdentifierGeneratorBase() |
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.namespace.QName |
getType()
The content type this generator is applicible to.
|
void |
init()
Initialisation method
|
protected String |
padString(String s,
int len)
Function to pad a string with zero '0' characters to the required length
|
void |
setIdentifierService(IdentifierService identifierService)
Set identifier service.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setTypeAsString(String type)
Set type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateIdprotected org.alfresco.service.cmr.repository.NodeService nodeService
public void init()
public void setIdentifierService(IdentifierService identifierService)
identifierService - identifier servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - node servicepublic void setTypeAsString(String type)
type - content typepublic org.alfresco.service.namespace.QName getType()
IdentifierGeneratorgetType in interface IdentifierGeneratorIdentifierGenerator.getType()Copyright © 2005–2017 Alfresco Software. All rights reserved.