public class PageManagerDecorator extends Object implements IPageManager
IPageManager| Constructor and Description |
|---|
PageManagerDecorator(IPageManager delegate)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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 |
sessionExpired(String sessionId)
Invoked when the session has been expired.
|
boolean |
supportsVersioning()
Returns whether this manager supports versioning.
|
void |
touchPage(IManageablePage page)
Marks page as changed.
|
public PageManagerDecorator(IPageManager delegate)
delegate - public IPageManagerContext getContext()
getContext in interface IPageManagerpublic IManageablePage getPage(int id)
getPage in interface IPageManagerid - the id of the page to loadnullpublic void touchPage(IManageablePage page)
Note: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 boolean supportsVersioning()
supportsVersioning in interface IPageManagerpublic void commitRequest()
commitRequest in interface IPageManagerpublic void newSessionCreated()
newSessionCreated in interface IPageManagerpublic void sessionExpired(String sessionId)
sessionExpired in interface IPageManagersessionId - the id of the expired sessionpublic void destroy()
destroy in interface IPageManagerCopyright © 2006–2014 Apache Software Foundation. All rights reserved.