Class MaintenanceMode

java.lang.Object
io.goobi.viewer.model.administration.MaintenanceMode
All Implemented Interfaces:
IPolyglott

@Entity public class MaintenanceMode extends Object implements IPolyglott
  • Constructor Details

    • MaintenanceMode

      public MaintenanceMode()
      Default constructor.
  • Method Details

    • getId

      public Long getId()
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • isEnabled

      public boolean isEnabled()
      Returns:
      the enabled
    • setEnabled

      public void setEnabled(boolean enabled)
      Parameters:
      enabled - the enabled to set
    • getTranslations

      public List<MaintenanceModeTranslation> getTranslations()
      Returns:
      the translations
    • setTranslations

      public void setTranslations(List<MaintenanceModeTranslation> translations)
      Parameters:
      translations - the translations to set
    • getText

      public String getText()
      Returns:
      Text value in the current language
    • getText

      public String getText(String language)
      Parameters:
      language -
      Returns:
      Text value in the given language
    • setText

      public void setText(String text)

      setText.

      Parameters:
      text - a String object.
    • setText

      public void setText(String text, String language)
      Parameters:
      text -
      language -
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isComplete

      public boolean isComplete(Locale locale)
      If this returns true, an associated language tab should have the 'already-translated' class, otherwise the '-partly-translated' class unless IPolyglott.isEmpty(Locale) also returns true
      Specified by:
      isComplete in interface IPolyglott
      Parameters:
      locale -
      Returns:
      true if IPolyglott.isValid(Locale) returns true for the given locale and all fields contain a value which have a value in the default locale. For the default locale, IPolyglott.isComplete(Locale) and IPolyglott.isValid(Locale) are identical. For implementations with only one field, both methods are also always identical
    • isValid

      public boolean isValid(Locale locale)
      Only meaningful for the default language for which all required fields must be filled
      Specified by:
      isValid in interface IPolyglott
      Parameters:
      locale -
      Returns:
      true if all required fields contain a value in the given locale
    • isEmpty

      public boolean isEmpty(Locale locale)
      If this returns true, an associated language tab should have neither the 'already-translated' nor the '-partly-translated' class
      Specified by:
      isEmpty in interface IPolyglott
      Parameters:
      locale -
      Returns:
      true if no fields are filled for the given locale
    • getSelectedLocale

      public Locale getSelectedLocale()
      Specified by:
      getSelectedLocale in interface IPolyglott
      Returns:
      the locale currently set by IPolyglott.setSelectedLocale(Locale)
    • setSelectedLocale

      public void setSelectedLocale(Locale locale)
      Description copied from interface: IPolyglott
      Set the locale to use for display and editing
      Specified by:
      setSelectedLocale in interface IPolyglott
      Parameters:
      locale -