Package io.goobi.viewer.managedbeans
Class DisclaimerBean
java.lang.Object
io.goobi.viewer.managedbeans.DisclaimerBean
- All Implemented Interfaces:
Serializable
Bean to check whether the disclaimer applies to a page/record as well as provide a configuration json object for the javascript This bean is
session scoped, so all stored settings are discarded outside a jsf session
- Author:
- florian
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor using the IDAO from theDataManager
classDisclaimerBean
(IDAO dao, SolrSearchIndex searchIndex) Constructor for testing purposes -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The configuration object for the disclaimer to be used by the viewerJS.disclaimerModal module
-
Constructor Details
-
DisclaimerBean
public DisclaimerBean()Default constructor using the IDAO from theDataManager
class -
DisclaimerBean
Constructor for testing purposes- Parameters:
dao
- the IDAO implementation to usesearchIndex
-
-
-
Method Details
-
getDisclaimer
Deprecated.not needed if disclaimer is realized as a sweet alert which is created fromgetDisclaimerConfig()
Get the stored disclaimer to display on a viewer web-page. Do not use for modifications- Returns:
- the cookie banner stored in the DAO
-
getDisclaimerConfig
The configuration object for the disclaimer to be used by the viewerJS.disclaimerModal module- Returns:
- a json object
-
getDisclaimerConfig()