public abstract class AbstractPageManager extends Object implements IPageManager
IPageManager implementations. Subclass should extend
RequestAdapter and override newRequestAdapter(IPageManagerContext) method to return it's
RequestAdapter implementation.| Constructor and Description |
|---|
AbstractPageManager(IPageManagerContext context)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commitRequest()
Commits the changes to external storage if the manager uses it.
|
IPageManagerContext |
getContext() |
IManageablePage |
getPage(int id)
Retrieve page instance with given id.
|
protected RequestAdapter |
getRequestAdapter() |
protected abstract RequestAdapter |
newRequestAdapter(IPageManagerContext context) |
void |
newSessionCreated()
Invoked when new session has been created.
|
abstract void |
sessionExpired(String sessionId)
Invoked when the session has been expired.
|
abstract boolean |
supportsVersioning()
Returns whether this manager supports versioning.
|
void |
touchPage(IManageablePage page)
Marks page as changed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroypublic AbstractPageManager(IPageManagerContext context)
context - protected abstract RequestAdapter newRequestAdapter(IPageManagerContext context)
context - public abstract boolean supportsVersioning()
IPageManagersupportsVersioning in interface IPageManagerpublic abstract void sessionExpired(String sessionId)
IPageManagersessionExpired in interface IPageManagersessionId - the id of the expired sessionpublic IPageManagerContext getContext()
getContext in interface IPageManagerprotected RequestAdapter getRequestAdapter()
newRequestAdapter(IPageManagerContext)public void commitRequest()
IPageManagercommitRequest in interface IPageManagerpublic IManageablePage getPage(int id)
IPageManagergetPage in interface IPageManagerid - the id of the page to loadnullpublic void newSessionCreated()
IPageManagernewSessionCreated in interface IPageManagerpublic 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.Copyright © 2006–2014 Apache Software Foundation. All rights reserved.