- All Known Implementing Classes:
MockPageManager
,PageManager
public interface IPageManager
A manager of pages - facade between
Page
s and IPageStore
s they are stored in.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all pages.void
destroy()
Destroy when application is destroyed.void
detach()
Detach at end of request.default void
end()
End the request.getPage
(int pageId) Get a pageGet the storage of pages, optional.void
removePage
(IManageablePage page) Remove a pageboolean
Is versioning of pages supported, seeIPageStore.supportsVersioning()
.void
touchPage
(IManageablePage page) Add a page.void
untouchPage
(IManageablePage page) Marks page as non-changed.
-
Method Details
-
supportsVersioning
boolean supportsVersioning()Is versioning of pages supported, seeIPageStore.supportsVersioning()
.- Returns:
true
if versioning is supported
-
getPage
Get a page- Parameters:
pageId
- id of page- Returns:
- page, may be
null
-
removePage
Remove a page- Parameters:
page
- page to remove
-
touchPage
Add a page.- Parameters:
page
- page to add
-
untouchPage
Marks page as non-changed. Could be used in Ajax requests to avoid storing the page if no changes have happened.- Parameters:
page
- the page that should not be stored in the page stores at the end of the request.
-
clear
void clear()Clear all pages. -
end
End the request. -
detach
void detach()Detach at end of request. -
destroy
void destroy()Destroy when application is destroyed. -
getPageStore
Get the storage of pages, optional.- Returns:
- store or
null
-