|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.cab.batch.service.impl.BatchExtractServiceImpl
@Transactional public class BatchExtractServiceImpl
This class provides default implementation of BatchExtractService
Field Summary | |
---|---|
protected org.kuali.rice.kns.service.BusinessObjectService |
businessObjectService
|
protected org.kuali.rice.kns.service.DateTimeService |
dateTimeService
|
protected ExtractDao |
extractDao
|
protected static org.apache.log4j.Logger |
LOG
|
protected org.kuali.rice.kns.service.ParameterService |
parameterService
|
protected PurApInfoService |
purApInfoService
|
protected PurApLineService |
purApLineService
|
protected PurchasingAccountsPayableItemAssetDao |
purchasingAccountsPayableItemAssetDao
|
Constructor Summary | |
---|---|
BatchExtractServiceImpl()
|
Method Summary | |
---|---|
protected void |
addAssetLocks(HashMap<String,Object> assetLockMap,
PurchasingAccountsPayableDocument cabPurapDoc,
PurApItem purapItem,
Integer accountsPaymentItemId,
HashMap<Integer,PurchaseOrderDocument> poDocMap)
Add asset lock to prohibit CAMS user modify the asset payment line. |
void |
allocateAdditionalCharges(HashSet<PurchasingAccountsPayableDocument> purApDocuments)
Allocate additional charges during batch. |
protected BatchParameters |
createCabBatchParameters()
Creates a batch parameters object reading values from configured system parameters for CAB Extract |
protected GeneralLedgerEntry |
createNegativeGlEntry(Entry entry)
Force created entry with zero transaction amount |
protected GeneralLedgerEntry |
createPositiveGlEntry(Entry entry)
Force created entry with zero transaction amount |
protected BatchParameters |
createPreTagBatchParameters()
Creates a batch parameters object reading values from configured system parameters for Pre Tagging Extract |
protected PurchasingAccountsPayableDocument |
createPurchasingAccountsPayableDocument(Entry entry)
This method creates PurchasingAccountsPayableDocument from a GL Entry and AP Document |
protected PurchasingAccountsPayableItemAsset |
createPurchasingAccountsPayableItemAsset(PurchasingAccountsPayableDocument cabPurapDoc,
PurApItem apItem)
Creates a new PurchasingAccountsPayableItemAsset using Purchasing Accounts payable item |
protected PurchasingAccountsPayableLineAssetAccount |
createPurchasingAccountsPayableLineAssetAccount(GeneralLedgerEntry generalLedgerEntry,
PurchasingAccountsPayableDocument cabPurapDoc,
PurApAccountingLineBase purApAccountingLine,
PurchasingAccountsPayableItemAsset itemAsset)
Creates a new instance of PurchasingAccountsPayableLineAssetAccount using values provided from dependent objects |
protected VendorCreditMemoDocument |
findCreditMemoDocument(Entry entry)
Retrieves a credit memo document for a specific document number |
Collection<Entry> |
findElgibleGLEntries(ExtractProcessLog processLog)
Returns the list of CAB eligible GL entries, filter parameters are pre-configured |
protected PurchasingAccountsPayableItemAsset |
findMatchingPurapAssetItem(PurchasingAccountsPayableDocument cabPurapDoc,
PurApItem apItem)
Finds out the active CAB Asset Item matching the line from PurAP. |
protected PaymentRequestDocument |
findPaymentRequestDocument(Entry entry)
Retrieves a payment request document for a specific document number |
Collection<PurchaseOrderAccount> |
findPreTaggablePOAccounts()
Implementation will retrieve all eligible Purchase Order account lines from a Purchase order that matches criteria required by pre-asset tagging, using these account lines, batch process can identify the eligible purchase order line items to be saved for pre-tagging screen |
Collection<PurApAccountingLineBase> |
findPurapAccountRevisions()
Retrieves Payment Request Account History and Credit Memo account history, combines them into a single list |
protected PurchasingAccountsPayableDocument |
findPurchasingAccountsPayableDocument(Entry entry)
Finds PurchasingAccountsPayableDocument using document number |
protected List |
getAssetNumbersForLocking(PurchaseOrderDocument purApdocument,
PurApItem purapItem)
|
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute. |
protected Timestamp |
getCabLastRunTimestamp()
Computes the last run time stamp, if null then it gives yesterday |
protected CapitalAssetManagementModuleService |
getCapitalAssetManagementModuleService()
|
org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
ExtractDao |
getExtractDao()
Gets the extractDao attribute. |
org.kuali.rice.kns.service.ParameterService |
getParameterService()
Gets the parameterService attribute. |
protected Date |
getPreTagLastRunDate()
Gets the last pre tag extract run date from system parameter |
PurApInfoService |
getPurApInfoService()
Gets the purApInfoService attribute. |
PurApLineService |
getPurApLineService()
Gets the purApLineService attribute. |
PurchasingAccountsPayableItemAssetDao |
getPurchasingAccountsPayableItemAssetDao()
Gets the purchasingAccountsPayableItemAssetDao attribute. |
void |
saveFPLines(List<Entry> fpLines,
ExtractProcessLog processLog)
Saves financial transaction lines which dont have Purchase Order number associated with it |
HashSet<PurchasingAccountsPayableDocument> |
savePOLines(List<Entry> poLines,
ExtractProcessLog processLog)
Saved purchasing line transactions, this method implementation internally uses ReconciliationService to QA the data before saving |
void |
savePreTagLines(Collection<PurchaseOrderAccount> preTaggablePOAccounts)
Implementation will identify eligible purchase oder line items eligible for pre-tagging screen |
void |
separatePOLines(List<Entry> fpLines,
List<Entry> purapLines,
Collection<Entry> elgibleGLEntries)
Separates out transaction lines associated with purchase order from the rest |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setExtractDao(ExtractDao extractDao)
Sets the extractDao attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
void |
setPurApInfoService(PurApInfoService purApInfoService)
Sets the purApInfoService attribute value. |
void |
setPurApLineService(PurApLineService purApLineService)
Sets the purApLineService attribute value. |
void |
setPurchasingAccountsPayableItemAssetDao(PurchasingAccountsPayableItemAssetDao purchasingAccountsPayableItemAssetDao)
Sets the purchasingAccountsPayableItemAssetDao attribute value. |
protected void |
setupObjectRelationship(List<PurchasingAccountsPayableDocument> purApDocs)
Setup relationship from account to item and item to doc. |
void |
updateLastExtractDate(Date dt)
Updates the last extract date parameter for Pre Asset Tagging Step |
void |
updateLastExtractTime(Timestamp time)
Updates the last extract time stamp system parameter, usually done when a batch process is finished successfully. |
protected void |
updateProcessLog(ExtractProcessLog processLog,
ReconciliationService reconciliationService)
Updates the entries into process log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger LOG
protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService
protected ExtractDao extractDao
protected org.kuali.rice.kns.service.DateTimeService dateTimeService
protected org.kuali.rice.kns.service.ParameterService parameterService
protected PurApLineService purApLineService
protected PurApInfoService purApInfoService
protected PurchasingAccountsPayableItemAssetDao purchasingAccountsPayableItemAssetDao
Constructor Detail |
---|
public BatchExtractServiceImpl()
Method Detail |
---|
public void allocateAdditionalCharges(HashSet<PurchasingAccountsPayableDocument> purApDocuments)
BatchExtractService
allocateAdditionalCharges
in interface BatchExtractService
protected void setupObjectRelationship(List<PurchasingAccountsPayableDocument> purApDocs)
purApDocs
- protected BatchParameters createCabBatchParameters()
protected BatchParameters createPreTagBatchParameters()
protected VendorCreditMemoDocument findCreditMemoDocument(Entry entry)
entry
- GL Line
public Collection<Entry> findElgibleGLEntries(ExtractProcessLog processLog)
BatchExtractService
findElgibleGLEntries
in interface BatchExtractService
org.kuali.kfs.module.cab.batch.service.BatchExtractService#findElgibleGLEntries()
public Collection<PurchaseOrderAccount> findPreTaggablePOAccounts()
BatchExtractService
findPreTaggablePOAccounts
in interface BatchExtractService
BatchExtractService.findPreTaggablePOAccounts()
protected PaymentRequestDocument findPaymentRequestDocument(Entry entry)
entry
- GL Line
protected Timestamp getCabLastRunTimestamp()
protected Date getPreTagLastRunDate()
public void saveFPLines(List<Entry> fpLines, ExtractProcessLog processLog)
BatchExtractService
saveFPLines
in interface BatchExtractService
fpLines
- Financial transaction linesprocessLog
- Process Logorg.kuali.kfs.module.cab.batch.service.BatchExtractService#saveFPLines(java.util.List)
public HashSet<PurchasingAccountsPayableDocument> savePOLines(List<Entry> poLines, ExtractProcessLog processLog)
BatchExtractService
ReconciliationService
to QA the data before saving
savePOLines
in interface BatchExtractService
poLines
- Eligible GL LinesprocessLog
- Process Logorg.kuali.kfs.module.cab.batch.service.BatchExtractService#savePOLines(java.util.List)
protected void addAssetLocks(HashMap<String,Object> assetLockMap, PurchasingAccountsPayableDocument cabPurapDoc, PurApItem purapItem, Integer accountsPaymentItemId, HashMap<Integer,PurchaseOrderDocument> poDocMap)
assetLockMap
- cabPurapDoc
- purapItem
- itemAsset
- poDocMap
- protected List getAssetNumbersForLocking(PurchaseOrderDocument purApdocument, PurApItem purapItem)
protected CapitalAssetManagementModuleService getCapitalAssetManagementModuleService()
protected GeneralLedgerEntry createPositiveGlEntry(Entry entry)
entry
-
protected GeneralLedgerEntry createNegativeGlEntry(Entry entry)
entry
-
public Collection<PurApAccountingLineBase> findPurapAccountRevisions()
findPurapAccountRevisions
in interface BatchExtractService
org.kuali.kfs.module.cab.batch.service.BatchExtractService#findPurapAccountHistory()
protected PurchasingAccountsPayableLineAssetAccount createPurchasingAccountsPayableLineAssetAccount(GeneralLedgerEntry generalLedgerEntry, PurchasingAccountsPayableDocument cabPurapDoc, PurApAccountingLineBase purApAccountingLine, PurchasingAccountsPayableItemAsset itemAsset)
generalLedgerEntry
- General Ledger Entry recordcabPurapDoc
- CAB PurAp DocumentpurApAccountingLine
- PurAp accounting lineitemAsset
- CAB PurAp Item Asset
protected void updateProcessLog(ExtractProcessLog processLog, ReconciliationService reconciliationService)
processLog
- Extract Process LogreconciliationService
- Reconciliation Service dataprotected PurchasingAccountsPayableDocument findPurchasingAccountsPayableDocument(Entry entry)
entry
- GL Entry
protected PurchasingAccountsPayableItemAsset createPurchasingAccountsPayableItemAsset(PurchasingAccountsPayableDocument cabPurapDoc, PurApItem apItem)
cabPurapDoc
- Cab Purap DocumentapItem
- Accounts Payable Item
protected PurchasingAccountsPayableDocument createPurchasingAccountsPayableDocument(Entry entry)
entry
- GL EntryapDoc
- AP Document
protected PurchasingAccountsPayableItemAsset findMatchingPurapAssetItem(PurchasingAccountsPayableDocument cabPurapDoc, PurApItem apItem)
cabPurapDoc
- CAB PurAp documentapItem
- AP Item
public void separatePOLines(List<Entry> fpLines, List<Entry> purapLines, Collection<Entry> elgibleGLEntries)
BatchExtractService
separatePOLines
in interface BatchExtractService
fpLines
- Non-purchasing linespurapLines
- Purchasing lineselgibleGLEntries
- Full list of eligible GL entriesBatchExtractService.separatePOLines(java.util.List, java.util.List,
java.util.Collection)
public void updateLastExtractTime(Timestamp time)
BatchExtractService
updateLastExtractTime
in interface BatchExtractService
time
- Last extract start timeBatchExtractService.updateLastExtractTime(java.sql.Timestamp)
public void savePreTagLines(Collection<PurchaseOrderAccount> preTaggablePOAccounts)
BatchExtractService
savePreTagLines
in interface BatchExtractService
preTaggablePOAccounts
- List of pre-taggable account linesBatchExtractService.savePreTagLines(java.util.Collection)
public void updateLastExtractDate(Date dt)
BatchExtractService
updateLastExtractDate
in interface BatchExtractService
dt
- Date valueBatchExtractService.updateLastExtractDate(java.sql.Date)
public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public ExtractDao getExtractDao()
public void setExtractDao(ExtractDao extractDao)
extractDao
- The extractDao to set.public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.public PurchasingAccountsPayableItemAssetDao getPurchasingAccountsPayableItemAssetDao()
public void setPurchasingAccountsPayableItemAssetDao(PurchasingAccountsPayableItemAssetDao purchasingAccountsPayableItemAssetDao)
purchasingAccountsPayableItemAssetDao
- The purchasingAccountsPayableItemAssetDao to set.public PurApLineService getPurApLineService()
public void setPurApLineService(PurApLineService purApLineService)
purApLineService
- The purApLineService to set.public PurApInfoService getPurApInfoService()
public void setPurApInfoService(PurApInfoService purApInfoService)
purApInfoService
- The purApInfoService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |