|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.ld.document.service.impl.SalaryTransferPeriodValidationServiceImpl
@Transactional public class SalaryTransferPeriodValidationServiceImpl
SalaryTransferPeriodValidationService
Constructor Summary | |
---|---|
SalaryTransferPeriodValidationServiceImpl()
|
Method Summary | |
---|---|
protected void |
addAccountTransferAmount(Map<String,org.kuali.rice.kns.util.KualiDecimal> accountPeriodTransfer,
ExpenseTransferAccountingLine transferLine,
EffortCertificationReport effortReport)
Adds the line amount to the given map that contains the total transfer amount for the account and period. |
protected boolean |
containsNecessaryData(ExpenseTransferAccountingLine transferLine)
Verfies the given tranfer line contains the necessary data for performing the effort validations. |
void |
disapproveSalaryExpenseDocument(SalaryExpenseTransferDocument document)
Disapproves the salary expense document due to effort validation errors. |
protected EffortCertificationReport |
getClosedReportingPeriod(ExpenseTransferAccountingLine transferLine)
Checks list of report definitions for a closed period. |
protected List<EffortCertificationReport> |
getEffortReportDefinitionsForLine(ExpenseTransferAccountingLine transferLine)
Gets open or closed report definitions for line pay period and pay type. |
protected List<EffortCertificationReport> |
getOpenReportDefinitions(List<EffortCertificationReport> effortReports)
Returns the open report periods from the given list of report definitions. |
protected EffortCertificationReport |
getOpenReportingPeriod(ExpenseTransferAccountingLine transferLine)
Checks list of report definitions for a open period. |
protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> |
getPersonService()
|
protected boolean |
isCostShareSubAccount(ExpenseTransferAccountingLine transferLine)
Checks the sub account type code against the values defined for cost share. |
protected EffortCertificationReport |
isEmployeeWithOpenCertification(ExpenseTransferAccountingLine transferLine,
String emplid)
Finds all open effort reports for the given transfer line, then checks if the given emplid has a certification for one of those open reports. |
protected void |
putError(String errorKey,
ExpenseTransferAccountingLine transferLine,
EffortCertificationReport report)
Determines whether the error should be associated with the source or target lines, and builds up parameters for error message. |
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value. |
void |
setEffortCertificationService(EffortCertificationModuleService effortCertificationService)
Sets the effortCertificationService attribute value. |
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
Sets the kualiConfigurationService attribute value. |
void |
setNoteService(org.kuali.rice.kns.service.NoteService noteService)
Sets the noteService attribute value. |
boolean |
validateTransfers(SalaryExpenseTransferDocument document)
Checks the transfers that will be made by the expense lines do not impact an effort certification document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SalaryTransferPeriodValidationServiceImpl()
Method Detail |
---|
public boolean validateTransfers(SalaryExpenseTransferDocument document)
SalaryTransferPeriodValidationService
validateTransfers
in interface SalaryTransferPeriodValidationService
document
- - salary expense document to validate
SalaryTransferPeriodValidationService.validateTransfers(org.kuali.kfs.module.ld.document.SalaryExpenseTransferDocument)
public void disapproveSalaryExpenseDocument(SalaryExpenseTransferDocument document) throws Exception
SalaryTransferPeriodValidationService
disapproveSalaryExpenseDocument
in interface SalaryTransferPeriodValidationService
document
- - document to cancel
Exception
SalaryTransferPeriodValidationService.disapproveSalaryExpenseDocument(org.kuali.kfs.module.ld.document.SalaryExpenseTransferDocument)
protected EffortCertificationReport getClosedReportingPeriod(ExpenseTransferAccountingLine transferLine)
transferLine
- - transfer line to find report definition for
protected EffortCertificationReport getOpenReportingPeriod(ExpenseTransferAccountingLine transferLine)
transferLine
- - transfer line to find report definition for
protected List<EffortCertificationReport> getOpenReportDefinitions(List<EffortCertificationReport> effortReports)
effortReports
- - list of report definitions that are either open or closed
protected boolean isCostShareSubAccount(ExpenseTransferAccountingLine transferLine)
transferLine
- - line with sub account to check
protected EffortCertificationReport isEmployeeWithOpenCertification(ExpenseTransferAccountingLine transferLine, String emplid)
transferLine
- - line to find open reports foremplid
- - emplid to check for certification
protected void addAccountTransferAmount(Map<String,org.kuali.rice.kns.util.KualiDecimal> accountPeriodTransfer, ExpenseTransferAccountingLine transferLine, EffortCertificationReport effortReport)
accountPeriodTransfer
- - map holding the total transferseffortReport
- - open report for transfer linetransferLine
- - line with amount to addprotected List<EffortCertificationReport> getEffortReportDefinitionsForLine(ExpenseTransferAccountingLine transferLine)
transferLine
- - line to pull pay period and type from
protected boolean containsNecessaryData(ExpenseTransferAccountingLine transferLine)
transferLine
- - line to checkprotected void putError(String errorKey, ExpenseTransferAccountingLine transferLine, EffortCertificationReport report)
errorKey
- - key for the error messagetransferLine
- - transfer line which had errorreport
- - report which conflicted with linepublic void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- The documentService to set.public void setEffortCertificationService(EffortCertificationModuleService effortCertificationService)
effortCertificationService
- The effortCertificationService to set.public void setNoteService(org.kuali.rice.kns.service.NoteService noteService)
noteService
- The noteService to set.public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
kualiConfigurationService
- The kualiConfigurationService to set.protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |