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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUseStringUtils
.generatedKey() method to create a random suffix.Use the legacy incremental mode: add a suffix which is automatically increment while the node name already exists.Use for user-friendly pattern as: Non-formatted title (incremented number). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static NameHelper.NameComputationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
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
UseStringUtils
.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 nameNullPointerException
- if the argument is null
-