org.kuali.hr.time.earncode.service
Class EarnCodeServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.earncode.service.EarnCodeServiceImpl
All Implemented Interfaces:
EarnCodeService

public class EarnCodeServiceImpl
extends Object
implements EarnCodeService


Constructor Summary
EarnCodeServiceImpl()
           
 
Method Summary
 EarnCode getEarnCode(String earnCode, Date asOfDate)
          Fetch an EarnCode as of a particular date
 EarnCode getEarnCodeById(String earnCodeId)
          Fetch earn code by id
 int getEarnCodeCount(String earnCode)
          get count of earn code with give earnCode
 List<EarnCode> getEarnCodes(String earnCode, String ovtEarnCode, String descr, String leavePlan, String accrualCategory, Date fromEffdt, Date toEffdt, String active, String showHist)
           
 Map<String,String> getEarnCodesForDisplay(String principalId, boolean isLeavePlanningCalendar)
           
 Map<String,String> getEarnCodesForDisplayWithEffectiveDate(String principalId, Date asOfDate, boolean isLeavePlanningCalendar)
           
 List<EarnCode> getEarnCodesForLeave(Assignment a, Date asOfDate, boolean isLeavePlanningCalendar)
          Fetch a list of earn codes for Leave usage, for a particular assignment as of a particular date
 List<EarnCode> getEarnCodesForLeaveAndTime(Assignment a, Date asOfDate, boolean isLeavePlanningCalendar)
          Fetch a list of earn codes for Leave usage and Time usage, for a particular assignment as of a particular date
 List<EarnCode> getEarnCodesForPrincipal(String principalId, Date asOfDate, boolean isLeavePlanningCalendar)
          Fetch a list of earn codes based on principal ID as of a particular date
 List<EarnCode> getEarnCodesForTime(Assignment a, Date asOfDate)
          Fetch a list of earn codes for Time usage, for a particular assignment as of a particular date
 List<EarnCode> getEarnCodesForTime(Assignment a, Date asOfDate, boolean includeRegularEarnCode)
          Fetch a list of earn codes for Time usage, for a particular assignment as of a particular date
 String getEarnCodeType(String earnCode, Date asOfDate)
          Fetch the earn code type for a particular date
 int getNewerEarnCodeCount(String earnCode, Date effdt)
          get count of newer version of earn code with give earnCode and date
 List<EarnCode> getOvertimeEarnCodes(Date asOfDate)
          Fetch list of system defined overtime earn codes
 List<String> getOvertimeEarnCodesStrs(Date asOfDate)
          Fetch list of system defined overtime earn codes as strings
 BigDecimal roundHrsWithEarnCode(BigDecimal hours, EarnCode earnCode)
          roundHrsWithLEarnCode
 void setEarnCodeDao(EarnCodeDao earnCodeDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EarnCodeServiceImpl

public EarnCodeServiceImpl()
Method Detail

setEarnCodeDao

public void setEarnCodeDao(EarnCodeDao earnCodeDao)

getEarnCodesForLeaveAndTime

public List<EarnCode> getEarnCodesForLeaveAndTime(Assignment a,
                                                  Date asOfDate,
                                                  boolean isLeavePlanningCalendar)
Description copied from interface: EarnCodeService
Fetch a list of earn codes for Leave usage and Time usage, for a particular assignment as of a particular date

Specified by:
getEarnCodesForLeaveAndTime in interface EarnCodeService
Returns:

getEarnCodesForTime

public List<EarnCode> getEarnCodesForTime(Assignment a,
                                          Date asOfDate,
                                          boolean includeRegularEarnCode)
Description copied from interface: EarnCodeService
Fetch a list of earn codes for Time usage, for a particular assignment as of a particular date

Specified by:
getEarnCodesForTime in interface EarnCodeService
Returns:

getEarnCodesForTime

public List<EarnCode> getEarnCodesForTime(Assignment a,
                                          Date asOfDate)
Description copied from interface: EarnCodeService
Fetch a list of earn codes for Time usage, for a particular assignment as of a particular date

Specified by:
getEarnCodesForTime in interface EarnCodeService
Returns:

getEarnCodesForLeave

public List<EarnCode> getEarnCodesForLeave(Assignment a,
                                           Date asOfDate,
                                           boolean isLeavePlanningCalendar)
Description copied from interface: EarnCodeService
Fetch a list of earn codes for Leave usage, for a particular assignment as of a particular date

Specified by:
getEarnCodesForLeave in interface EarnCodeService
Returns:

getEarnCodesForPrincipal

public List<EarnCode> getEarnCodesForPrincipal(String principalId,
                                               Date asOfDate,
                                               boolean isLeavePlanningCalendar)
Description copied from interface: EarnCodeService
Fetch a list of earn codes based on principal ID as of a particular date

Specified by:
getEarnCodesForPrincipal in interface EarnCodeService
Returns:

getEarnCode

public EarnCode getEarnCode(String earnCode,
                            Date asOfDate)
Description copied from interface: EarnCodeService
Fetch an EarnCode as of a particular date

Specified by:
getEarnCode in interface EarnCodeService
Returns:

getEarnCodeType

public String getEarnCodeType(String earnCode,
                              Date asOfDate)
Description copied from interface: EarnCodeService
Fetch the earn code type for a particular date

Specified by:
getEarnCodeType in interface EarnCodeService
Returns:

getEarnCodeById

public EarnCode getEarnCodeById(String earnCodeId)
Description copied from interface: EarnCodeService
Fetch earn code by id

Specified by:
getEarnCodeById in interface EarnCodeService
Returns:

getOvertimeEarnCodes

public List<EarnCode> getOvertimeEarnCodes(Date asOfDate)
Description copied from interface: EarnCodeService
Fetch list of system defined overtime earn codes

Specified by:
getOvertimeEarnCodes in interface EarnCodeService
Returns:

getOvertimeEarnCodesStrs

public List<String> getOvertimeEarnCodesStrs(Date asOfDate)
Description copied from interface: EarnCodeService
Fetch list of system defined overtime earn codes as strings

Specified by:
getOvertimeEarnCodesStrs in interface EarnCodeService
Returns:

getEarnCodeCount

public int getEarnCodeCount(String earnCode)
Description copied from interface: EarnCodeService
get count of earn code with give earnCode

Specified by:
getEarnCodeCount in interface EarnCodeService
Returns:
int

getNewerEarnCodeCount

public int getNewerEarnCodeCount(String earnCode,
                                 Date effdt)
Description copied from interface: EarnCodeService
get count of newer version of earn code with give earnCode and date

Specified by:
getNewerEarnCodeCount in interface EarnCodeService
Returns:
int

roundHrsWithEarnCode

public BigDecimal roundHrsWithEarnCode(BigDecimal hours,
                                       EarnCode earnCode)
Description copied from interface: EarnCodeService
roundHrsWithLEarnCode

Specified by:
roundHrsWithEarnCode in interface EarnCodeService
Returns:

getEarnCodesForDisplay

public Map<String,String> getEarnCodesForDisplay(String principalId,
                                                 boolean isLeavePlanningCalendar)
Specified by:
getEarnCodesForDisplay in interface EarnCodeService
Returns:

getEarnCodes

public List<EarnCode> getEarnCodes(String earnCode,
                                   String ovtEarnCode,
                                   String descr,
                                   String leavePlan,
                                   String accrualCategory,
                                   Date fromEffdt,
                                   Date toEffdt,
                                   String active,
                                   String showHist)
Specified by:
getEarnCodes in interface EarnCodeService

getEarnCodesForDisplayWithEffectiveDate

public Map<String,String> getEarnCodesForDisplayWithEffectiveDate(String principalId,
                                                                  Date asOfDate,
                                                                  boolean isLeavePlanningCalendar)
Specified by:
getEarnCodesForDisplayWithEffectiveDate in interface EarnCodeService
Returns:


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.