public class EarnCodeServiceImpl extends Object implements EarnCodeService
Constructor and Description |
---|
EarnCodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
addEarnCodeBasedOnEmployeeApproverSettings(EarnCodeSecurityContract 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
|
protected EarnCodeBo |
getEarnCodeBo(String earnCode,
org.joda.time.LocalDate asOfDate) |
EarnCodeBo |
getEarnCodeBoById(String earnCodeId) |
protected List<EarnCodeBo> |
getEarnCodeBosForLeave(Assignment a,
org.joda.time.LocalDate asOfDate,
boolean isLeavePlanningCalendar) |
EarnCode |
getEarnCodeById(String earnCodeId)
Fetch earn code by id
|
int |
getEarnCodeCount(String earnCode)
get count of earn code with give earnCode
|
protected String |
getEarnCodeKeyForDisplay(EarnCode earnCode) |
List<EarnCode> |
getEarnCodes(String earnCode,
String ovtEarnCode,
String descr,
String leavePlan,
String accrualCategory,
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
|
protected String |
getEarnCodeValueForDisplay(EarnCode earnCode) |
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,
EarnCodeContract earnCode)
roundHrsWithLEarnCode
|
void |
setEarnCodeDao(EarnCodeDao earnCodeDao) |
public EarnCodeServiceImpl()
public void setEarnCodeDao(EarnCodeDao earnCodeDao)
public List<EarnCode> getEarnCodesForLeave(Assignment a, org.joda.time.LocalDate asOfDate, boolean isLeavePlanningCalendar)
EarnCodeService
getEarnCodesForLeave
in interface EarnCodeService
protected List<EarnCodeBo> getEarnCodeBosForLeave(Assignment a, org.joda.time.LocalDate asOfDate, boolean isLeavePlanningCalendar)
public boolean addEarnCodeBasedOnEmployeeApproverSettings(EarnCodeSecurityContract security, Assignment a, org.joda.time.LocalDate asOfDate)
addEarnCodeBasedOnEmployeeApproverSettings
in interface EarnCodeService
public List<EarnCode> getEarnCodesForPrincipal(String principalId, org.joda.time.LocalDate asOfDate, boolean isLeavePlanningCalendar)
EarnCodeService
getEarnCodesForPrincipal
in interface EarnCodeService
public EarnCode getEarnCode(String earnCode, org.joda.time.LocalDate asOfDate)
EarnCodeService
getEarnCode
in interface EarnCodeService
protected EarnCodeBo getEarnCodeBo(String earnCode, org.joda.time.LocalDate asOfDate)
public String getEarnCodeType(String earnCode, org.joda.time.LocalDate asOfDate)
EarnCodeService
getEarnCodeType
in interface EarnCodeService
public EarnCode getEarnCodeById(String earnCodeId)
EarnCodeService
getEarnCodeById
in interface EarnCodeService
public EarnCodeBo getEarnCodeBoById(String earnCodeId)
public List<EarnCode> getOvertimeEarnCodes(org.joda.time.LocalDate asOfDate)
EarnCodeService
getOvertimeEarnCodes
in interface EarnCodeService
public List<String> getOvertimeEarnCodesStrs(org.joda.time.LocalDate asOfDate)
EarnCodeService
getOvertimeEarnCodesStrs
in interface EarnCodeService
public int getEarnCodeCount(String earnCode)
EarnCodeService
getEarnCodeCount
in interface EarnCodeService
public int getNewerEarnCodeCount(String earnCode, org.joda.time.LocalDate effdt)
EarnCodeService
getNewerEarnCodeCount
in interface EarnCodeService
public BigDecimal roundHrsWithEarnCode(BigDecimal hours, EarnCodeContract earnCode)
EarnCodeService
roundHrsWithEarnCode
in interface EarnCodeService
public Map<String,String> getEarnCodesForDisplay(String principalId, boolean isLeavePlanningCalendar)
getEarnCodesForDisplay
in interface EarnCodeService
public List<EarnCode> getEarnCodes(String earnCode, String ovtEarnCode, String descr, String leavePlan, String accrualCategory, org.joda.time.LocalDate fromEffdt, org.joda.time.LocalDate toEffdt, String active, String showHist)
getEarnCodes
in interface EarnCodeService
public Map<String,String> getEarnCodesForDisplayWithEffectiveDate(String principalId, org.joda.time.LocalDate asOfDate, boolean isLeavePlanningCalendar)
getEarnCodesForDisplayWithEffectiveDate
in interface EarnCodeService
protected String getEarnCodeKeyForDisplay(EarnCode earnCode)
protected String getEarnCodeValueForDisplay(EarnCode earnCode)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.