|
@@ -11,6 +11,108 @@ public class FessMessages extends FessLabels {
|
|
|
/** The serial version UID for object serialization. (Default) */
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
+ /** The key of the message: must be false */
|
|
|
+ public static final String CONSTRAINTS_AssertFalse_MESSAGE = "{constraints.AssertFalse.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be true */
|
|
|
+ public static final String CONSTRAINTS_AssertTrue_MESSAGE = "{constraints.AssertTrue.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be less than ${inclusive == true ? 'or equal to ' : ''}{value} */
|
|
|
+ public static final String CONSTRAINTS_DecimalMax_MESSAGE = "{constraints.DecimalMax.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be greater than ${inclusive == true ? 'or equal to ' : ''}{value} */
|
|
|
+ public static final String CONSTRAINTS_DecimalMin_MESSAGE = "{constraints.DecimalMin.message}";
|
|
|
+
|
|
|
+ /** The key of the message: numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected) */
|
|
|
+ public static final String CONSTRAINTS_Digits_MESSAGE = "{constraints.Digits.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be in the future */
|
|
|
+ public static final String CONSTRAINTS_Future_MESSAGE = "{constraints.Future.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be less than or equal to {value} */
|
|
|
+ public static final String CONSTRAINTS_Max_MESSAGE = "{constraints.Max.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be greater than or equal to {value} */
|
|
|
+ public static final String CONSTRAINTS_Min_MESSAGE = "{constraints.Min.message}";
|
|
|
+
|
|
|
+ /** The key of the message: may not be null */
|
|
|
+ public static final String CONSTRAINTS_NotNull_MESSAGE = "{constraints.NotNull.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be null */
|
|
|
+ public static final String CONSTRAINTS_Null_MESSAGE = "{constraints.Null.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be in the past */
|
|
|
+ public static final String CONSTRAINTS_Past_MESSAGE = "{constraints.Past.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must match "{regexp}" */
|
|
|
+ public static final String CONSTRAINTS_Pattern_MESSAGE = "{constraints.Pattern.message}";
|
|
|
+
|
|
|
+ /** The key of the message: size must be between {min} and {max} */
|
|
|
+ public static final String CONSTRAINTS_Size_MESSAGE = "{constraints.Size.message}";
|
|
|
+
|
|
|
+ /** The key of the message: invalid credit card number */
|
|
|
+ public static final String CONSTRAINTS_CreditCardNumber_MESSAGE = "{constraints.CreditCardNumber.message}";
|
|
|
+
|
|
|
+ /** The key of the message: invalid {type} barcode */
|
|
|
+ public static final String CONSTRAINTS_EAN_MESSAGE = "{constraints.EAN.message}";
|
|
|
+
|
|
|
+ /** The key of the message: not a well-formed email address */
|
|
|
+ public static final String CONSTRAINTS_Email_MESSAGE = "{constraints.Email.message}";
|
|
|
+
|
|
|
+ /** The key of the message: length must be between {min} and {max} */
|
|
|
+ public static final String CONSTRAINTS_Length_MESSAGE = "{constraints.Length.message}";
|
|
|
+
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, Luhn Modulo 10 checksum failed */
|
|
|
+ public static final String CONSTRAINTS_LuhnCheck_MESSAGE = "{constraints.LuhnCheck.message}";
|
|
|
+
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, Modulo 10 checksum failed */
|
|
|
+ public static final String CONSTRAINTS_Mod10Check_MESSAGE = "{constraints.Mod10Check.message}";
|
|
|
+
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, Modulo 11 checksum failed */
|
|
|
+ public static final String CONSTRAINTS_Mod11Check_MESSAGE = "{constraints.Mod11Check.message}";
|
|
|
+
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, ${modType} checksum failed */
|
|
|
+ public static final String CONSTRAINTS_ModCheck_MESSAGE = "{constraints.ModCheck.message}";
|
|
|
+
|
|
|
+ /** The key of the message: may not be empty */
|
|
|
+ public static final String CONSTRAINTS_NotBlank_MESSAGE = "{constraints.NotBlank.message}";
|
|
|
+
|
|
|
+ /** The key of the message: may not be empty */
|
|
|
+ public static final String CONSTRAINTS_NotEmpty_MESSAGE = "{constraints.NotEmpty.message}";
|
|
|
+
|
|
|
+ /** The key of the message: script expression "{script}" didn't evaluate to true */
|
|
|
+ public static final String CONSTRAINTS_ParametersScriptAssert_MESSAGE = "{constraints.ParametersScriptAssert.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be between {min} and {max} */
|
|
|
+ public static final String CONSTRAINTS_Range_MESSAGE = "{constraints.Range.message}";
|
|
|
+
|
|
|
+ /** The key of the message: may have unsafe html content */
|
|
|
+ public static final String CONSTRAINTS_SafeHtml_MESSAGE = "{constraints.SafeHtml.message}";
|
|
|
+
|
|
|
+ /** The key of the message: script expression "{script}" didn't evaluate to true */
|
|
|
+ public static final String CONSTRAINTS_ScriptAssert_MESSAGE = "{constraints.ScriptAssert.message}";
|
|
|
+
|
|
|
+ /** The key of the message: must be a valid URL */
|
|
|
+ public static final String CONSTRAINTS_URL_MESSAGE = "{constraints.URL.message}";
|
|
|
+
|
|
|
+ /** The key of the message: is required */
|
|
|
+ public static final String CONSTRAINTS_Required_MESSAGE = "{constraints.Required.message}";
|
|
|
+
|
|
|
+ /** The key of the message: could not login */
|
|
|
+ public static final String ERRORS_LOGIN_FAILURE = "{errors.login.failure}";
|
|
|
+
|
|
|
+ /** The key of the message: retry because of illegal transition */
|
|
|
+ public static final String ERRORS_APP_ILLEGAL_TRANSITION = "{errors.app.illegal.transition}";
|
|
|
+
|
|
|
+ /** The key of the message: others might be updated, so retry */
|
|
|
+ public static final String ERRORS_APP_DB_ALREADY_DELETED = "{errors.app.db.already.deleted}";
|
|
|
+
|
|
|
+ /** The key of the message: others might be updated, so retry */
|
|
|
+ public static final String ERRORS_APP_DB_ALREADY_UPDATED = "{errors.app.db.already.updated}";
|
|
|
+
|
|
|
+ /** The key of the message: already existing data, so retry */
|
|
|
+ public static final String ERRORS_APP_DB_ALREADY_EXISTS = "{errors.app.db.already.exists}";
|
|
|
+
|
|
|
/** The key of the message: <div class="alert"><button type="button" class="close" data-dismiss="alert">×</button> */
|
|
|
public static final String ERRORS_front_header = "{errors.front_header}";
|
|
|
|
|
@@ -444,6 +546,506 @@ public class FessMessages extends FessLabels {
|
|
|
/** The key of the message: Deleted data. */
|
|
|
public static final String SUCCESS_crud_delete_crud_table = "{success.crud_delete_crud_table}";
|
|
|
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.AssertFalse.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be false
|
|
|
+ * comment: ---------------
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsAssertFalseMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_AssertFalse_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.AssertTrue.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be true
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsAssertTrueMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_AssertTrue_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.DecimalMax.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be less than ${inclusive == true ? 'or equal to ' : ''}{value}
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsDecimalMaxMessage(String property, String value) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_DecimalMax_MESSAGE, value));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.DecimalMin.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be greater than ${inclusive == true ? 'or equal to ' : ''}{value}
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsDecimalMinMessage(String property, String value) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_DecimalMin_MESSAGE, value));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Digits.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected)
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param integer The parameter integer for message. (NotNull)
|
|
|
+ * @param fraction The parameter fraction for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsDigitsMessage(String property, String integer, String fraction) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Digits_MESSAGE, integer, fraction));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Future.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be in the future
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsFutureMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Future_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Max.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be less than or equal to {value}
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsMaxMessage(String property, String value) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Max_MESSAGE, value));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Min.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be greater than or equal to {value}
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsMinMessage(String property, String value) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Min_MESSAGE, value));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.NotNull.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: may not be null
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsNotNullMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_NotNull_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Null.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be null
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsNullMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Null_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Past.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be in the past
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsPastMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Past_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Pattern.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must match "{regexp}"
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param regexp The parameter regexp for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsPatternMessage(String property, String regexp) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Pattern_MESSAGE, regexp));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Size.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: size must be between {min} and {max}
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param min The parameter min for message. (NotNull)
|
|
|
+ * @param max The parameter max for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsSizeMessage(String property, String min, String max) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Size_MESSAGE, min, max));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.CreditCardNumber.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: invalid credit card number
|
|
|
+ * comment: -------------------
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsCreditCardNumberMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_CreditCardNumber_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.EAN.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: invalid {type} barcode
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param type The parameter type for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsEanMessage(String property, String type) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_EAN_MESSAGE, type));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Email.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: not a well-formed email address
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsEmailMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Email_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Length.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: length must be between {min} and {max}
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param min The parameter min for message. (NotNull)
|
|
|
+ * @param max The parameter max for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsLengthMessage(String property, String min, String max) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Length_MESSAGE, min, max));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.LuhnCheck.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: The check digit for ${value} is invalid, Luhn Modulo 10 checksum failed
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsLuhnCheckMessage(String property, String value) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_LuhnCheck_MESSAGE, value));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Mod10Check.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: The check digit for ${value} is invalid, Modulo 10 checksum failed
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsMod10CheckMessage(String property, String value) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Mod10Check_MESSAGE, value));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Mod11Check.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: The check digit for ${value} is invalid, Modulo 11 checksum failed
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsMod11CheckMessage(String property, String value) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Mod11Check_MESSAGE, value));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.ModCheck.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: The check digit for ${value} is invalid, ${modType} checksum failed
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param value The parameter value for message. (NotNull)
|
|
|
+ * @param modType The parameter modType for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsModCheckMessage(String property, String value, String modType) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_ModCheck_MESSAGE, value, modType));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.NotBlank.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: may not be empty
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsNotBlankMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_NotBlank_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.NotEmpty.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: may not be empty
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsNotEmptyMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_NotEmpty_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.ParametersScriptAssert.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: script expression "{script}" didn't evaluate to true
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param script The parameter script for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsParametersScriptAssertMessage(String property, String script) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_ParametersScriptAssert_MESSAGE, script));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Range.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be between {min} and {max}
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param min The parameter min for message. (NotNull)
|
|
|
+ * @param max The parameter max for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsRangeMessage(String property, String min, String max) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Range_MESSAGE, min, max));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.SafeHtml.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: may have unsafe html content
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsSafeHtmlMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_SafeHtml_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.ScriptAssert.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: script expression "{script}" didn't evaluate to true
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param script The parameter script for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsScriptAssertMessage(String property, String script) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_ScriptAssert_MESSAGE, script));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.URL.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: must be a valid URL
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsUrlMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_URL_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.Required.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: is required
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsRequiredMessage(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Required_MESSAGE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'errors.login.failure' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: could not login
|
|
|
+ * comment: - - - - - - - - - -/
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addErrorsLoginFailure(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(ERRORS_LOGIN_FAILURE));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'errors.app.illegal.transition' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: retry because of illegal transition
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addErrorsAppIllegalTransition(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(ERRORS_APP_ILLEGAL_TRANSITION));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'errors.app.db.already.deleted' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: others might be updated, so retry
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addErrorsAppDbAlreadyDeleted(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(ERRORS_APP_DB_ALREADY_DELETED));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'errors.app.db.already.updated' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: others might be updated, so retry
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addErrorsAppDbAlreadyUpdated(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(ERRORS_APP_DB_ALREADY_UPDATED));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'errors.app.db.already.exists' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: already existing data, so retry
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addErrorsAppDbAlreadyExists(String property) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(ERRORS_APP_DB_ALREADY_EXISTS));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Add the created action message for the key 'errors.front_header' with parameters.
|
|
|
* <pre>
|