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.component.cms
Class CMSContentDisplayerResult

java.lang.Object
  extended by org.torweg.pulse.site.content.ContentResult
      extended by org.torweg.pulse.component.cms.CMSContentDisplayerResult
All Implemented Interfaces:
ExtendedJDOMable, JDOMable, Result

public class CMSContentDisplayerResult
extends ContentResult

Version:
$Revision: 1464 $
Author:
Thomas Weber

Constructor Summary
CMSContentDisplayerResult(CMSContent c, ServiceRequest r)
          creates a new CMSContentDisplayerResult for the given CMSContent.
CMSContentDisplayerResult(ContentGroup c, java.util.List<SitemapNode> children, ServiceRequest r)
          creates a new CMSContentDisplayerResult for the given ContentGroup.
 
Method Summary
 org.jdom.Element deserializeToJDOM(ServiceRequest r)
          returns an extended JDOM representation of the Result encapsuling the Content.
 void setBaseCommand(java.lang.String command)
          sets the base Command required to load a Page of the CMSContent.
 void setPageId(java.lang.Long id)
          sets the id of the requested Page.
 
Methods inherited from class org.torweg.pulse.site.content.ContentResult
deserializeChildren, deserializeToJDOM, getChildren, getContent, getRequest, setChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSContentDisplayerResult

public CMSContentDisplayerResult(CMSContent c, ServiceRequest r)
creates a new CMSContentDisplayerResult for the given CMSContent.

Parameters:
c - the CMSContent to be displayed
r - the current request

CMSContentDisplayerResult

public CMSContentDisplayerResult(ContentGroup c,
                                 java.util.List<SitemapNode> children, ServiceRequest r)
creates a new CMSContentDisplayerResult for the given ContentGroup.

Parameters:
c - the content group
children - the children
r - the request
Method Detail

setPageId

public final void setPageId(java.lang.Long id)
sets the id of the requested Page.

Parameters:
id - the id of the Page

setBaseCommand

public final void setBaseCommand(java.lang.String command)
sets the base Command required to load a Page of the CMSContent.

The Parameter <em>page</em> has still to be added.

Parameters:
command - the URI of the base Command as a String

deserializeToJDOM

public org.jdom.Element deserializeToJDOM(ServiceRequest r)
Description copied from class: ContentResult
returns an extended JDOM representation of the Result encapsuling the Content.

Specified by:
deserializeToJDOM in interface ExtendedJDOMable
Overrides:
deserializeToJDOM in class ContentResult
Parameters:
r - the current request
Returns:
a JDOM representation of the result
See Also:
ContentResult.deserializeToJDOM(org.torweg.pulse.service.request.ServiceRequest)