/**
* Unconfirmed (default)
*/
- UNCONFIRMED("USER_ACCOUNT_STATUS_UNCONFIRMED"), //NOI18N
+ UNCONFIRMED("USER_ACCOUNT_STATUS_UNCONFIRMED", "user_status_unconfirmed"), //NOI18N
/**
* Confirmed (email address validated)
*/
- CONFIRMED("USER_ACCOUNT_STATUS_CONFIRMED"), //NOI18N
+ CONFIRMED("USER_ACCOUNT_STATUS_CONFIRMED", "user_status_confirmed"), //NOI18N
/**
* Locked (maybe violated T&C)
*/
- LOCKED("USER_ACCOUNT_STATUS_LOCKED"); //NOI18N
+ LOCKED("USER_ACCOUNT_STATUS_LOCKED", "user_status_locked"); //NOI18N
/**
* Message key
*/
private final String messageKey;
+ /**
+ * CSS style class
+ */
+ private final String styleClass;
+
/**
* Constructor with i18n translation key
* <p>
- * @param messageKey Message key (i18n)
+ * @param messageKey Message key (i18n)
+ * @param styyleClass CSS style class
*/
- private UserAccountStatus (final String messageKey) {
+ private UserAccountStatus (final String messageKey, final String styleClass) {
// Set it here
this.messageKey = messageKey;
+ this.styleClass = styleClass;
}
/**
- * Output value (for messages)
+ * Getter for message key
* <p>
- * @return the messageKey
+ * @return Message key (i18n)
*/
public String getMessageKey () {
return this.messageKey;
}
+
+ /**
+ * Getter for CSS style class
+ * <p>
+ * @return CSS style class
+ */
+ public String getStyleClass () {
+ return this.styleClass;
+ }
+
}