org.kuali.kfs.module.ec.document.service.impl
Class EffortCertificationAutomaticReportPeriodUpdateServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ec.document.service.impl.EffortCertificationAutomaticReportPeriodUpdateServiceImpl
All Implemented Interfaces:
EffortCertificationAutomaticReportPeriodUpdateService

@Transactional
public class EffortCertificationAutomaticReportPeriodUpdateServiceImpl
extends Object
implements EffortCertificationAutomaticReportPeriodUpdateService

See Also:
org.rg.kuali.module.effort.service.EffortCertificationAutomaticReportPeriodUpdateService

Constructor Summary
EffortCertificationAutomaticReportPeriodUpdateServiceImpl()
           
 
Method Summary
protected  int comparePeriod(Integer year, String periodCode, Integer anotherYear, String anotherPeriodCode)
           
 List<EffortCertificationReportDefinition> getAllReportDefinitions()
          gets all EffortCertificationReportDefinition records
 EffortCertificationReportDefinitionDao getEffortCertificationReportDefinitionDao()
          get's spring managed effortCertificationReportDefinitionDao
 boolean isAnOverlappingReportDefinition(EffortCertificationReportDefinition reportDefinition)
          Checks if this report definition will overlap an already existing report definition
protected  boolean isOverlapping(EffortCertificationReportDefinition existingReportDefinition, EffortCertificationReportDefinition newReportDefiniton)
          Compares existingRecord and newRecord to see if they are overlapping (years and periods).
protected  boolean isPeriodWithinRange(Integer startYear, String startPeriod, Integer endYear, String endPeriod, Integer year, String period)
           
 void setEffortCertificationReportDefinitionDao(EffortCertificationReportDefinitionDao effortCertificationReportDefinitionDao)
          set's spring managed effortCertificationReportDefinitionDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffortCertificationAutomaticReportPeriodUpdateServiceImpl

public EffortCertificationAutomaticReportPeriodUpdateServiceImpl()
Method Detail

getAllReportDefinitions

public List<EffortCertificationReportDefinition> getAllReportDefinitions()
Description copied from interface: EffortCertificationAutomaticReportPeriodUpdateService
gets all EffortCertificationReportDefinition records

Specified by:
getAllReportDefinitions in interface EffortCertificationAutomaticReportPeriodUpdateService
Returns:
list of EffortCertificationReportDefinition records
See Also:
EffortCertificationAutomaticReportPeriodUpdateService.getAllReportDefinitions()

isAnOverlappingReportDefinition

public boolean isAnOverlappingReportDefinition(EffortCertificationReportDefinition reportDefinition)
Description copied from interface: EffortCertificationAutomaticReportPeriodUpdateService
Checks if this report definition will overlap an already existing report definition

Specified by:
isAnOverlappingReportDefinition in interface EffortCertificationAutomaticReportPeriodUpdateService
Returns:
true reportDefinition is an overlapping report defintion
See Also:
EffortCertificationAutomaticReportPeriodUpdateService.isAnOverlappingReportDefinition(org.kuali.kfs.module.ec.businessobject.EffortCertificationReportDefinition)

getEffortCertificationReportDefinitionDao

public EffortCertificationReportDefinitionDao getEffortCertificationReportDefinitionDao()
get's spring managed effortCertificationReportDefinitionDao

Returns:

setEffortCertificationReportDefinitionDao

public void setEffortCertificationReportDefinitionDao(EffortCertificationReportDefinitionDao effortCertificationReportDefinitionDao)
set's spring managed effortCertificationReportDefinitionDao

Specified by:
setEffortCertificationReportDefinitionDao in interface EffortCertificationAutomaticReportPeriodUpdateService
Parameters:
effortCertificationReportDefinitionDao -

isOverlapping

protected boolean isOverlapping(EffortCertificationReportDefinition existingReportDefinition,
                                EffortCertificationReportDefinition newReportDefiniton)
Compares existingRecord and newRecord to see if they are overlapping (years and periods).

Parameters:
existingRecord -
newRecord -
Returns:
boolean representing whether or not the two report defintions overlap.

isPeriodWithinRange

protected boolean isPeriodWithinRange(Integer startYear,
                                      String startPeriod,
                                      Integer endYear,
                                      String endPeriod,
                                      Integer year,
                                      String period)

comparePeriod

protected int comparePeriod(Integer year,
                            String periodCode,
                            Integer anotherYear,
                            String anotherPeriodCode)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.