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
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionempty default constructorCookieBanner(CookieBanner orig) Cloning constructor -
Method Summary
Modifier and TypeMethodDescriptiongetId()getText()booleanisActive()voidsetActive(boolean active) voidset the database idvoidsetIgnoreList(List<Long> ignoreList) set theignoreListvoidsetRequiresConsentAfter(LocalDateTime requiresConsentAfter) set therequiresConsentAfter
-
Field Details
-
id
Unique database ID.
-
-
Constructor Details
-
CookieBanner
public CookieBanner()empty default constructor -
CookieBanner
Cloning constructor- Parameters:
orig-
-
-
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-
-
getIgnoreList
- Returns:
- the
ignoreList
-
setIgnoreList
set theignoreList- Parameters:
ignoreList-
-
getRequiresConsentAfter
- Returns:
- the
requiresConsentAfter
-
setRequiresConsentAfter
set therequiresConsentAfter- Parameters:
requiresConsentAfter-
-