@Transactional public class AwardScheduleGenerationServiceImpl extends Object implements AwardScheduleGenerationService
| Modifier and Type | Field and Description |
|---|---|
static String |
FREQUENCY_OBJECT_STRING |
static String |
ZERO_HOURS |
| Constructor and Description |
|---|
AwardScheduleGenerationServiceImpl()
Constructs a AwardScheduleGenerationServiceImpl.java.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNumberOfMonthsToStartDate(Frequency frequency,
Calendar calendar)
If the frequency is x monthly, numberOfMonths field in Frequency BO specifies the same.
|
protected void |
addOffSetPeriodToStartDate(Frequency frequency,
Calendar calendar)
numberOfDays,AdvanceNumberOfDays and AdvanceNumberOfMonths fields of Frequency BO represent any offset from the base date, if present.
|
protected boolean |
canGenerateSchedules(AwardReportTerm awardReportTerm,
boolean isThisNotPaymentPanel)
This method determines if the schedules should be generated for the particular
AwardReportTerm object. |
List<Date> |
generateSchedules(Award award,
List<AwardReportTerm> awardReportTerms,
boolean isThisNotPaymentPanel)
This method generates a schedule of dates.
|
AwardAmountInfoService |
getAwardAmountInfoService()
Gets the awardAmountInfoService attribute.
|
protected List<Date> |
getDates(AwardReportTerm awardReportTerm,
Map<String,Date> mapOfDates,
int index)
This is a helper method.
|
protected Date |
getEndDate(String frequencyBaseCode,
Date startDate,
Map<String,Date> mapOfDates)
This method returns the end date based on start date and frequency base code.
|
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Gets the ParameterService attribute.
|
org.kuali.rice.krad.service.PersistenceService |
getPersistenceService()
Gets the persistenceService attribute.
|
ScheduleService |
getScheduleService()
Gets the scheduleService attribute.
|
protected Date |
getStartDate(AwardReportTerm awardReportTerm,
Map<String,Date> mapOfDates)
This method determines and returns the start date based on the frequency base code.
|
protected Date |
getStartDateFromTheBaseDate(Calendar calendar,
Frequency frequency)
This is a helper method that updates the base date based on frequency if required to get the start date.
|
protected void |
initializeDatesForThisAward(Award award,
Map<String,Date> mapOfDates)
This method gathers all the relevant dates from Award and child objects and puts them in a map.
|
void |
setAwardAmountInfoService(AwardAmountInfoService awardAmountInfoService)
Sets the awardAmountInfoService attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the ParameterService attribute value.
|
void |
setPersistenceService(org.kuali.rice.krad.service.PersistenceService persistenceService)
Sets the persistenceService attribute value.
|
void |
setScheduleService(ScheduleService scheduleService)
Sets the scheduleService attribute value.
|
public static final String ZERO_HOURS
public static final String FREQUENCY_OBJECT_STRING
public AwardScheduleGenerationServiceImpl()
protected void initializeDatesForThisAward(Award award, Map<String,Date> mapOfDates)
award - public List<Date> generateSchedules(Award award, List<AwardReportTerm> awardReportTerms, boolean isThisNotPaymentPanel) throws ParseException
AwardScheduleGenerationServicegenerateSchedules in interface AwardScheduleGenerationServiceParseExceptionorg.kuali.kra.service.AwardScheduleGenerationService#generateSchedules(org.kuali.kra.award.home.Award, java.util.List)protected List<Date> getDates(AwardReportTerm awardReportTerm, Map<String,Date> mapOfDates, int index) throws ParseException
awardReportTerm - index - TODOParseExceptionprotected boolean canGenerateSchedules(AwardReportTerm awardReportTerm, boolean isThisNotPaymentPanel)
AwardReportTerm object.awardReportTerm - isThisNotPaymentPanel - - if the method is being called for generating schedules on report panel, the value passed will be false;
if the method is being called from payment panel, the value passed will be true.
This is to filter the special report class for payment panel.protected Date getStartDate(AwardReportTerm awardReportTerm, Map<String,Date> mapOfDates)
awardReportTerm - protected Date getStartDateFromTheBaseDate(Calendar calendar, Frequency frequency)
startDate - frequency - protected void addOffSetPeriodToStartDate(Frequency frequency, Calendar calendar)
frequency - calendar - protected void addNumberOfMonthsToStartDate(Frequency frequency, Calendar calendar)
frequency - calendar - protected Date getEndDate(String frequencyBaseCode, Date startDate, Map<String,Date> mapOfDates)
frequencyBaseCode - startDate - public ScheduleService getScheduleService()
public void setScheduleService(ScheduleService scheduleService)
scheduleService - The scheduleService to set.public org.kuali.rice.krad.service.PersistenceService getPersistenceService()
public void setPersistenceService(org.kuali.rice.krad.service.PersistenceService persistenceService)
persistenceService - The persistenceService to set.protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - The ParameterService to set.public AwardAmountInfoService getAwardAmountInfoService()
public void setAwardAmountInfoService(AwardAmountInfoService awardAmountInfoService)
awardAmountInfoService - The awardAmountInfoService to set.Copyright © 2013 The Kuali Foundation. All Rights Reserved.