Class SystemHelper.SystemAnnouncement
java.lang.Object
org.ametys.runtime.plugins.admin.system.SystemHelper.SystemAnnouncement
- Enclosing class:
- SystemHelper
Class representing the system announcement file
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(String lang, String message) Add a message to the list of announcementsGet the messages by languageboolean
Is the system announcement available ?void
setAvailable
(boolean available) Set the availability of the system announcement
-
Constructor Details
-
SystemAnnouncement
public SystemAnnouncement()Constructor
-
-
Method Details
-
isAvailable
Is the system announcement available ?- Returns:
- true if the system announcement is available, false otherwise
-
getMessages
Get the messages by language- Returns:
- the messages by languaga
-
setAvailable
Set the availability of the system announcement- Parameters:
available
- true to set the system announcement available, false otherwise
-
addMessage
Add a message to the list of announcements- Parameters:
lang
- the language of the messagemessage
- the message itself
-