com.atlassian.confluence.search.v2.query
Class DateModifiedQuery

java.lang.Object
  extended by com.atlassian.confluence.search.v2.query.DateModifiedQuery
All Implemented Interfaces:
SearchQuery

public class DateModifiedQuery
extends java.lang.Object
implements SearchQuery


Constructor Summary
DateModifiedQuery(int daysAgo)
          Query for search results that have been modified within the last n days.
DateModifiedQuery(int daysAgo, java.util.Date currentTime)
          Constructor for testing that allows you to fool the query into thinking that some provided date is the current time.
 
Method Summary
 java.util.Date getFromTime()
           
 java.lang.String getKey()
           
 java.util.List getParameters()
          List of parameters as Strings or SearchQuerys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateModifiedQuery

public DateModifiedQuery(int daysAgo)
Query for search results that have been modified within the last n days.

Parameters:
daysAgo - number of days ago to search

DateModifiedQuery

public DateModifiedQuery(int daysAgo,
                         java.util.Date currentTime)
Constructor for testing that allows you to fool the query into thinking that some provided date is the current time.

Parameters:
daysAgo - number of days ago to query
currentTime - date to pretend is the current time
Method Detail

getKey

public java.lang.String getKey()
Specified by:
getKey in interface SearchQuery

getParameters

public java.util.List getParameters()
Description copied from interface: SearchQuery
List of parameters as Strings or SearchQuerys.

Specified by:
getParameters in interface SearchQuery
Returns:
Strings or SearchQuerys.

getFromTime

public java.util.Date getFromTime()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.