Interface IPageStore

    • Method Detail

      • supportsVersioning

        boolean supportsVersioning()
        Is versioning of pages supported, i.e. when an altered page instance has been stored in this store, can the previous state of that page still be retrieved under its former page id. Most implementations achieve this by keeping a copy of the page instance, e.g. by means of serialization.
      • addPage

        void addPage​(IPageContext context,
                     IManageablePage page)
        Stores the page-
        Parameters:
        context - the context of the page
        page - the page.
      • removePage

        void removePage​(IPageContext context,
                        IManageablePage page)
        Removes a page from storage.
        Parameters:
        context - the context of the page
        page - the page.
      • removeAllPages

        void removeAllPages​(IPageContext context)
        All pages should be removed from storage for the given context.
        Parameters:
        context - the context of the pages
      • revertPage

        default void revertPage​(IPageContext context,
                                IManageablePage page)
        Revert adding a page - optional operation.
        Parameters:
        page - the page that should be reverted
      • getPage

        IManageablePage getPage​(IPageContext context,
                                int id)
        Restores a page from storage.
        Parameters:
        context - the context of the page
        id - the id of the page.
        Returns:
        the page
      • detach

        default void detach​(IPageContext context)
        Detach from the current context.
        Parameters:
        context - the context of the pages
      • destroy

        default void destroy()
        Destroy the store.