java.lang.Object
jp.ecuacion.splib.web.bean.MessagesBean
Stores messages shown on pages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStores a warn message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains all the errors.getErrorMessages(String itemKindId) Obtains all the messages related to the specified itemKindId.Obtains all the messages with itemKindId specified.Obtains all the messages without itemKindId specified.booleanReturns invalid class string if the item is invalid.voidsetErrorMessage(String message, String... itemKindIds) Sets error message.voidsetNeedsSuccessMessage(boolean needsSuccessMessage) voidsetWarnMessage(MessagesBean.WarnMessageBean warnMessage)
-
Constructor Details
-
MessagesBean
public MessagesBean()
-
-
Method Details
-
getNeedsSuccessMessage
public boolean getNeedsSuccessMessage() -
setNeedsSuccessMessage
public void setNeedsSuccessMessage(boolean needsSuccessMessage) -
getWarnMessage
-
setWarnMessage
-
setErrorMessage
Sets error message.- Parameters:
message- messageitemKindIds- itemKindIds
-
getErrorMessages
Obtains all the errors. -
getErrorMessages
Obtains all the messages related to the specified itemKindId. -
getErrorMessagesLinkedToItems
Obtains all the messages with itemKindId specified. -
getErrorMessagesNotLinkedToItems
Obtains all the messages without itemKindId specified. -
isValid
Returns invalid class string if the item is invalid.- Parameters:
itemKindId- itemKindId- Returns:
- String
-