Class Disclaimer
java.lang.Object
io.goobi.viewer.model.administration.legal.Disclaimer
Class to persist settings for the disclaimer modal. Only one instance of this class should be persisted in the database
- Author:
- florian
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget theacceptanceScope
of the disclaimergetId()
database idget the date after which acceptance of the disclaimer must have happened to be validgetText()
the text to show in the disclaimerboolean
isActive()
get if the disclaimer is activevoid
setAcceptanceScope
(ConsentScope acceptanceScope) set theacceptanceScope
of the disclaimervoid
setActive
(boolean active) set the disclaimer to active/inactive statevoid
setDisplayScope
(DisplayScope displayScope) void
set the database idvoid
setRequiresConsentAfter
(LocalDateTime requiresConsentAfter) set the date after which acceptance of the disclaimer must have happened to be validvoid
setText
(TranslatedText text) set the disclaimer text
-
Field Details
-
id
Unique database ID.
-
-
Constructor Details
-
Disclaimer
public Disclaimer()Empty default constructor -
Disclaimer
cloning constructor- Parameters:
orig
-
-
-
Method Details
-
getId
database id- Returns:
- the id
-
setId
set the database id- Parameters:
id
- the id to set
-
getText
the text to show in the disclaimer- Returns:
- the text
-
setText
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
get the date after which acceptance of the disclaimer must have happened to be valid- Returns:
- a date
-
setRequiresConsentAfter
set the date after which acceptance of the disclaimer must have happened to be valid- Parameters:
requiresConsentAfter
- the requiresConsentAfter to set
-
getDisplayScope
-
setDisplayScope
-
getAcceptanceScope
get theacceptanceScope
of the disclaimer- Returns:
- the
ConsentScope
-
setAcceptanceScope
set theacceptanceScope
of the disclaimer- Parameters:
acceptanceScope
- aConsentScope
-