|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.endow.document.service.impl.FrequencyCodeServiceImpl
public class FrequencyCodeServiceImpl
Field Summary | |
---|---|
protected org.kuali.rice.kns.service.BusinessObjectService |
businessObjectService
|
protected org.kuali.rice.kns.service.DateTimeService |
dateTimeService
|
protected KEMService |
kemService
|
Constructor Summary | |
---|---|
FrequencyCodeServiceImpl()
|
Method Summary | |
---|---|
protected Date |
calculateNextMonthlyDate(String dayOfMonth,
Date currentDate)
Method to calculate the next processing monthly date based on the frequency type Sets the day in the calendar based on day part of the frequency code. |
protected Date |
calculateNextQuarterlyOrSemiAnnuallyOrAnnuallyProcessDate(String month,
String dayOfMonth,
String frequencyType,
Date currentDate)
Method to calculate the next processing quarterly or semi-annually or annually date based on the frequency type Sets the day in the calendar based on day part of the frequency code. |
protected Date |
calculateNextSemiMonthlyDate(String dayOfSemiMonthly,
Date currentDate)
Method to calculate the next processing semi-monthly date based on the frequency type Sets the day of the month and then returns the processing date |
protected Date |
calculateNextWeeklyDate(String dayOfWeekFromFrequencyCode,
Date currentDate)
Method to calculate the next processing week date based on the frequency type adds the appropriate number of days to the current date |
Date |
calculateProcessDate(String frequencyCode)
This method uses frequency code to derive the next processing date |
protected int |
checkMaximumDaysInFebruary()
This method will check and return either maximum days in the month as 28 or 29 for leap year. |
protected int |
checkMaximumDaysInMonth(int monthNumber)
This method will check and return maximum days in a month. |
protected org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
This method gets the businessObjectService. |
FrequencyCode |
getByPrimaryKey(String code)
Gets a frequency code by primary key. |
protected org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
|
protected KEMService |
getKemService()
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
This method sets the businessObjectService |
protected Calendar |
setCaledarWithMonth(String month,
Date currentDate)
This method will check the current month and set the calendar to that month |
protected void |
setCalendarWithDays(Calendar calendar,
String dayOfMonth)
This method will check the current month and set the calendar to that month |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
|
void |
setKemService(KEMService kemService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService
protected org.kuali.rice.kns.service.DateTimeService dateTimeService
protected KEMService kemService
Constructor Detail |
---|
public FrequencyCodeServiceImpl()
Method Detail |
---|
public FrequencyCode getByPrimaryKey(String code)
FrequencyCodeService
getByPrimaryKey
in interface FrequencyCodeService
FrequencyCodeService.getByPrimaryKey(java.lang.String)
public Date calculateProcessDate(String frequencyCode)
FrequencyCodeService
calculateProcessDate
in interface FrequencyCodeService
FrequencyCodeService.calculateProcessDate(String)
protected Date calculateNextWeeklyDate(String dayOfWeekFromFrequencyCode, Date currentDate)
dayOfWeek
-
protected Date calculateNextSemiMonthlyDate(String dayOfSemiMonthly, Date currentDate)
dayOfSemiMonthly
-
protected Date calculateNextMonthlyDate(String dayOfMonth, Date currentDate)
dayOfMonth
-
protected Date calculateNextQuarterlyOrSemiAnnuallyOrAnnuallyProcessDate(String month, String dayOfMonth, String frequencyType, Date currentDate)
frequencyType
- frequency code for quarterly, month, dayOfMonth
protected Calendar setCaledarWithMonth(String month, Date currentDate)
month
- month to set the calendar
protected void setCalendarWithDays(Calendar calendar, String dayOfMonth)
month,
- dayOfMonth month to set the calendar, dayOfMonth day of the month to set toprotected int checkMaximumDaysInFebruary()
protected int checkMaximumDaysInMonth(int monthNumber)
monthNumber
- The number of the month to test for maximum days..
protected org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
protected org.kuali.rice.kns.service.DateTimeService getDateTimeService()
protected KEMService getKemService()
public void setKemService(KEMService kemService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |