org.torweg.pulse.site.content
Class AbstractContentDisplayer
java.lang.Object
org.torweg.pulse.bundle.Controller
org.torweg.pulse.site.content.AbstractContentDisplayer
- Direct Known Subclasses:
- CMSContentDisplayer, CoreContentDisplayer, ShopContentDisplayer, StoreContentDisplayer, URLContentDisplayer
public class AbstractContentDisplayer
- extends Controller
abstract base class for content displayers.
- Version:
- $Revision: 1398 $
- Author:
- Thomas Weber
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContentDisplayer
public AbstractContentDisplayer()
chooseContent
public static final AbstractBasicContent chooseContent(Command command,
org.hibernate.Session s)
- actually chooses the right
AbstractBasicContent for the
given Command.
- Parameters:
command - the current Commands - the HibernateTM Session
- Returns:
- the
CMSContent to be displayed
prepareRedirect
protected final void prepareRedirect(ServiceRequest request, AbstractBasicContent abc)
- prepares a redirect, if the suffix of the
Command does not
match the suffix of the Content.
- Parameters:
request - the current requestabc - the content
getChildrenForContentGroup
protected java.util.List<SitemapNode> getChildrenForContentGroup(ServiceRequest request,
org.hibernate.Session s)
- returns the children of the
SitemapNode specified by the
given Command.
- Parameters:
request - the current requests - the hibernate session
- Returns:
- the
SitemapNode