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.
|
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 IPageManager
public IManageablePage getPage(int id)
IPageManager
getPage
in interface IPageManager
id
- the id of the page to loadnull
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 void untouchPage(IManageablePage page)
IPageManager
untouchPage
in interface IPageManager
page
- the page that should not be stored in the page stores at the end of the request.public boolean supportsVersioning()
IPageManager
supportsVersioning
in interface IPageManager
public void commitRequest()
IPageManager
commitRequest
in interface IPageManager
public void newSessionCreated()
IPageManager
newSessionCreated
in interface IPageManager
public void clear()
IPageManager
clear
in interface IPageManager
public void destroy()
IPageManager
destroy
in interface IPageManager
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.