|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.purap.batch.service.impl.PurapRunDateServiceImpl
public class PurapRunDateServiceImpl
Nested Class Summary | |
---|---|
protected class |
PurapRunDateServiceImpl.CutoffTime
Holds the hour, minute, and second of a given cut off time |
Constructor Summary | |
---|---|
PurapRunDateServiceImpl()
|
Method Summary | |
---|---|
protected void |
adjustTimeOfDay(Calendar calendar,
boolean appliedCutoff)
Adjusts the time of day if necessary, possibly depending on whether the execution time was before or after cutoff time |
Date |
calculateRunDate(Date executionDate)
Determines the date to assume when running the batch processes |
protected boolean |
isCurrentDateAfterCutoff(Calendar currentCal,
PurapRunDateServiceImpl.CutoffTime cutoffTime)
Determines if the given calendar time is before the given cutoff time |
protected PurapRunDateServiceImpl.CutoffTime |
parseCutoffTime(String cutoffTime)
Parses a String representation of the cutoff time |
protected String |
retrieveCutoffTimeValue()
Retrieves the cutoff time from a repository. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PurapRunDateServiceImpl()
Method Detail |
---|
public Date calculateRunDate(Date executionDate)
calculateRunDate
in interface PurapRunDateService
executionDate
- the actual date that this method is called
protected void adjustTimeOfDay(Calendar calendar, boolean appliedCutoff)
calendar
- appliedCutoff
- true if the execution time was before the cutoffprotected boolean isCurrentDateAfterCutoff(Calendar currentCal, PurapRunDateServiceImpl.CutoffTime cutoffTime)
currentCal
- the current timecutoffTime
- the "start of the day" cut off time
protected PurapRunDateServiceImpl.CutoffTime parseCutoffTime(String cutoffTime)
cutoffTime
- the cutoff time String to parse
protected String retrieveCutoffTimeValue()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |