org.kuali.hr.time.earncode.service
Interface EarnCodeService

All Known Implementing Classes:
EarnCodeServiceImpl

public interface EarnCodeService


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 leavePlan, String accrualCategory, String descr, 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
 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
 

Method Detail

getEarnCodesForLeaveAndTime

@Cacheable(value="KPME/EarnCode",
           key="\'{getEarnCodesForLeaveAndTime}\' + \'principalId=\' + T(org.kuali.hr.time.util.TKContext).getPrincipalId() + \'|\' + \'targetId=\' + T(org.kuali.hr.time.util.TKContext).getTargetPrincipalId() + \'|\' + \'a=\' + #p0.getTkAssignmentId() + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'isLeavePlanningCalendar=\' +#p2")
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

Parameters:
a -
asOfDate -
isLeavePlanningCalendar -
Returns:

getEarnCodesForTime

@Cacheable(value="KPME/EarnCode",
           key="\'{getEarnCodesForTime}\' + \'principalId=\' + T(org.kuali.hr.time.util.TKContext).getPrincipalId() + \'|\' + \'targetId=\' + T(org.kuali.hr.time.util.TKContext).getTargetPrincipalId() + \'|\' + \'a=\' + #p0.getTkAssignmentId() + \'|\' + \'asOfDate=\' + #p1")
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

Parameters:
a -
asOfDate -
Returns:

getEarnCodesForLeave

@Cacheable(value="KPME/EarnCode",
           key="\'{getEarnCodesForLeave}\' + \'principalId=\' + T(org.kuali.hr.time.util.TKContext).getPrincipalId() + \'|\' + \'targetId=\' + T(org.kuali.hr.time.util.TKContext).getTargetPrincipalId() + \'|\' + \'a=\' + #p0.getTkAssignmentId() + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'isLeavePlanningCalendar=\' +#p2")
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

Parameters:
a -
asOfDate -
isLeavePlanningCalendar -
Returns:

getEarnCodesForPrincipal

@Cacheable(value="KPME/EarnCode",
           key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'isLeavePlanningCalendar=\' +#p2")
List<EarnCode> getEarnCodesForPrincipal(String principalId,
                                                  Date asOfDate,
                                                  boolean isLeavePlanningCalendar)
Fetch a list of earn codes based on principal ID as of a particular date

Parameters:
principalId -
asOfDate -
isLeavePlanningCalendar -
Returns:

getEarnCode

@Cacheable(value="KPME/EarnCode",
           key="\'earnCode=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
EarnCode getEarnCode(String earnCode,
                               Date asOfDate)
Fetch an EarnCode as of a particular date

Parameters:
earnCode -
asOfDate -
Returns:

getEarnCodeType

@Cacheable(value="KPME/EarnCode",
           key="\'{getEarnCodeType}\' + \'earnCode=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
String getEarnCodeType(String earnCode,
                                 Date asOfDate)
Fetch the earn code type for a particular date

Parameters:
earnCode -
asOfDate -
Returns:

getEarnCodeById

@Cacheable(value="KPME/EarnCode",
           key="\'earnCodeId=\' + #p0")
EarnCode getEarnCodeById(String earnCodeId)
Fetch earn code by id

Parameters:
earnCodeId -
Returns:

getOvertimeEarnCodes

@Cacheable(value="KPME/EarnCode",
           key="\'{getOvertimeEarnCodes}\' + \'asOfDate=\' + #p0")
List<EarnCode> getOvertimeEarnCodes(Date asOfDate)
Fetch list of system defined overtime earn codes

Parameters:
asOfDate -
Returns:

getOvertimeEarnCodesStrs

@Cacheable(value="KPME/EarnCode",
           key="\'{getOvertimeEarnCodesStrs}\' + \'asOfDate=\' + #p0")
List<String> getOvertimeEarnCodesStrs(Date asOfDate)
Fetch list of system defined overtime earn codes as strings

Parameters:
asOfDate -
Returns:

getEarnCodeCount

int getEarnCodeCount(String earnCode)
get count of earn code with give earnCode

Parameters:
earnCode -
Returns:
int

getNewerEarnCodeCount

int getNewerEarnCodeCount(String earnCode,
                          Date effdt)
get count of newer version of earn code with give earnCode and date

Parameters:
earnCode -
effdt -
Returns:
int

roundHrsWithEarnCode

BigDecimal roundHrsWithEarnCode(BigDecimal hours,
                                EarnCode earnCode)
roundHrsWithLEarnCode

Parameters:
hours -
earnCode -
Returns:

getEarnCodesForDisplay

@Cacheable(value="KPME/EarnCode",
           key="\'{getEarnCodesForDisplay}\' + \'principalId=\' + #p0 + \'|\' + \'isLeavePlanningCalendar=\' +#p1")
Map<String,String> getEarnCodesForDisplay(String principalId,
                                                    boolean isLeavePlanningCalendar)
Parameters:
principalId -
isLeavePlanningCalendar -
Returns:

getEarnCodesForDisplayWithEffectiveDate

@Cacheable(value="KPME/EarnCode",
           key="\'{getEarnCodesForDisplayWithEffectiveDate}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'isLeavePlanningCalendar=\' +#p2")
Map<String,String> getEarnCodesForDisplayWithEffectiveDate(String principalId,
                                                                     Date asOfDate,
                                                                     boolean isLeavePlanningCalendar)
Parameters:
principalId -
asOfDate -
Returns:

getEarnCodes

List<EarnCode> getEarnCodes(String earnCode,
                            String ovtEarnCode,
                            String leavePlan,
                            String accrualCategory,
                            String descr,
                            Date fromEffdt,
                            Date toEffdt,
                            String active,
                            String showHist)


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