Enum AddUser.CommandLineArgument
- java.lang.Object
-
- java.lang.Enum<AddUser.CommandLineArgument>
-
- org.jboss.as.domain.management.security.adduser.AddUser.CommandLineArgument
-
- All Implemented Interfaces:
Serializable,Comparable<AddUser.CommandLineArgument>
- Enclosing class:
- AddUser
protected static enum AddUser.CommandLineArgument extends Enum<AddUser.CommandLineArgument>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATION_USERSCONFIRM_WARNINGDISABLEDOMAIN_CONFIG_DIR_USERSENABLEGROUP_PROPERTIESGROUPSHELPPASSWORDREALMROLESERVER_CONFIG_DIR_USERSSILENTUSERUSER_PROPERTIES
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringargumentExample()An example of how the argument is used.StringgetLongArg()StringgetShortArg()abstract Stringinstructions()The argument instructions.Stringkey()booleanmatch(String option)static voidprintUsage(ConsoleWrapper consoleWrapper)StringtoString()static Stringusage()static AddUser.CommandLineArgumentvalueOf(String name)Returns the enum constant of this type with the specified name.static AddUser.CommandLineArgument[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPLICATION_USERS
public static final AddUser.CommandLineArgument APPLICATION_USERS
-
DOMAIN_CONFIG_DIR_USERS
public static final AddUser.CommandLineArgument DOMAIN_CONFIG_DIR_USERS
-
SERVER_CONFIG_DIR_USERS
public static final AddUser.CommandLineArgument SERVER_CONFIG_DIR_USERS
-
USER_PROPERTIES
public static final AddUser.CommandLineArgument USER_PROPERTIES
-
GROUPS
public static final AddUser.CommandLineArgument GROUPS
-
GROUP_PROPERTIES
public static final AddUser.CommandLineArgument GROUP_PROPERTIES
-
PASSWORD
public static final AddUser.CommandLineArgument PASSWORD
-
USER
public static final AddUser.CommandLineArgument USER
-
REALM
public static final AddUser.CommandLineArgument REALM
-
SILENT
public static final AddUser.CommandLineArgument SILENT
-
ROLE
public static final AddUser.CommandLineArgument ROLE
-
ENABLE
public static final AddUser.CommandLineArgument ENABLE
-
DISABLE
public static final AddUser.CommandLineArgument DISABLE
-
CONFIRM_WARNING
public static final AddUser.CommandLineArgument CONFIRM_WARNING
-
HELP
public static final AddUser.CommandLineArgument HELP
-
-
Method Detail
-
values
public static AddUser.CommandLineArgument[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AddUser.CommandLineArgument c : AddUser.CommandLineArgument.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddUser.CommandLineArgument valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
key
public String key()
-
match
public boolean match(String option)
-
getShortArg
public String getShortArg()
-
getLongArg
public String getLongArg()
-
argumentExample
public String argumentExample()
An example of how the argument is used.- Returns:
- the example.
-
instructions
public abstract String instructions()
The argument instructions.- Returns:
- the instructions.
-
toString
public String toString()
- Overrides:
toStringin classEnum<AddUser.CommandLineArgument>
-
printUsage
public static void printUsage(ConsoleWrapper consoleWrapper)
-
usage
public static String usage()
-
-