Class IdentifierGeneratorBase

    • Field Detail

      • nodeService

        protected org.alfresco.service.cmr.repository.NodeService nodeService
        Node service
    • Constructor Detail

      • IdentifierGeneratorBase

        public IdentifierGeneratorBase()
    • 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​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Set the node service
        Parameters:
        nodeService - node service
      • setTypeAsString

        public void setTypeAsString​(String type)
        Set type.
        Parameters:
        type - content type
      • 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