org.kuali.kpme.core.earncode.service
Interface EarnCodeService

All Known Implementing Classes:
EarnCodeServiceImpl

public interface EarnCodeService


Method Summary
 boolean addEarnCodeBasedOnEmployeeApproverSettings(EarnCodeSecurity security, Assignment a, org.joda.time.LocalDate asOfDate)
           
 EarnCode getEarnCode(String earnCode, org.joda.time.LocalDate 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, org.joda.time.LocalDate fromEffdt, org.joda.time.LocalDate toEffdt, String active, String showHist)
           
 Map<String,String> getEarnCodesForDisplay(String principalId, boolean isLeavePlanningCalendar)
           
 Map<String,String> getEarnCodesForDisplayWithEffectiveDate(String principalId, org.joda.time.LocalDate asOfDate, boolean isLeavePlanningCalendar)
           
 List<EarnCode> getEarnCodesForLeave(Assignment a, org.joda.time.LocalDate asOfDate, boolean isLeavePlanningCalendar)
          Fetch a list of earn codes for Leave usage, for a particular assignment as of a particular date
 List<EarnCode> getEarnCodesForPrincipal(String principalId, org.joda.time.LocalDate asOfDate, boolean isLeavePlanningCalendar)
          Fetch a list of earn codes based on principal ID as of a particular date
 String getEarnCodeType(String earnCode, org.joda.time.LocalDate asOfDate)
          Fetch the earn code type for a particular date
 int getNewerEarnCodeCount(String earnCode, org.joda.time.LocalDate effdt)
          get count of newer version of earn code with give earnCode and date
 List<EarnCode> getOvertimeEarnCodes(org.joda.time.LocalDate asOfDate)
          Fetch list of system defined overtime earn codes
 List<String> getOvertimeEarnCodesStrs(org.joda.time.LocalDate asOfDate)
          Fetch list of system defined overtime earn codes as strings
 BigDecimal roundHrsWithEarnCode(BigDecimal hours, EarnCode earnCode)
          roundHrsWithLEarnCode
 

Method Detail

getEarnCodesForLeave

@Cacheable(value="http://kpme.kuali.org/core/EarnCode",
           key="\'{getEarnCodesForLeave}\' + \'principalId=\' + T(org.kuali.kpme.core.util.HrContext).getPrincipalId() + \'|\' + \'targetId=\' + T(org.kuali.kpme.core.util.HrContext).getTargetPrincipalId() + \'|\' + \'a=\' + #p0.getTkAssignmentId() + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'isLeavePlanningCalendar=\' +#p2")
List<EarnCode> getEarnCodesForLeave(Assignment a,
                                              org.joda.time.LocalDate 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="http://kpme.kuali.org/core/EarnCode",
           key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'isLeavePlanningCalendar=\' +#p2")
List<EarnCode> getEarnCodesForPrincipal(String principalId,
                                                  org.joda.time.LocalDate 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="http://kpme.kuali.org/core/EarnCode",
           key="\'earnCode=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
EarnCode getEarnCode(String earnCode,
                               org.joda.time.LocalDate asOfDate)
Fetch an EarnCode as of a particular date

Parameters:
earnCode -
asOfDate -
Returns:

getEarnCodeType

@Cacheable(value="http://kpme.kuali.org/core/EarnCode",
           key="\'{getEarnCodeType}\' + \'earnCode=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
String getEarnCodeType(String earnCode,
                                 org.joda.time.LocalDate asOfDate)
Fetch the earn code type for a particular date

Parameters:
earnCode -
asOfDate -
Returns:

getEarnCodeById

@Cacheable(value="http://kpme.kuali.org/core/EarnCode",
           key="\'earnCodeId=\' + #p0")
EarnCode getEarnCodeById(String earnCodeId)
Fetch earn code by id

Parameters:
earnCodeId -
Returns:

getOvertimeEarnCodes

@Cacheable(value="http://kpme.kuali.org/core/EarnCode",
           key="\'{getOvertimeEarnCodes}\' + \'asOfDate=\' + #p0")
List<EarnCode> getOvertimeEarnCodes(org.joda.time.LocalDate asOfDate)
Fetch list of system defined overtime earn codes

Parameters:
asOfDate -
Returns:

getOvertimeEarnCodesStrs

@Cacheable(value="http://kpme.kuali.org/core/EarnCode",
           key="\'{getOvertimeEarnCodesStrs}\' + \'asOfDate=\' + #p0")
List<String> getOvertimeEarnCodesStrs(org.joda.time.LocalDate 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,
                          org.joda.time.LocalDate 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="http://kpme.kuali.org/core/EarnCode",
           key="\'{getEarnCodesForDisplay}\' + \'principalId=\' + #p0 + \'|\' + \'isLeavePlanningCalendar=\' +#p1")
Map<String,String> getEarnCodesForDisplay(String principalId,
                                                    boolean isLeavePlanningCalendar)
Parameters:
principalId -
isLeavePlanningCalendar -
Returns:

getEarnCodesForDisplayWithEffectiveDate

@Cacheable(value="http://kpme.kuali.org/core/EarnCode",
           key="\'{getEarnCodesForDisplayWithEffectiveDate}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'isLeavePlanningCalendar=\' +#p2")
Map<String,String> getEarnCodesForDisplayWithEffectiveDate(String principalId,
                                                                     org.joda.time.LocalDate asOfDate,
                                                                     boolean isLeavePlanningCalendar)
Parameters:
principalId -
asOfDate -
Returns:

getEarnCodes

List<EarnCode> getEarnCodes(String earnCode,
                            String ovtEarnCode,
                            String leavePlan,
                            String accrualCategory,
                            String descr,
                            org.joda.time.LocalDate fromEffdt,
                            org.joda.time.LocalDate toEffdt,
                            String active,
                            String showHist)

addEarnCodeBasedOnEmployeeApproverSettings

boolean addEarnCodeBasedOnEmployeeApproverSettings(EarnCodeSecurity security,
                                                   Assignment a,
                                                   org.joda.time.LocalDate asOfDate)


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