Package io.goobi.viewer.managedbeans
Class DisclaimerBean
java.lang.Object
io.goobi.viewer.managedbeans.DisclaimerBean
- All Implemented Interfaces:
Serializable
JSF backing bean that checks whether the disclaimer applies to a page/record and provides a configuration JSON object for the disclaimer
JavaScript. This bean is session-scoped, so all stored settings are discarded when the JSF session ends.
- Author:
- Florian Alpers
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor using the IDAO from theDataManagerclass.DisclaimerBean(IDAO dao, SolrSearchIndex searchIndex) Creates a new testing purposes instance. -
Method Summary
Modifier and TypeMethodDescriptionThe configuration object for the disclaimer to be used by the viewerJS.disclaimerModal module.
-
Constructor Details
-
DisclaimerBean
public DisclaimerBean()Default constructor using the IDAO from theDataManagerclass. -
DisclaimerBean
Creates a new testing purposes instance.- Parameters:
dao- the IDAO implementation to usesearchIndex- Solr search index used for access condition checks
-
-
Method Details
-
getDisclaimerConfig
The configuration object for the disclaimer to be used by the viewerJS.disclaimerModal module.- Returns:
- a json object
-