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.core.site.content.filter
Class FilterContentDisplayerResult

java.lang.Object
  extended by org.torweg.pulse.component.core.site.content.filter.FilterContentDisplayerResult
All Implemented Interfaces:
JDOMable, Result

public class FilterContentDisplayerResult
extends java.lang.Object
implements Result

is the Result of the FilterContentDisplayer.

Version:
$Revision: 1737 $
Author:
Thomas Weber

Constructor Summary
FilterContentDisplayerResult(FilterContent c, ServiceRequest req)
          creates a new FilterContentDisplayerResult for the given contents with the current request.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          returns a JDOM representation of the Result.
 java.lang.Long getContentId()
          Returns the content id of the current FilterContent of the result.
 void setBaseURI(java.lang.String uri)
          Sets the given URI as base URI for the result.
 void setDisplayCalendar(Duration duration)
          Adds a CalendarSheet to the current FilterContentDisplayerResult.
 void setFilteredContents(java.util.Collection<Content> filtered)
          sets the filtered contents.
 void setMaxResultsPerPage(int maxResults)
          sets the maximum results per page.
 void setOffset(long o)
          sets the offset.
 void setTotalResults(long total)
          sets the number of total results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterContentDisplayerResult

public FilterContentDisplayerResult(FilterContent c, ServiceRequest req)
creates a new FilterContentDisplayerResult for the given contents with the current request.

Parameters:
c - the FilterContent
req - the request
Method Detail

setFilteredContents

public final void setFilteredContents(java.util.Collection<Content> filtered)
sets the filtered contents.

Parameters:
filtered - the collection containing the filtered contents

setTotalResults

public final void setTotalResults(long total)
sets the number of total results.

Parameters:
total - the number of total results

setOffset

public final void setOffset(long o)
sets the offset.

Parameters:
o - the offset

setMaxResultsPerPage

public final void setMaxResultsPerPage(int maxResults)
sets the maximum results per page.

Parameters:
maxResults - the maximum results per page

setBaseURI

public final void setBaseURI(java.lang.String uri)
Sets the given URI as base URI for the result. Use this to set a base URI other than the default base URI which is being generated from the currently set request.

Parameters:
uri - the base URI to set

getContentId

public final java.lang.Long getContentId()
Returns the content id of the current FilterContent of the result.

Returns:
the id of the current FilterContent if content is not null, null otherwise

setDisplayCalendar

public final void setDisplayCalendar(Duration duration)
Adds a CalendarSheet to the current FilterContentDisplayerResult.

Parameters:
duration - the current Duration

deserializeToJDOM

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

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
a JDOM representation of the Result
See Also:
JDOMable.deserializeToJDOM()