Package org.apache.wicket.pageStore
Class DelegatingPageStore
- java.lang.Object
-
- org.apache.wicket.pageStore.DelegatingPageStore
-
- All Implemented Interfaces:
IPageStore
- Direct Known Subclasses:
AsynchronousPageStore,CryptingPageStore,GroupingPageStore,InSessionPageStore,RequestPageStore,SerializingPageStore
public abstract class DelegatingPageStore extends java.lang.Object implements IPageStore
AnIPageStorethat delegates to another storage.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDelegatingPageStore(IPageStore delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPage(IPageContext context, IManageablePage page)Stores the page-voiddestroy()Destroy the store.voiddetach(IPageContext context)Detach from the current context.IPageStoregetDelegate()IManageablePagegetPage(IPageContext context, int id)Restores a page from storage.voidremoveAllPages(IPageContext context)All pages should be removed from storage for the given context.voidremovePage(IPageContext context, IManageablePage page)Removes a page from storage.booleansupportsVersioning()Versioning is supported depending on the delegate.-
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.pageStore.IPageStore
canBeAsynchronous
-
-
-
-
Constructor Detail
-
DelegatingPageStore
protected DelegatingPageStore(IPageStore delegate)
-
-
Method Detail
-
getDelegate
public IPageStore getDelegate()
-
supportsVersioning
public boolean supportsVersioning()
Versioning is supported depending on the delegate.- Specified by:
supportsVersioningin interfaceIPageStore
-
addPage
public void addPage(IPageContext context, IManageablePage page)
Description copied from interface:IPageStoreStores the page-- Specified by:
addPagein interfaceIPageStore- Parameters:
context- the context of the page
-
removePage
public void removePage(IPageContext context, IManageablePage page)
Description copied from interface:IPageStoreRemoves a page from storage.- Specified by:
removePagein interfaceIPageStore- Parameters:
context- the context of the page
-
removeAllPages
public void removeAllPages(IPageContext context)
Description copied from interface:IPageStoreAll pages should be removed from storage for the given context.- Specified by:
removeAllPagesin interfaceIPageStore- Parameters:
context- the context of the pages
-
getPage
public IManageablePage getPage(IPageContext context, int id)
Description copied from interface:IPageStoreRestores a page from storage.- Specified by:
getPagein interfaceIPageStore- Parameters:
context- the context of the pageid- the id of the page.- Returns:
- the page
-
detach
public void detach(IPageContext context)
Description copied from interface:IPageStoreDetach from the current context.- Specified by:
detachin interfaceIPageStore- Parameters:
context- the context of the pages
-
destroy
public void destroy()
Description copied from interface:IPageStoreDestroy the store.- Specified by:
destroyin interfaceIPageStore
-
-