Enum Class NameHelper.NameComputationMode

java.lang.Object
java.lang.Enum<NameHelper.NameComputationMode>
org.ametys.plugins.repository.jcr.NameHelper.NameComputationMode
All Implemented Interfaces:
Serializable, Comparable<NameHelper.NameComputationMode>, java.lang.constant.Constable
Enclosing class:
NameHelper

Mode of computation for the name if it already exists in JCR.
  • Enum Constant Details

    • INCREMENTAL

      Use the legacy incremental mode: add a suffix which is automatically increment while the node name already exists. Prefix: [node name in lower case without special characters] Suffix: -[incremental number]
    • GENERATED_KEY

      Use StringUtils.generatedKey() method to create a random suffix. Prefix: [node name in lower case without special characters] Suffix: -[code with 8 lower-case alphanumerics characters]
    • USER_FRIENDLY

      Use for user-friendly pattern as: Non-formatted title (incremented number). Prefix: [given name] Suffix: [space character]([incremental number])
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null