Package com.atlassian.bamboo.key
Class KeyGenerator
- java.lang.Object
-
- com.atlassian.bamboo.key.KeyGenerator
-
public class KeyGenerator extends Object
-
-
Constructor Summary
Constructors Constructor Description KeyGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull String
generateKey(@Nullable String name, int desiredKeyLength, int maxKeyLength)
JIRA-inspired project/plan key generator (see JIRA's ProjectKeyGenerator.js)
-
-
-
Method Detail
-
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
-
-