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 ContentResult

java.lang.Object
  extended by org.torweg.pulse.site.content.ContentResult
All Implemented Interfaces:
ExtendedJDOMable, JDOMable, Result
Direct Known Subclasses:
CMSContentDisplayerResult, CoreContentDisplayerResult, ShopContentDisplayerResult, StoreContentDisplayerResult

public class ContentResult
extends java.lang.Object
implements Result, ExtendedJDOMable

a Result used to display Content.

Version:
$Revision: 1501 $
Author:
Thomas Weber

Constructor Summary
ContentResult(AbstractContentGroup c, java.util.List<SitemapNode> n, ServiceRequest r)
          creates a new ContentResult for the given Content and ServiceRequest.
ContentResult(Content c, ServiceRequest r)
          creates a new ContentResult for the given Content and ServiceRequest.
 
Method Summary
protected  void deserializeChildren(org.jdom.Element jdom)
          adds the children of ContentGroups.
 org.jdom.Element deserializeToJDOM()
          returns a JDOM representation of the Result encapsuling the Content.
 org.jdom.Element deserializeToJDOM(ServiceRequest r)
          returns an extended JDOM representation of the Result encapsuling the Content.
 java.util.List<SitemapNode> getChildren()
          returns the children.
 Content getContent()
          returns the content.
 ServiceRequest getRequest()
          returns the request.
 void setChildren(java.util.List<SitemapNode> c)
          sets the children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentResult

public ContentResult(Content c, ServiceRequest r)
creates a new ContentResult for the given Content and ServiceRequest.

Parameters:
c - the Content
r - the ServiceRequest

ContentResult

public ContentResult(AbstractContentGroup c,
                     java.util.List<SitemapNode> n, ServiceRequest r)
creates a new ContentResult for the given Content and ServiceRequest.

Parameters:
c - the AbstractContentGroup
n - the child SitemapNodes
r - the ServiceRequest
Method Detail

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
returns a JDOM representation of the Result encapsuling the Content.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
a Result encapsuling the Content
See Also:
JDOMable.deserializeToJDOM()

deserializeToJDOM

public org.jdom.Element deserializeToJDOM(ServiceRequest r)
returns an extended JDOM representation of the Result encapsuling the Content.

Specified by:
deserializeToJDOM in interface ExtendedJDOMable
Parameters:
r - the current request
Returns:
a Result encapsuling the Content
See Also:
ExtendedJDOMable.deserializeToJDOM(ServiceRequest)

getContent

public final Content getContent()
returns the content.

Returns:
the content.

getRequest

public final ServiceRequest getRequest()
returns the request.

Returns:
the request

getChildren

public final java.util.List<SitemapNode> getChildren()
returns the children.

Returns:
the children

setChildren

public final void setChildren(java.util.List<SitemapNode> c)
sets the children.

Parameters:
c - the children to set

deserializeChildren

protected void deserializeChildren(org.jdom.Element jdom)
adds the children of ContentGroups.

Parameters:
jdom - the deserialisation result