Class CurrencyConstraint

java.lang.Object
org.alfresco.repo.dictionary.constraint.AbstractConstraint
org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
fr.becpg.repo.dictionary.constraint.CurrencyConstraint
All Implemented Interfaces:
org.alfresco.service.cmr.dictionary.Constraint

public class CurrencyConstraint extends org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
Class used to load supported currencies constraints
Version:
$Id: $Id
Author:
rabah
  • Field Details

  • Constructor Details

    • CurrencyConstraint

      public CurrencyConstraint()
  • Method Details

    • propConstraints

      private static String propConstraints()
    • setBeCPGCacheService

      public void setBeCPGCacheService(BeCPGCacheService beCPGCacheService)

      Setter for the field beCPGCacheService.

      Parameters:
      beCPGCacheService - a BeCPGCacheService object.
    • setSystemConfigurationService

      public void setSystemConfigurationService(SystemConfigurationService systemConfigurationService)

      Setter for the field systemConfigurationService.

      Parameters:
      systemConfigurationService - a SystemConfigurationService object
    • setAllowedValuesSuffix

      public void setAllowedValuesSuffix(List<String> allowedValuesSuffix)

      Setter for the field allowedValuesSuffix.

      Parameters:
      allowedValuesSuffix - a List object.
    • initialize

      public void initialize()
      Specified by:
      initialize in interface org.alfresco.service.cmr.dictionary.Constraint
      Overrides:
      initialize in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
    • getAllowedValues

      public List<String> getAllowedValues()
      Overrides:
      getAllowedValues in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
    • getDisplayLabel

      public String getDisplayLabel(String constraintAllowableValue, org.alfresco.service.cmr.i18n.MessageLookup messageLookup)
      Overrides:
      getDisplayLabel in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
    • evaluateSingleValue

      protected void evaluateSingleValue(Object value)
      Overrides:
      evaluateSingleValue in class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
    • getAllowedValuesFromCache

      public List<String> getAllowedValuesFromCache()

      getAllowedValuesFromCache.

      Returns:
      a List object.