Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.util
Class UnboundedDateRange

java.lang.Object
  extended by com.jivesoftware.util.UnboundedDateRange
All Implemented Interfaces:
DateRange

public class UnboundedDateRange
extends java.lang.Object
implements DateRange


Constructor Summary
UnboundedDateRange()
           
 
Method Summary
 java.lang.String getDisplayName()
          Returns a string representing a human-readable descriptive name of this date range.
 java.util.Date getEndDate(java.util.Date date, javax.servlet.http.HttpServletRequest request, User user)
          Returns a specific end date for this date range based on the specified date.
 DateRange getLowerBound()
           
 java.util.Date getStartDate(java.util.Date date, javax.servlet.http.HttpServletRequest request, User user)
          Returns a specific start date for this date range based on the specified date.
 DateRange getUpperBound()
           
 void setLowerBound(DateRange lowerBound)
           
 void setUpperBound(DateRange upperBound)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnboundedDateRange

public UnboundedDateRange()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: DateRange
Returns a string representing a human-readable descriptive name of this date range.

Specified by:
getDisplayName in interface DateRange
Returns:
a descriptive name of this date range.

getUpperBound

public DateRange getUpperBound()

setUpperBound

public void setUpperBound(DateRange upperBound)

getLowerBound

public DateRange getLowerBound()

setLowerBound

public void setLowerBound(DateRange lowerBound)

getStartDate

public java.util.Date getStartDate(java.util.Date date,
                                   javax.servlet.http.HttpServletRequest request,
                                   User user)
Description copied from interface: DateRange
Returns a specific start date for this date range based on the specified date.

Specified by:
getStartDate in interface DateRange
Parameters:
date - the date to base a date range calculation on. Most often, this will be the current instance in time.
request - the request object that may have locale information in it.
user - the User to use in determining locale
Returns:
a specific start date based on date.

getEndDate

public java.util.Date getEndDate(java.util.Date date,
                                 javax.servlet.http.HttpServletRequest request,
                                 User user)
Description copied from interface: DateRange
Returns a specific end date for this date range based on the specified date.

Specified by:
getEndDate in interface DateRange
Parameters:
date - the date to base a date range calculation on. Most often, this will be the current instance in time.
request - the request object that may have locale information in it.
user - the User to use in determining locale
Returns:
a specific end date based on date.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.