Package com.install4j.api.windows
Enum WinUser.AddUserResultType
- java.lang.Object
-
- java.lang.Enum<WinUser.AddUserResultType>
-
- com.install4j.api.windows.WinUser.AddUserResultType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WinUser.AddUserResultType>
- Enclosing class:
- WinUser
public static enum WinUser.AddUserResultType extends java.lang.Enum<WinUser.AddUserResultType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_ACCESS_DENIED
The current user has no access to the user database or the operation is only allowed on the primary domain controller of the domain.ERROR_BAD_USER_NAME
The user name is invalid.ERROR_GROUP_EXISTS
The group that should be newly created already exists.ERROR_GROUP_NOT_FOUND
The group that should already exist could not be found.ERROR_OTHER
Another type of error occurred during user creation.ERROR_PASSWORD_REQUIREMENTS
The password does not meet the password policy requirements.ERROR_USER_EXISTS
The group that should already exist could not be found.SUCCESS
The user creation and the optional local group creation succeeded.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static WinUser.AddUserResultType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WinUser.AddUserResultType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final WinUser.AddUserResultType SUCCESS
The user creation and the optional local group creation succeeded.
-
ERROR_ACCESS_DENIED
public static final WinUser.AddUserResultType ERROR_ACCESS_DENIED
The current user has no access to the user database or the operation is only allowed on the primary domain controller of the domain.
-
ERROR_GROUP_EXISTS
public static final WinUser.AddUserResultType ERROR_GROUP_EXISTS
The group that should be newly created already exists.
-
ERROR_GROUP_NOT_FOUND
public static final WinUser.AddUserResultType ERROR_GROUP_NOT_FOUND
The group that should already exist could not be found.
-
ERROR_USER_EXISTS
public static final WinUser.AddUserResultType ERROR_USER_EXISTS
The group that should already exist could not be found.
-
ERROR_BAD_USER_NAME
public static final WinUser.AddUserResultType ERROR_BAD_USER_NAME
The user name is invalid.
-
ERROR_PASSWORD_REQUIREMENTS
public static final WinUser.AddUserResultType ERROR_PASSWORD_REQUIREMENTS
The password does not meet the password policy requirements. Check the minimum password length, password complexity, and password history requirements.
-
ERROR_OTHER
public static final WinUser.AddUserResultType ERROR_OTHER
Another type of error occurred during user creation.
-
-
Method Detail
-
values
public static WinUser.AddUserResultType[] 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 (WinUser.AddUserResultType c : WinUser.AddUserResultType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WinUser.AddUserResultType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<WinUser.AddUserResultType>
-
-