Package com.iizix.user
Enum Class UserLocaleString
- All Implemented Interfaces:
- IEnumLocaleString,- Serializable,- Comparable<UserLocaleString>,- Constable
Locale strings for operations dealing with a user. These locale strings are typically used to localize the text.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionDatabase error.Email not found.User cannot change password.Hashed password mismatch.Password policy is not met.Sign in requires a change of password.Changed password must be specified to sign in but is empty or blank.Password must be specified but is empty or blank.System error.User name not found.
- Field SummaryFields
- Method SummaryModifier and TypeMethodDescriptionGets the ID of this locale string with the appended string parameter.- static UserLocaleStringParses the ID string to find a matching ID.- static UserLocaleString- fromNonNull- (String id) Parses the ID string to find a matching ID.Gets the fallback String.- getID()Gets the text ID.- static UserLocaleStringReturns the enum constant of this class with the specified name.- static UserLocaleString[]- values()Returns an array containing the constants of this enum class, in the order they are declared.- Methods inherited from class java.lang.Enum- clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf- Methods inherited from interface com.iizix.text.IEnumLocaleString- asString, asString, asString, name, ordinal, valuesList
- Enum Constant Details- UserNameNotFoundUser name not found. It is up to the application to decide if this information should be presented to the user or if it should just stay silent about the error.- English: "User name not found". 
- EmailNotFoundEmail not found. This error is generated because a user was not found when looking her/him up using an email address. It is up to the application to decide if this information should be presented to the user or if it should just stay silent about the error.- English: "Email not found". 
- FixedPasswordUser cannot change password. An administrator has configured the password to be fixed.- English: "You cannot change your password, it is set to fixed password by administrator's action". 
- SpecifyPasswordPassword must be specified but is empty or blank.- English: "Password must be specified". 
- SpecifyNewPasswordChanged password must be specified to sign in but is empty or blank.- English: "New password must be specified". 
- PasswordChangeRequiredSign in requires a change of password.- English "Password change is required to sign in". 
- PassordPolicyMismatchPassword policy is not met. This error generally contains an additional string parameter with more information. This parameter string is generally localized using the current thread's locale for a user session.- English "Password does not meet minimum requirements". 
- HashedPasswordMismatchHashed password mismatch.- English: "Your old password does not match". 
- DatabaseErrorDatabase error. The server event log contains more information.- English: "A database error occurred". 
- SystemErrorSystem error. The server event log contains more information.- English: "A system error occurred". 
 
- Field Details- PREFIXThe prefix for all text IDs: "ci.user_".- "ci."stands for the shortened package name- "com.iizix.".- See Also:
 
- idThe text ID of the string, starting with the- PREFIX"ci.user_" and the- Enum.name()appended to it.- "ci."stands for the shortened package name- "com.iizix.".
- englishThe English default text.
 
- Method Details- valuesReturns 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
 
- valueOfReturns 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
 
- getIDGets the text ID.- Specified by:
- getIDin interface- IEnumLocaleString
- Returns:
- The text ID string.
 
- getFallbackGets the fallback String.- Specified by:
- getFallbackin interface- IEnumLocaleString
- Returns:
- The fallback string.
 
- asIDGets the ID of this locale string with the appended string parameter.- Parameters:
- param- The string parameter to append.
- Returns:
- The UserLocaleString formatted as id + ':' + param.
 
- fromParses the ID string to find a matching ID. If none is found, a- NotFoundExceptionis thrown.- Parameters:
- id- The ID to parse. An ID may contain an additional string appended to this- idprefixed with ':', typically for error messages. When looking for the ID, the part of the ID from a potential colon ':' is removed.
- Returns:
- A non-null UserLocaleStringinstance.
- Throws:
- NotFoundException- If the- idis not found.
- NullPointerException- If- idis- null.
 
- fromNonNullParses the ID string to find a matching ID. If none is found,- SystemErroris returned but before returning it, the event is logged in the server with and exception to provide a stack trace.- Parameters:
- id- The ID to parse. An ID may contain an additional string appended to this- idprefixed with ':', typically for error messages. When looking for the ID, the part of the ID from a potential colon ':' is removed.
- Returns:
- A non-null UserLocaleStringinstance matching theid, orSystemErrorif not found.
- Throws:
- NullPointerException- If- idis- null.