Enum Class SetupCommands

java.lang.Object
java.lang.Enum<SetupCommands>
dev.getelements.elements.setup.SetupCommands
All Implemented Interfaces:
Serializable, Comparable<SetupCommands>, Constable

public enum SetupCommands extends Enum<SetupCommands>
  • Enum Constant Details

    • ADD_USER

      public static final SetupCommands ADD_USER
      Adds a new user to the database.
    • UPDATE_USER

      public static final SetupCommands UPDATE_USER
      Updates an existing user in the database.
    • DUMP_DEFAULT_PROPERTIES

      public static final SetupCommands DUMP_DEFAULT_PROPERTIES
      Dumps the default properties for the server.
    • HELP

      public static final SetupCommands HELP
      Displays the overall help command.
    • SHELL

      public static final SetupCommands SHELL
      Runs an interactive shell.
  • Field Details

    • commandName

      public final String commandName
    • shellCommand

      public final boolean shellCommand
    • commandType

      public final Class<? extends SetupCommand> commandType
  • Method Details

    • values

      public static SetupCommands[] 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

      public static SetupCommands valueOf(String name)
      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
    • getCommandForName

      public static Class<? extends SetupCommand> getCommandForName(String name)
    • streamShellCommands

      public static Stream<SetupCommands> streamShellCommands()