pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.content
Class AbstractContentDisplayer

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
AbstractContentDisplayer()
           
 
Method Summary
static AbstractBasicContent chooseContent(Command command, org.hibernate.Session s)
          actually chooses the right AbstractBasicContent for the given Command.
protected  java.util.List<SitemapNode> getChildrenForContentGroup(ServiceRequest request, org.hibernate.Session s)
          returns the children of the SitemapNode specified by the given Command.
protected  void prepareRedirect(ServiceRequest request, AbstractBasicContent abc)
          prepares a redirect, if the suffix of the Command does not match the suffix of the Content.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContentDisplayer

public AbstractContentDisplayer()
Method Detail

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 Command
s - 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 request
abc - 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 request
s - the hibernate session
Returns:
the SitemapNode