org.apache.wicket.page
Interface IPageManager

All Known Implementing Classes:
AbstractPageManager, MockPageManager, PageManagerDecorator, PageStoreManager

public interface IPageManager

Page manager.

Author:
Matej Knopp

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.
 

Method Detail

getContext

IPageManagerContext getContext()
Returns:
the page manager context

getPage

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

Parameters:
id -
Returns:
page instance or null
Throws:
CouldNotLockPageException

touchPage

void touchPage(IManageablePage page)
               throws CouldNotLockPageException
Marks page as changed.

Parameters:
page -
Throws:
CouldNotLockPageException

supportsVersioning

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

Returns:
whether this page manager supports versioning

commitRequest

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


newSessionCreated

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

Parameters:
context -

sessionExpired

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

Parameters:
sessionId -

destroy

void destroy()
Destroy the page manager.



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