Class TermsOfUseEditBean

java.lang.Object
io.goobi.viewer.managedbeans.TermsOfUseEditBean
All Implemented Interfaces:
IPolyglott, Serializable

@Named("termsOfUseEditBean") @ViewScoped public class TermsOfUseEditBean extends Object implements Serializable, IPolyglott
Used to edit terms of use in admin backend. Creates a local copy of the global terms of use object and overwrites the global object on save
Author:
florian
See Also:
  • Constructor Details

    • TermsOfUseEditBean

      public TermsOfUseEditBean()
  • Method Details

    • init

      @PostConstruct public void init()
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String value)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String value)
    • setActivated

      public void setActivated(boolean active)
    • isActivated

      public boolean isActivated()
    • 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
    • getSelectedLocale

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

      public String getSelectedLanguage()
    • save

      public void save()
    • resetUserAcceptance

      public void resetUserAcceptance() throws DAOException
      Throws:
      DAOException
    • isComplete

      public boolean isComplete(Locale locale)
      Description copied from interface: IPolyglott
      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
      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)
      Description copied from interface: IPolyglott
      Only meaningfull for the default language for which all required fields must be filled
      Specified by:
      isValid in interface IPolyglott
      Returns:
      true if all required fields contain a value in the given locale
    • isEmpty

      public boolean isEmpty(Locale locale)
      Description copied from interface: IPolyglott
      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
      Returns:
      true if no fields are filled for the given locale