Class CookieBanner
java.lang.Object
io.goobi.viewer.model.administration.legal.CookieBanner
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructor.CookieBanner(CookieBanner orig) Cloning constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()getText()booleanisActive()voidsetActive(boolean active) voidSet the database id.voidsetIgnoreList(List<Long> ignoreList) set theignoreList.voidsetRequiresConsentAfter(LocalDateTime requiresConsentAfter) set therequiresConsentAfter.
-
Field Details
-
id
Unique database ID.
-
-
Constructor Details
-
CookieBanner
public CookieBanner()Empty default constructor. -
CookieBanner
Cloning constructor.- Parameters:
orig- the instance to copy
-
-
Method Details
-
setActive
public void setActive(boolean active) - Parameters:
active- set theactiveproperty
-
isActive
public boolean isActive()- Returns:
- the
activeproperty
-
getText
- Returns:
- the
textproperty
-
getId
- Returns:
- the database id
-
setId
Set the database id.- Parameters:
id- database ID to set
-
getIgnoreList
- Returns:
- the
ignoreList
-
setIgnoreList
set theignoreList.- Parameters:
ignoreList- list of user IDs that have dismissed the cookie banner
-
getRequiresConsentAfter
- Returns:
- the
requiresConsentAfter
-
setRequiresConsentAfter
set therequiresConsentAfter.- Parameters:
requiresConsentAfter- date/time after which re-consent is required
-