Class PageHelper

    • Field Detail

      • ROLE

        public static final String ROLE
        The component role.
    • Method Detail

      • isCacheable

        public boolean isCacheable​(Page page)
        Tests if a page is cacheable, i.e:
        • its access is not restricted
        • all its page elements are cacheable
        Parameters:
        page - The page to test.
        Returns:
        true if the page is cacheable, false otherwise.
      • isCaptchaRequired

        public boolean isCaptchaRequired​(Page page)
        Determines if a captcha is required on forms of the page
        Parameters:
        page - The page to test
        Returns:
        true if a captcha is required
      • getAllContents

        public List<ContentgetAllContents​(Page page)
        Get all the contents inside a page
        Parameters:
        page - page to search
        Returns:
        list of contents in this page