|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.fp.batch.service.impl.ProcurementCardCreateDocumentServiceImpl
@Transactional public class ProcurementCardCreateDocumentServiceImpl
This is the default implementation of the ProcurementCardCreateDocumentService interface.
ProcurementCardCreateDocumentService| Field Summary | |
|---|---|
protected AccountingLineRuleHelperService |
accountingLineRuleUtil
|
protected org.kuali.rice.kns.service.BusinessObjectService |
businessObjectService
|
protected CapitalAssetBuilderModuleService |
capitalAssetBuilderModuleService
|
protected org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService
|
protected org.kuali.rice.kns.service.DateTimeService |
dateTimeService
|
protected org.kuali.rice.kns.service.DocumentService |
documentService
|
protected org.kuali.rice.kns.service.ParameterService |
parameterService
|
protected static String |
WORKFLOW_SEARCH_RESULT_KEY
|
protected org.kuali.rice.kns.workflow.service.WorkflowDocumentService |
workflowDocumentService
|
| Constructor Summary | |
|---|---|
ProcurementCardCreateDocumentServiceImpl()
|
|
| Method Summary | |
|---|---|
boolean |
autoApproveProcurementCardDocuments()
This method determines if procurement card documents can be auto approved. |
protected void |
cleanTransactionsTable()
Calls businessObjectService to remove all the procurement card transaction rows from the transaction load table. |
protected String |
createAndValidateAccountingLines(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
From the transaction accounting attributes, creates source and target accounting lines. |
protected void |
createCardHolderRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction)
Creates card holder record and sets that record to the document given. |
protected ProcurementCardDocument |
createProcurementCardDocument(List transactions)
Creates a ProcurementCardDocument from the List of transactions given. |
boolean |
createProcurementCardDocuments()
This method retrieves a collection of credit card transactions and traverses through this list, creating ProcurementCardDocuments for each card. |
protected ProcurementCardSourceAccountingLine |
createSourceAccountingLine(ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
Creates the from record for the transaction. |
protected ProcurementCardTargetAccountingLine |
createTargetAccountingLine(ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
Creates the to record for the transaction. |
protected String |
createTransactionDetailRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
Integer transactionLineNumber)
Creates a transaction detail record and adds that record to the document provided. |
protected void |
createTransactionVendorRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail transactionDetail)
Creates a transaction vendor detail record and adds it to the transaction detail. |
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute. |
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute. |
org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
protected String |
getDefaultAccountNumber()
Retrieves the default account number from the parameter table. |
protected String |
getDefaultChartCode()
Retrieves the default chard code from the parameter table. |
protected String |
getDefaultObjectCode()
Retrieves the default object code from the parameter table. |
org.kuali.rice.kns.service.DocumentService |
getDocumentService()
Gets the documentService attribute. |
protected String |
getErrorAccountNumber()
Retrieves the error account number from the parameter table. |
protected String |
getErrorChartCode()
Retrieves the error chart code from the parameter table. |
org.kuali.rice.kns.workflow.service.WorkflowDocumentService |
getWorkflowDocumentService()
Gets the workflowDocumentService attribute. |
protected void |
loadTransactions(List transactions)
Loads all the parsed XML transactions into the temp transaction table. |
protected String |
parseDocumentIdFromRouteDocHeader(String routeDocHeader)
Retrieves the document id out of the route document header |
protected List<String> |
retrieveProcurementCardDocumentsToRoute(String statusCode)
Returns a list of all initiated but not yet routed procurement card documents, using the KualiWorkflowInfo service. |
protected List |
retrieveTransactions()
This method retrieves a list of transactions from a temporary table, and groups them into document lists, based on single transaction indicator or a grouping by card. |
boolean |
routeProcurementCardDocuments()
This method retrieves all the procurement card documents with a status of 'I' and routes them to the next step in the routing path. |
void |
setAccountingLineRuleUtil(AccountingLineRuleHelperService accountingLineRuleUtil)
Sets the accountingLineRuleUtil attribute value. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute. |
void |
setCapitalAssetBuilderModuleService(CapitalAssetBuilderModuleService capitalAssetBuilderModuleService)
Sets the capitalAssetBuilderModuleService attribute value. |
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute. |
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute. |
void |
setWorkflowDocumentService(org.kuali.rice.kns.workflow.service.WorkflowDocumentService workflowDocumentService)
Sets the workflowDocumentService attribute value. |
protected String |
validateTargetAccountingLine(ProcurementCardTargetAccountingLine targetLine)
Validates the chart of account attributes for existence and active indicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String WORKFLOW_SEARCH_RESULT_KEY
protected org.kuali.rice.kns.service.ParameterService parameterService
protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService
protected org.kuali.rice.kns.service.DocumentService documentService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected org.kuali.rice.kns.service.DateTimeService dateTimeService
protected org.kuali.rice.kns.workflow.service.WorkflowDocumentService workflowDocumentService
protected AccountingLineRuleHelperService accountingLineRuleUtil
protected CapitalAssetBuilderModuleService capitalAssetBuilderModuleService
| Constructor Detail |
|---|
public ProcurementCardCreateDocumentServiceImpl()
| Method Detail |
|---|
public boolean createProcurementCardDocuments()
createProcurementCardDocuments in interface ProcurementCardCreateDocumentServiceProcurementCardCreateDocumentService.createProcurementCardDocuments()public boolean routeProcurementCardDocuments()
routeProcurementCardDocuments in interface ProcurementCardCreateDocumentServiceorg.kuali.kfs.fp.batch.service.ProcurementCardCreateDocumentService#routeProcurementCardDocuments(java.util.List)
protected List<String> retrieveProcurementCardDocumentsToRoute(String statusCode)
throws org.kuali.rice.kew.exception.WorkflowException,
RemoteException
org.kuali.rice.kew.exception.WorkflowException
RemoteExceptionprotected String parseDocumentIdFromRouteDocHeader(String routeDocHeader)
routeDocHeader - the String representing an HTML link to the document
public boolean autoApproveProcurementCardDocuments()
autoApproveProcurementCardDocuments in interface ProcurementCardCreateDocumentServiceProcurementCardCreateDocumentService.autoApproveProcurementCardDocuments()protected List retrieveTransactions()
protected ProcurementCardDocument createProcurementCardDocument(List transactions)
transactions - List of ProcurementCardTransaction objects to be used for creating the document.
protected void createCardHolderRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction)
pcardDocument - Procurement card document to place the record in.transaction - The transaction to set the card holder record fields from.
protected String createTransactionDetailRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
Integer transactionLineNumber)
pcardDocument - Document to place record in.transaction - Transaction to set fields from.transactionLineNumber - Line number of the new transaction detail record within the procurement card document.
protected void createTransactionVendorRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail transactionDetail)
pcardDocument - The procurement card document to retrieve values from.transaction - Transaction to set fields from.transactionDetail - The transaction detail to set the vendor record on.
protected String createAndValidateAccountingLines(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
pcardDocument - The procurement card document to add the new accounting lines to.transaction - The transaction to process into account lines.docTransactionDetail - The transaction detail to create source and target accounting lines from.
protected ProcurementCardTargetAccountingLine createTargetAccountingLine(ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
transaction - The transaction to pull information from to create the accounting line.docTransactionDetail - The transaction detail to pull information from to populate the accounting line.
protected ProcurementCardSourceAccountingLine createSourceAccountingLine(ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
transaction - The transaction to pull information from to create the accounting line.docTransactionDetail - The transaction detail to pull information from to populate the accounting line.
protected String validateTargetAccountingLine(ProcurementCardTargetAccountingLine targetLine)
targetLine - The target accounting line to be validated.
protected String getErrorChartCode()
protected String getErrorAccountNumber()
protected String getDefaultChartCode()
protected String getDefaultAccountNumber()
protected String getDefaultObjectCode()
protected void cleanTransactionsTable()
protected void loadTransactions(List transactions)
transactions - List of ProcurementCardTransactions to load.public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService - public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public org.kuali.rice.kns.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService - The documentService to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService - dataDictionaryService 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.workflow.service.WorkflowDocumentService getWorkflowDocumentService()
public void setWorkflowDocumentService(org.kuali.rice.kns.workflow.service.WorkflowDocumentService workflowDocumentService)
workflowDocumentService - The workflowDocumentService to set.public void setAccountingLineRuleUtil(AccountingLineRuleHelperService accountingLineRuleUtil)
accountingLineRuleUtil - The accountingLineRuleUtil to set.public void setCapitalAssetBuilderModuleService(CapitalAssetBuilderModuleService capitalAssetBuilderModuleService)
capitalAssetBuilderModuleService - The capitalAssetBuilderModuleService to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||