public class PageManagerDecorator extends Object implements IPageManager
IPageManager| Constructor and Description |
|---|
PageManagerDecorator(IPageManager delegate)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all data for the current session.
|
void |
commitRequest()
Commits the changes to external storage if the manager uses it.
|
void |
destroy()
Destroy the page manager.
|
IPageManagerContext |
getContext() |
IManageablePage |
getPage(int id)
Retrieve page instance with given id.
|
void |
newSessionCreated()
Invoked when new session has been created.
|
void |
removePage(IManageablePage page)
Removes a page from the
IPageStore and
IDataStore. |
boolean |
supportsVersioning()
Returns whether this manager supports versioning.
|
void |
touchPage(IManageablePage page)
Marks page as changed.
|
void |
untouchPage(IManageablePage page)
Marks page as non-changed.
|
public PageManagerDecorator(IPageManager delegate)
delegate - public IPageManagerContext getContext()
getContext in interface IPageManagerpublic IManageablePage getPage(int id)
IPageManagergetPage in interface IPageManagerid - the id of the page to loadnullpublic void removePage(IManageablePage page)
IPageManagerIPageStore and
IDataStore. Any attempt to access it later
will lead to PageExpiredExceptionremovePage in interface IPageManagerpage - The page instance to remove from the storespublic void touchPage(IManageablePage page)
IPageManagerNote:Only stateful pages are stored.
touchPage in interface IPageManagerpage - the page that should be stored in the page stores at the end of the request.public void untouchPage(IManageablePage page)
IPageManageruntouchPage in interface IPageManagerpage - the page that should not be stored in the page stores at the end of the request.public boolean supportsVersioning()
IPageManagersupportsVersioning in interface IPageManagerpublic void commitRequest()
IPageManagercommitRequest in interface IPageManagerpublic void newSessionCreated()
IPageManagernewSessionCreated in interface IPageManagerpublic void clear()
IPageManagerclear in interface IPageManagerpublic void destroy()
IPageManagerdestroy in interface IPageManagerCopyright © 2006–2018 Apache Software Foundation. All rights reserved.