Class KeyGenerator


  • public class KeyGenerator
    extends Object
    • Constructor Detail

      • KeyGenerator

        public KeyGenerator()
    • 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 generator
        desiredKeyLength - desired length of the key. It's not strict
        maxKeyLength - max key length
        Returns:
        generated key with length more than 2 if name is not empty string or in IGNORED_WORDS