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 Alpers
  • 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 - disclaimer instance to clone
  • Method Details

    • getId

      public Long getId()
      Database id.
      Returns:
      the database primary key of this disclaimer
    • setId

      public void setId(Long id)
      Set the database id.
      Parameters:
      id - the database primary key of this disclaimer
    • getText

      public TranslatedText getText()
      The text to show in the disclaimer.
      Returns:
      the translated text displayed in the disclaimer
    • setText

      public void setText(TranslatedText text)
      Set the disclaimer text.
      Parameters:
      text - the translated text to display in the disclaimer
    • 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 - true to enable display of the disclaimer, false to hide it
    • 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 cutoff date; prior acceptances are no longer considered valid
    • 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