Class SystemHelper.SystemAnnouncement

java.lang.Object
org.ametys.runtime.plugins.admin.system.SystemHelper.SystemAnnouncement
Enclosing class:
SystemHelper

public static class SystemHelper.SystemAnnouncement extends Object
Class representing the system announcement file
  • Constructor Details

  • Method Details

    • isAvailable

      public boolean 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

      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 message
      message - the message itself