Class Disclaimer

java.lang.Object
io.goobi.viewer.model.administration.legal.Disclaimer

@Entity public class Disclaimer extends Object
Class to persist settings for the disclaimer modal. Only one instance of this class should be persisted in the database
Author:
florian
  • Field Details

    • id

      protected Long id
      Unique database ID.
  • Constructor Details

    • Disclaimer

      public Disclaimer()
      Empty default constructor
    • Disclaimer

      public Disclaimer(Disclaimer orig)
      cloning constructor
      Parameters:
      orig -
  • Method Details

    • getId

      public Long getId()
      database id
      Returns:
      the id
    • setId

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

      public TranslatedText getText()
      the text to show in the disclaimer
      Returns:
      the text
    • setText

      public void setText(TranslatedText text)
      set the disclaimer text
      Parameters:
      text - the text to set
    • isActive

      public boolean isActive()
      get if the disclaimer is active
      Returns:
      true if the disclaimer is to be shown at all
    • setActive

      public void setActive(boolean active)
      set the disclaimer to active/inactive state
      Parameters:
      active - the active to set
    • getRequiresConsentAfter

      public LocalDateTime getRequiresConsentAfter()
      get the date after which acceptance of the disclaimer must have happened to be valid
      Returns:
      a date
    • setRequiresConsentAfter

      public void setRequiresConsentAfter(LocalDateTime requiresConsentAfter)
      set the date after which acceptance of the disclaimer must have happened to be valid
      Parameters:
      requiresConsentAfter - the requiresConsentAfter to set
    • getDisplayScope

      public DisplayScope getDisplayScope()
    • setDisplayScope

      public void setDisplayScope(DisplayScope displayScope)
    • getAcceptanceScope

      public ConsentScope getAcceptanceScope()
      get the acceptanceScope of the disclaimer
      Returns:
      the ConsentScope
    • setAcceptanceScope

      public void setAcceptanceScope(ConsentScope acceptanceScope)
      set the acceptanceScope of the disclaimer
      Parameters:
      acceptanceScope - a ConsentScope