Class AutoNumHelper

java.lang.Object
fr.becpg.repo.helper.AutoNumHelper
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@Service public class AutoNumHelper extends Object implements org.springframework.beans.factory.InitializingBean

AutoNumHelper class.

Version:
$Id: $Id
Author:
matthieu
  • Field Details

    • autoNumService

      @Autowired @Qualifier("autoNumService") private AutoNumService autoNumService
    • namespaceService

      @Autowired private org.alfresco.service.namespace.NamespaceService namespaceService
    • instance

      private static AutoNumHelper instance
  • Constructor Details

    • AutoNumHelper

      public AutoNumHelper()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getAutoNumValue

      public static String getAutoNumValue(String className, String propertyName)
      SPEL HELPER T(fr.becpg.repo.helper.AutoNumHelper).getAutoNumValue("bcpg:finishedProduct","bcpg:eanCode") T(fr.becpg.repo.helper.AutoNumHelper).getOrCreateCode(nodeRef,"bcpg:eanCode")
      Parameters:
      className - a String object.
      propertyName - a String object.
      Returns:
      a String object.
    • getOrCreateCode

      public static String getOrCreateCode(org.alfresco.service.cmr.repository.NodeRef nodeRef, String propertyName)

      getOrCreateCode.

      Parameters:
      nodeRef - a NodeRef object.
      propertyName - a String object.
      Returns:
      a String object.