Class CookieBanner

java.lang.Object
io.goobi.viewer.model.administration.legal.CookieBanner
All Implemented Interfaces:
Serializable

@Entity public class CookieBanner extends Object implements Serializable
Class to persist settings for the cookie banner. Only one instance of this class should be persisted in the database
Author:
Florian Alpers
See Also:
  • Field Details

    • id

      protected Long id
      Unique database ID.
  • Constructor Details

    • CookieBanner

      public CookieBanner()
      Empty default constructor.
    • CookieBanner

      public CookieBanner(CookieBanner orig)
      Cloning constructor.
      Parameters:
      orig - the instance to copy
  • Method Details

    • setActive

      public void setActive(boolean active)
      Parameters:
      active - set the active property
    • isActive

      public boolean isActive()
      Returns:
      the active property
    • getText

      public TranslatedText getText()
      Returns:
      the text property
    • getId

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

      public void setId(Long id)
      Set the database id.
      Parameters:
      id - database ID to set
    • getIgnoreList

      public List<Long> getIgnoreList()
      Returns:
      the ignoreList
    • setIgnoreList

      public void setIgnoreList(List<Long> ignoreList)
      set the ignoreList.
      Parameters:
      ignoreList - list of user IDs that have dismissed the cookie banner
    • getRequiresConsentAfter

      public LocalDateTime getRequiresConsentAfter()
      Returns:
      the requiresConsentAfter
    • setRequiresConsentAfter

      public void setRequiresConsentAfter(LocalDateTime requiresConsentAfter)
      set the requiresConsentAfter.
      Parameters:
      requiresConsentAfter - date/time after which re-consent is required