Package com.atlassian.bamboo.key
Class KeyGenerator
java.lang.Object
com.atlassian.bamboo.key.KeyGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
generateKey
(@Nullable String name, int desiredKeyLength, int maxKeyLength) JIRA-inspired project/plan key generator (see JIRA's ProjectKeyGenerator.js)
-
Constructor Details
-
KeyGenerator
public KeyGenerator()
-
-
Method Details
-
generateKey
@NotNull public static @NotNull String generateKey(@Nullable @Nullable String name, int desiredKeyLength, int maxKeyLength) JIRA-inspired project/plan key generator (see JIRA's ProjectKeyGenerator.js)- Parameters:
name
- Name of project/plan to be used as the input to key generatordesiredKeyLength
- desired length of the key. It's not strictmaxKeyLength
- max key length- Returns:
- generated key with length more than 2 if name is not empty string or in IGNORED_WORDS
-