com.taleo.integration.client.customstep.lrd
Class FixedDateProvider

java.lang.Object
  extended by com.taleo.integration.client.customstep.lrd.FixedDateProvider
All Implemented Interfaces:
DateProvider

public class FixedDateProvider
extends java.lang.Object

Date provider that uses the date it is given.

Author:
Romain Guay - Taleo

Field Summary
 
Fields inherited from interface com.taleo.integration.client.customstep.lrd.DateProvider
DEFAULT_LRD_MINUTE_ADJUSTMENT, PROP_MINUTE_ADJUSTEMENT
 
Constructor Summary
FixedDateProvider(java.util.Date date)
           
FixedDateProvider(java.util.Date date, boolean allowFutureDate)
           
 
Method Summary
protected  java.util.Date adjustTime(java.util.Date date)
          Adjust the specified time using the default minute adjustment or the system property value.
 java.util.Date getDate()
          Return the date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedDateProvider

public FixedDateProvider(java.util.Date date)
Parameters:
date - The date. Can be any time in the past, present or future.

FixedDateProvider

public FixedDateProvider(java.util.Date date,
                         boolean allowFutureDate)
Parameters:
date - The date.
allowFutureDate - Indicate if a date in the future is allowed.
Method Detail

getDate

public java.util.Date getDate()
Description copied from interface: DateProvider
Return the date.

Returns:

adjustTime

protected java.util.Date adjustTime(java.util.Date date)
Adjust the specified time using the default minute adjustment or the system property value.

Parameters:
date - The date to be adjusted