Package org.apache.wicket.pageStore
Class DelegatingPageStore
- java.lang.Object
-
- org.apache.wicket.pageStore.DelegatingPageStore
-
- All Implemented Interfaces:
IPageStore
- Direct Known Subclasses:
AsynchronousPageStore
,CachingPageStore
,CryptingPageStore
,GroupingPageStore
,RequestPageStore
,SerializingPageStore
public abstract class DelegatingPageStore extends Object implements IPageStore
AnIPageStore
that delegates to another storage.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DelegatingPageStore(IPageStore delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPage(IPageContext context, IManageablePage page)
Stores the page-void
destroy()
Destroy the store.void
detach(IPageContext context)
Detach from the current context.void
end(IPageContext context)
End the current context.IPageStore
getDelegate()
IManageablePage
getPage(IPageContext context, int id)
Restores a page from storage.void
removeAllPages(IPageContext context)
All pages should be removed from storage for the given context.void
removePage(IPageContext context, IManageablePage page)
Removes a page from storage.void
revertPage(IPageContext context, IManageablePage page)
Revert adding a page - optional operation.boolean
supportsVersioning()
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:
supportsVersioning
in interfaceIPageStore
-
addPage
public void addPage(IPageContext context, IManageablePage page)
Description copied from interface:IPageStore
Stores the page-- Specified by:
addPage
in interfaceIPageStore
- Parameters:
context
- the context of the pagepage
- the page.
-
removePage
public void removePage(IPageContext context, IManageablePage page)
Description copied from interface:IPageStore
Removes a page from storage.- Specified by:
removePage
in interfaceIPageStore
- Parameters:
context
- the context of the pagepage
- the page.
-
removeAllPages
public void removeAllPages(IPageContext context)
Description copied from interface:IPageStore
All pages should be removed from storage for the given context.- Specified by:
removeAllPages
in interfaceIPageStore
- Parameters:
context
- the context of the pages
-
getPage
public IManageablePage getPage(IPageContext context, int id)
Description copied from interface:IPageStore
Restores a page from storage.- Specified by:
getPage
in interfaceIPageStore
- Parameters:
context
- the context of the pageid
- the id of the page.- Returns:
- the page
-
revertPage
public void revertPage(IPageContext context, IManageablePage page)
Description copied from interface:IPageStore
Revert adding a page - optional operation.- Specified by:
revertPage
in interfaceIPageStore
page
- the page that should be reverted
-
end
public void end(IPageContext context)
Description copied from interface:IPageStore
End the current context.- Specified by:
end
in interfaceIPageStore
-
detach
public void detach(IPageContext context)
Description copied from interface:IPageStore
Detach from the current context.- Specified by:
detach
in interfaceIPageStore
- Parameters:
context
- the context of the pages
-
destroy
public void destroy()
Description copied from interface:IPageStore
Destroy the store.- Specified by:
destroy
in interfaceIPageStore
-
-