public class MockPageManager extends Object implements IPageManager
IPageManager
used for testing.Constructor and Description |
---|
MockPageManager()
Construct.
|
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.
|
void |
setContext(IPageManagerContext context) |
boolean |
supportsVersioning()
Returns whether this manager supports versioning.
|
void |
touchPage(IManageablePage page)
Marks page as changed.
|
public void commitRequest()
IPageManager
commitRequest
in interface IPageManager
public void destroy()
IPageManager
destroy
in interface IPageManager
public IManageablePage getPage(int id)
IPageManager
getPage
in interface IPageManager
id
- the id of the page to loadnull
public void newSessionCreated()
IPageManager
newSessionCreated
in interface IPageManager
public void sessionExpired(String sessionId)
IPageManager
sessionExpired
in interface IPageManager
sessionId
- the id of the expired sessionpublic void setContext(IPageManagerContext context)
context
- public boolean supportsVersioning()
IPageManager
supportsVersioning
in interface IPageManager
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.public IPageManagerContext getContext()
getContext
in interface IPageManager
IPageManager.getContext()
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.