Class PageModel


  • public class PageModel
    extends Object
    This model represents a single page.
    Since:
    9.2
    Author:
    A.Pragt
    • Constructor Detail

      • PageModel

        public PageModel​(String csrfToken,
                         LanguageConfiguration language,
                         List<DefaultMessage> messages,
                         List<ElementModel> elements)
        Parameters:
        csrfToken - the current csrf token
        language - the language configuration, not null.
        messages - messages related to the page
        elements - all elements on the page
    • Method Detail

      • getLanguage

        public LanguageConfiguration getLanguage()
        Returns the page language.
        Returns:
        Page language, not null.
      • getMessages

        public List<DefaultMessage> getMessages()
        Returns the default messages;
        Returns:
        DefaultMessages messages, not null
      • getElements

        public List<ElementModel> getElements()
        Returns the elements on the page.
        Returns:
        The elements on the page, not null.
      • getCsrfToken

        public String getCsrfToken()
        Returns the CSRF token that should be sent with all PUT/POST/DELETE requests from this page
        Returns:
        the CSRF token