@Transactional public class LaborModuleServiceImpl extends Object implements LaborModuleService
Constructor and Description |
---|
LaborModuleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected org.kuali.rice.krad.bo.AdHocRouteRecipient |
buildApprovePersonRecipient(String userId)
This method builds a recipient for Approval.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
calculateFringeBenefit(Integer fiscalYear,
String chartCode,
String objectCode,
org.kuali.rice.core.api.util.type.KualiDecimal salaryAmount,
String accountNumber,
String subAccountNumber)
calculate the fringe benefit amount for the given object code and salary amount
|
org.kuali.rice.core.api.util.type.KualiDecimal |
calculateFringeBenefitFromLaborObject(LaborLedgerObject laborLedgerObject,
org.kuali.rice.core.api.util.type.KualiDecimal salaryAmount,
String accountNumber,
String subAccountNumber)
calculate the fringe benefit amount for the given labor object and salary amount
|
int |
countPendingSalaryExpenseTransfer(String emplid)
get the document numbers of the pending salary expense transfer documents for the given employee
|
void |
createAndBlankApproveSalaryExpenseTransferDocument(String documentDescription,
String explanation,
String annotation,
List<String> adHocRecipients,
List<LaborLedgerExpenseTransferAccountingLine> sourceAccountingLines,
List<LaborLedgerExpenseTransferAccountingLine> targetAccountingLines)
create and approve a salary expense transfer document generated from the given accounting lines
|
AccountingLineOverride |
determineNeededOverrides(AccountingDocument document,
AccountingLine line) |
AccountingLineOverride |
determineNeededOverrides(AccountingLine line)
Deprecated.
|
boolean |
doesLaborLedgerPositionObjectGroupExist(String positionObjectGroupCode)
Determines where a Labor Ledger postion object group with the given code actually exists.
|
List<String> |
findEmployeesWithPayType(Map<Integer,Set<String>> payPeriods,
List<String> balanceTypes,
Map<String,Set<String>> earnCodePayGroupMap)
find the employees who were paid based on a set of specified pay type within the given report periods.
|
Collection<LaborLedgerBalance> |
findLedgerBalances(Map<String,Collection<String>> fieldValues,
Map<String,Collection<String>> excludedFieldValues,
Set<Integer> fiscalYears,
List<String> balanceTypes,
List<String> positionObjectGroupCodes)
find all ledger balances matching the given criteria within the given fiscal years
|
String |
getBenefitRateCategoryCode(String chartOfAccountsCode,
String accountNumber,
String subAccountNumber) |
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
String |
getCostSharingSourceAccountNumber() |
String |
getCostSharingSourceChartOfAccountsCode() |
String |
getCostSharingSourceSubAccountNumber() |
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute.
|
org.kuali.rice.krad.service.DocumentService |
getDocumentService()
Gets the documentService attribute.
|
org.kuali.rice.kns.lookup.HtmlData |
getInquiryUrlForGeneralLedgerEntryDocumentNumber(Entry entry)
Builds the url for the given GL entry to go to inquiry screen for related LD entries
|
org.kuali.rice.krad.service.KualiModuleService |
getKualiModuleService()
Gets the KualiModuleService attribute value.
|
LaborBenefitsCalculationService |
getLaborBenefitsCalculationService()
Gets the laborBenefitsCalculationService attribute.
|
LaborLedgerBalanceService |
getLaborLedgerBalanceService()
Gets the laborLedgerBalanceService attribute.
|
LaborLedgerEntryService |
getLaborLedgerEntryService()
Gets the laborLedgerEntryService attribute.
|
Collection<String> |
getLaborLedgerGLOriginCodes()
Looks up the origin codes from the parameter KFS-LD / LedgerEntry / LINK_DOCUMENT_NUMBER_TO_LABOR_ORIGIN_CODES
|
LaborLedgerPendingEntryService |
getLaborLedgerPendingEntryService()
Gets the laborLedgerPendingEntryService
|
LaborLedgerPositionObjectGroup |
getLaborLedgerPositionObjectGroup(String positionObjectGroupCode) |
LaborOriginEntryService |
getLaborOriginEntryService()
Returns an instance of the LaborOriginEntryService, for use by services in the module
|
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
UniversityDateService |
getUniversityDateService()
Gets the universityDateService attribute.
|
boolean |
hasFringeBenefitProducingObjectCodes(Integer fiscalYear,
String chartOfAccountsCode,
String financialObjectCode)
Determines whether the given set of accounting lines have object codes that receieve fringe benefits
|
boolean |
hasPendingLaborLedgerEntry(String chartOfAccountsCode,
String accountNumber)
Does the given account have any labor ledger entries? It is necessary to check this before closing an account.
|
boolean |
isEmployeeWithPayType(String emplid,
Map<Integer,Set<String>> payPeriods,
List<String> balanceTypes,
Map<String,Set<String>> earnCodePayGroupMap)
determine whether the given employee was paid based on a set of specified pay type within the given report periods.
|
List<LaborLedgerPositionObjectBenefit> |
retrieveActiveLaborPositionObjectBenefits(Integer fiscalYear,
String chartOfAccountsCode,
String objectCode) |
LaborLedgerObject |
retrieveLaborLedgerObject(Integer fiscalYear,
String chartOfAccountsCode,
String objectCode)
retrieves a specific LaborLedgerObject from the database using primary key
|
LaborLedgerObject |
retrieveLaborLedgerObject(ObjectCode financialObject)
retrieves a specific LaborLedgerObject based on the information of the given financial object
|
List<LaborLedgerPositionObjectBenefit> |
retrieveLaborPositionObjectBenefits(Integer fiscalYear,
String chartOfAccountsCode,
String objectCode)
Retrieves LaborLedgerPositionObjectBenefits for a LaborLedgerObject key
|
public LaborModuleServiceImpl()
public org.kuali.rice.core.api.util.type.KualiDecimal calculateFringeBenefitFromLaborObject(LaborLedgerObject laborLedgerObject, org.kuali.rice.core.api.util.type.KualiDecimal salaryAmount, String accountNumber, String subAccountNumber)
LaborModuleService
calculateFringeBenefitFromLaborObject
in interface LaborModuleService
laborLedgerObject
- the given labor objectsalaryAmount
- the given salary amountorg.kuali.kfs.integration.ld.LaborModuleService#calculateFringeBenefitFromLaborObject(org.kuali.kfs.integration.ld.LaborLedgerObject,
org.kuali.rice.core.api.util.type.KualiDecimal)
public org.kuali.rice.core.api.util.type.KualiDecimal calculateFringeBenefit(Integer fiscalYear, String chartCode, String objectCode, org.kuali.rice.core.api.util.type.KualiDecimal salaryAmount, String accountNumber, String subAccountNumber)
LaborModuleService
calculateFringeBenefit
in interface LaborModuleService
fiscalYear
- the year for object code recordchartCode
- the chart for object code recordobjectCode
- the object codesalaryAmount
- amount to calculate benefits fororg.kuali.kfs.integration.ld.LaborModuleService#calculateFringeBenefit(java.lang.Integer, java.lang.String,
java.lang.String, org.kuali.rice.core.api.util.type.KualiDecimal)
public void createAndBlankApproveSalaryExpenseTransferDocument(String documentDescription, String explanation, String annotation, List<String> adHocRecipients, List<LaborLedgerExpenseTransferAccountingLine> sourceAccountingLines, List<LaborLedgerExpenseTransferAccountingLine> targetAccountingLines) throws org.kuali.rice.kew.api.exception.WorkflowException
LaborModuleService
createAndBlankApproveSalaryExpenseTransferDocument
in interface LaborModuleService
documentDescription
- the description about the generated documentexplanation
- the explanation for the documentannotation
- the annotation as acknowledgementadHocRecipients
- the given ad-hoc recipients who will be acknowledged about the documentsourceAccountingLines
- the given source accounting lines used to populate documenttargetAccountingLines
- the given target accounting lines used to populate documentorg.kuali.rice.kew.api.exception.WorkflowException
- occurs if the document is failed to be routed for approvalLaborModuleService.createAndBlankApproveSalaryExpenseTransferDocument(java.lang.String,
java.lang.String, java.lang.String, java.util.List, java.util.List, java.util.List)
protected org.kuali.rice.krad.bo.AdHocRouteRecipient buildApprovePersonRecipient(String userId)
userId
- public int countPendingSalaryExpenseTransfer(String emplid)
LaborModuleService
countPendingSalaryExpenseTransfer
in interface LaborModuleService
emplid
- the given employee idLaborModuleService.countPendingSalaryExpenseTransfer(java.lang.String)
public List<String> findEmployeesWithPayType(Map<Integer,Set<String>> payPeriods, List<String> balanceTypes, Map<String,Set<String>> earnCodePayGroupMap)
LaborModuleService
findEmployeesWithPayType
in interface LaborModuleService
payPeriods
- the given pay periodsbalanceTypes
- the specified balance type codesearnCodePayGroupMap
- the combination of earn codes and pay groups, where pay group is the key and earn code set is the
valueLaborModuleService.findEmployeesWithPayType(java.util.Map, java.util.List, java.util.Map)
public boolean isEmployeeWithPayType(String emplid, Map<Integer,Set<String>> payPeriods, List<String> balanceTypes, Map<String,Set<String>> earnCodePayGroupMap)
LaborModuleService
isEmployeeWithPayType
in interface LaborModuleService
emplid
- the given employee idpayPeriods
- the given pay periodsbalanceTypes
- the specified balance type codesearnCodePayGroupMap
- the combination of earn codes and pay groups, where pay group is the key and earn code set is the
valueLaborModuleService.isEmployeeWithPayType(java.lang.String, java.util.Map, java.util.List,
java.util.Map)
public Collection<LaborLedgerBalance> findLedgerBalances(Map<String,Collection<String>> fieldValues, Map<String,Collection<String>> excludedFieldValues, Set<Integer> fiscalYears, List<String> balanceTypes, List<String> positionObjectGroupCodes)
LaborModuleService
findLedgerBalances
in interface LaborModuleService
fieldValues
- the given field valuesexcludedFieldValues
- the given field values that must not be matchedfiscalYears
- the given fiscal yearspositionObjectGroupCodes
- the specified position obejct group codesLaborModuleService.findLedgerBalances(java.util.Map, java.util.Map, java.util.Set,
java.util.List, java.util.List)
public LaborLedgerPositionObjectGroup getLaborLedgerPositionObjectGroup(String positionObjectGroupCode)
public boolean doesLaborLedgerPositionObjectGroupExist(String positionObjectGroupCode)
LaborModuleService
doesLaborLedgerPositionObjectGroupExist
in interface LaborModuleService
positionObjectGroupCode
- the code of the position object group to check for existenceorg.kuali.kfs.integration.service.LaborModuleService#doesLaborLedgerPositionObjectGroupExist(java.lang.String)
public LaborLedgerObject retrieveLaborLedgerObject(Integer fiscalYear, String chartOfAccountsCode, String objectCode)
LaborModuleService
retrieveLaborLedgerObject
in interface LaborModuleService
fiscalYear
- the given fiscal yearchartOfAccountsCode
- the given chart of accounts codeobjectCode
- the given object codeLaborModuleService.retrieveLaborLedgerObject(java.lang.Integer, java.lang.String,
java.lang.String)
public LaborLedgerObject retrieveLaborLedgerObject(ObjectCode financialObject)
LaborModuleService
retrieveLaborLedgerObject
in interface LaborModuleService
financialObject
- the given financial objectLaborModuleService.retrieveLaborLedgerObject(org.kuali.kfs.coa.businessobject.ObjectCode)
public boolean hasPendingLaborLedgerEntry(String chartOfAccountsCode, String accountNumber)
LaborModuleService
hasPendingLaborLedgerEntry
in interface LaborModuleService
LaborModuleService.hasPendingLaborLedgerEntry(java.lang.String, java.lang.String)
public List<LaborLedgerPositionObjectBenefit> retrieveLaborPositionObjectBenefits(Integer fiscalYear, String chartOfAccountsCode, String objectCode)
LaborModuleService
retrieveLaborPositionObjectBenefits
in interface LaborModuleService
fiscalYear
- the given fiscal yearchartOfAccountsCode
- the given chart of accounts codeobjectCode
- the given object codeLaborModuleService.retrieveLaborPositionObjectBenefits(java.lang.Integer, java.lang.String,
java.lang.String)
public List<LaborLedgerPositionObjectBenefit> retrieveActiveLaborPositionObjectBenefits(Integer fiscalYear, String chartOfAccountsCode, String objectCode)
retrieveActiveLaborPositionObjectBenefits
in interface LaborModuleService
public boolean hasFringeBenefitProducingObjectCodes(Integer fiscalYear, String chartOfAccountsCode, String financialObjectCode)
LaborModuleService
hasFringeBenefitProducingObjectCodes
in interface LaborModuleService
fiscalYear
- the fiscal year of the documentchartOfAccountsCode
- chart of accounts code to checkfinancialObjectCode
- financialObjectCode to checkLaborModuleService.hasFringeBenefitProducingObjectCodes(java.lang.Integer,
java.lang.String, java.lang.String)
public Collection<String> getLaborLedgerGLOriginCodes()
getLaborLedgerGLOriginCodes
in interface LaborModuleService
LaborModuleService.getLaborLedgerGLOriginCodes()
public org.kuali.rice.kns.lookup.HtmlData getInquiryUrlForGeneralLedgerEntryDocumentNumber(Entry entry)
getInquiryUrlForGeneralLedgerEntryDocumentNumber
in interface LaborModuleService
entry
- an entry to find a labor ledger inquiry on the document number wasLaborModuleService.getInquiryUrlForGeneralLedgerEntryDocumentNumber(org.kuali.kfs.gl.businessobject.Entry)
public LaborBenefitsCalculationService getLaborBenefitsCalculationService()
public LaborLedgerEntryService getLaborLedgerEntryService()
public LaborLedgerBalanceService getLaborLedgerBalanceService()
public org.kuali.rice.krad.service.DocumentService getDocumentService()
public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public UniversityDateService getUniversityDateService()
public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public LaborLedgerPendingEntryService getLaborLedgerPendingEntryService()
public LaborOriginEntryService getLaborOriginEntryService()
public org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public org.kuali.rice.krad.service.KualiModuleService getKualiModuleService()
public String getBenefitRateCategoryCode(String chartOfAccountsCode, String accountNumber, String subAccountNumber)
getBenefitRateCategoryCode
in interface LaborModuleService
public String getCostSharingSourceAccountNumber()
getCostSharingSourceAccountNumber
in interface LaborModuleService
public String getCostSharingSourceSubAccountNumber()
getCostSharingSourceSubAccountNumber
in interface LaborModuleService
public String getCostSharingSourceChartOfAccountsCode()
getCostSharingSourceChartOfAccountsCode
in interface LaborModuleService
public AccountingLineOverride determineNeededOverrides(AccountingDocument document, AccountingLine line)
determineNeededOverrides
in interface LaborModuleService
@Deprecated public AccountingLineOverride determineNeededOverrides(AccountingLine line)
determineNeededOverrides
in interface LaborModuleService
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.