Class Warning
- java.lang.Object
-
- org.silverpeas.core.admin.component.model.Warning
-
public class Warning extends Object
A list of message with an attribute to specify whether the warning message MUST be displayed on all changes or not (default).
-
-
Constructor Summary
Constructors Constructor Description Warning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
getMessages()
Gets a copy of registered messages.boolean
isAlways()
Must the warning be displayed whatever the parameter value ?void
putMessage(String language, String message)
Puts a localized message directly linked to theWarning
instance.void
setAlways(boolean always)
Sets the data returned byisAlways()
method.
-
-
-
Method Detail
-
isAlways
public boolean isAlways()
Must the warning be displayed whatever the parameter value ?- Returns:
- true if the warning have to be displayed at any parameter value change, false to display the warning only when the parameter value change to true.
-
setAlways
public void setAlways(boolean always)
Sets the data returned byisAlways()
method.- Parameters:
always
- a boolean.- See Also:
isAlways()
-
getMessages
protected Map<String,String> getMessages()
Gets a copy of registered messages.- Returns:
- messages indexed by languages.
-
-