Interface ParameterConstraint

All Known Implementing Classes:
AspectParameterConstraint, BaseParameterConstraint, EnumParameterConstraint, FolderContentsParameterConstraint, MimetypeParameterConstraint, PropertyParameterConstraint, TypeParameterConstraint

@AlfrescoPublicApi public interface ParameterConstraint
Parameter constraint. Helps to constraint the list of allowable values for a action parameter.
Author:
Roy Wetherall
  • Method Details

    • getName

      String getName()
      Gets the unique name of the constraint
      Returns:
      String constraint name
    • isValidValue

      boolean isValidValue(String value)
      Indicates whether the provided value satisfies the constraint. True if it does, false otherwise.
      Returns:
      boolean true if valid, false otherwise
    • getValueDisplayLabel

      String getValueDisplayLabel(String value)
      Parameters:
      value - String
      Returns:
      String
    • getAllowableValues

      Map<String,String> getAllowableValues()
      The implementers are expected to return allowed values in the insertion order.
    • getValues

      default Map<String,String> getValues()
      Returns possible constraint values. By default returns getAllowableValues() to be backwards compatible.