Class DisclaimerBean

  • All Implemented Interfaces:

    public class DisclaimerBean
    extends Object
    implements 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
    See Also:
    Serialized Form
    • Constructor Detail

      • DisclaimerBean

        public DisclaimerBean()
        Default constructor using the IDAO from the DataManager class
      • DisclaimerBean

        public DisclaimerBean​(IDAO dao,
                              SolrSearchIndex searchIndex)
        Constructor for testing purposes
        dao - the IDAO implementation to use
    • Method Detail

      • getDisclaimer

        public Disclaimer getDisclaimer()
        not needed if disclaimer is realized as a sweet alert which is created from getDisclaimerConfig()
        Get the stored disclaimer to display on a viewer web-page. Do not use for modifications
        the cookie banner stored in the DAO
      • getDisclaimerConfig

        public String getDisclaimerConfig()
        The configuration object for the disclaimer to be used by the viewerJS.disclaimerModal module
        a json object