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 Details

    • nodeService

      protected NodeService nodeService
      Node service
  • Constructor Details

    • IdentifierGeneratorBase

      public IdentifierGeneratorBase()
  • Method Details

    • 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 interface IdentifierGenerator
      Returns:
      QName the type
      See Also:
    • padString

      protected String padString(String s, int len)
      Function to pad a string with zero '0' characters to the required length
      Parameters:
      s - String to pad with leading zero '0' characters
      len - Length to pad to
      Returns:
      padded string or the original if already at >=len characters