org.apache.wicket.page
Class PageManagerDecorator

java.lang.Object
  extended by org.apache.wicket.page.PageManagerDecorator
All Implemented Interfaces:
IPageManager

public class PageManagerDecorator
extends java.lang.Object
implements IPageManager

Decorator for IPageManager

Author:
igor

Constructor Summary
PageManagerDecorator(IPageManager delegate)
          Constructor
 
Method Summary
 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(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageManagerDecorator

public PageManagerDecorator(IPageManager delegate)
Constructor

Parameters:
delegate -
Method Detail

getContext

public IPageManagerContext getContext()

Specified by:
getContext in interface IPageManager
Returns:
the page manager context

getPage

public IManageablePage getPage(int id)
Retrieve page instance with given id.

Specified by:
getPage in interface IPageManager
Returns:
page instance or null

touchPage

public void touchPage(IManageablePage page)
Marks page as changed.

Specified by:
touchPage in interface IPageManager

supportsVersioning

public boolean supportsVersioning()
Returns whether this manager supports versioning. Managers that support versioning must store page snapshots.

Specified by:
supportsVersioning in interface IPageManager
Returns:
whether this page manager supports versioning

commitRequest

public void commitRequest()
Commits the changes to external storage if the manager uses it. Should also detach all pages that were touched during this request.

Specified by:
commitRequest in interface IPageManager

newSessionCreated

public void newSessionCreated()
Invoked when new session has been created.

Specified by:
newSessionCreated in interface IPageManager

sessionExpired

public void sessionExpired(java.lang.String sessionId)
Invoked when the session has been expired.

Specified by:
sessionExpired in interface IPageManager

destroy

public void destroy()
Destroy the page manager.

Specified by:
destroy in interface IPageManager


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.