|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.page.AbstractPageManager
public abstract class AbstractPageManager
Convenience class for IPageManager
implementations. Subclass should extend
RequestAdapter
and override newRequestAdapter(IPageManagerContext)
method to return it's
RequestAdapter
implementation.
Constructor Summary | |
---|---|
AbstractPageManager(IPageManagerContext context)
Construct. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wicket.page.IPageManager |
---|
destroy |
Constructor Detail |
---|
public AbstractPageManager(IPageManagerContext context)
context
- Method Detail |
---|
protected abstract RequestAdapter newRequestAdapter(IPageManagerContext context)
context
-
public abstract boolean supportsVersioning()
IPageManager
supportsVersioning
in interface IPageManager
IPageManager.supportsVersioning()
public abstract void sessionExpired(String sessionId)
IPageManager
sessionExpired
in interface IPageManager
sessionId
- the id of the expired sessionIPageManager.sessionExpired(java.lang.String)
public IPageManagerContext getContext()
getContext
in interface IPageManager
protected RequestAdapter getRequestAdapter()
newRequestAdapter(IPageManagerContext)
public void commitRequest()
IPageManager
commitRequest
in interface IPageManager
IPageManager.commitRequest()
public IManageablePage getPage(int id)
IPageManager
getPage
in interface IPageManager
id
- the id of the page to load
null
IPageManager.getPage(int)
public void newSessionCreated()
IPageManager
newSessionCreated
in interface IPageManager
IPageManager.newSessionCreated()
public void touchPage(IManageablePage page)
IPageManager
Note:Only stateful pages are stored.
touchPage
in interface IPageManager
page
- the page that should be stored in the page stores at the end of the request.IPageManager.touchPage(org.apache.wicket.page.IManageablePage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |