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