Java Doc for CashManagementServiceImpl.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » financial » service » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.module.financial.service.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.module.financial.service.impl.CashManagementServiceImpl

CashManagementServiceImpl
public class CashManagementServiceImpl implements CashManagementService(Code)
This is the default implementation of the CashManagementService interface.




Method Summary
public  voidaddDeposit(CashManagementDocument cashManagementDoc, String depositTicketNumber, BankAccount bankAccount, List selectedCashReceipts, List selectedCashieringChecks, boolean isFinalDeposit)
     This method adds a new deposit to a the given CashManagementDocument.
public  booleanallVerifiedCashReceiptsAreDeposited(CashManagementDocument cmDoc)
     This method verifies that all cash receipts for the document are deposited.
Parameters:
  cmDoc - The cash management document to verify.
public  booleanallowDocumentCancellation(CashManagementDocument cmDoc)
     This method determines if a document can be cancelled, by reviewing a set of criteria: - do any cash receipts exist in this document? - do any cashiering checks exist in this document? - do any cash details exist in this document? If any of these questions comes back as true, then the document cannot be canceled.
Parameters:
  cmDoc - The document that would be canceled.
public  voidapplyCashieringTransaction(CashManagementDocument cmDoc)
     This method applies the cashiering transaction to the given CashManagementDocument.
public  KualiDecimalcalculateDepositedCheckTotal(String documentNumber)
     Total up the amounts of all checks so far deposited as part of the given cash management document.
Parameters:
  documentNumber - The id of a cash management document.
public  KualiDecimalcalculateUndepositedCheckTotal(String documentNumber)
     Calculates the total amount of all the undeposited checks for a cash management document.
Parameters:
  documentNumber - The id of the cash management document to pull the undeposited checks from.
public  voidcancelCashManagementDocument(CashManagementDocument cmDoc)
     This method cancels a cash management document, effectively nullifying all values and attributes associated with the document.
public  voidcancelDeposit(Deposit deposit)
     This method cancels a given deposit.
public  CashManagementDocumentcreateCashManagementDocument(String workgroupName, String docDescription, String annotation)
     This method creates a new cash management document and sets the provided values as attributes to the document.
public  voidcreateNewCashDetails(CashManagementDocument cmDoc, String cashieringSource)
     This method creates new cumulative currency and coin details for the document given.
public  voidfinalizeCashManagementDocument(CashManagementDocument cmDoc)
     This method performs the necessary steps to finalize a cash management document.
public  voidfinalizeLastInterimDeposit(CashManagementDocument cmDoc)
     This method turns the last interim deposit into the final deposit and locks the cash drawer.
public  CoinDetailgenerateMasterCoinDetail(CashManagementDocument cmDoc)
     This method generates a master coin detail for the cash management document given.
public  CurrencyDetailgenerateMasterCurrencyDetail(CashManagementDocument cmDoc)
     This method generates a master currency detail for the cash management document given.
public  BusinessObjectServicegetBusinessObjectService()
     Getter for retrieving an instance of the BusinessObjectService attribute.
public  Map<Class, Object>getCashDetailsForFinalDeposit(String documentNumber)
     This method retrieves the cash details for the final deposit object.
public  CashDrawerServicegetCashDrawerService()
     Getter for retrieving an instance of the CashDrawerService attribute.
public  CashManagementDaogetCashManagementDao()
     Gets the cashManagementDao attribute.
public  CashManagementDocumentgetCashManagementDocumentForCashReceiptId(String documentId)
     If a CMD is found that is associated with the CR document, then that CMD is returned; otherwise null is returned.
public  DateTimeServicegetDateTimeService()
     Gets the dateTimeService attribute.
public  DocumentServicegetDocumentService()
     Gets the documentService attribute.
public  List<CashieringItemInProcess>getOpenItemsInProcess(CashManagementDocument cmDoc)
     This method retrieves a collection of open CashieringItemInProcess objects from the cash management document given and returns that collection.
Parameters:
  cmDoc - The document the open items in process will be retrieved from.
public  List<CashieringItemInProcess>getRecentlyClosedItemsInProcess(CashManagementDocument cmDoc)
     This method retrieves a collection of recently closed CashieringItemInProcess objects from the cash management document given and returns the collection.
public  voidpopulateCashDetailsForDeposit(CashManagementDocument cmDoc)
     Populates the currency and coin detail for final deposits by setting the deposited currency or coin amount equal to the associated cashiering record currency or coin amount.
public  ListretrieveCashReceipts(Deposit deposit)
     This method returns a collection of cash receipts associated with the deposit given.
Parameters:
  deposit - The deposit to retrieve all the cash receipts for.
public  List<Check>selectCashieringChecksForDeposit(String documentNumber, Integer depositLineNumber)
     This method retrieves the collection of cashiering checks associated with a given deposit.
Parameters:
  documentNumber - The id of the document to search for the deposit within.
Parameters:
  depositLineNumber - The line number of the deposit to be found.
public  List<Check>selectDepositedCashieringChecks(String documentNumber)
     This method retrieves a collection of all deposited checks associated with the given document.
Parameters:
  documentNumber - The document to retrieve the deposited checks from.
public  IntegerselectNextAvailableCheckLineNumber(String documentNumber)
     This method retrieves the next available check line number from the document provided.
Parameters:
  documentNumber - The document to get the next check line number from.
public  List<Check>selectUndepositedCashieringChecks(String documentNumber)
     This method retrieves the collection of undeposited cashiering checks associated with the document given.
Parameters:
  documentNumber - The id of the document to search for the undeposited checks within.
public  voidsetBusinessObjectService(BusinessObjectService businessObjectService)
     Sets the businessObjectService attribute value.
public  voidsetCashDrawerService(CashDrawerService cashDrawerService)
     Sets the cashDrawerService attribute value.
public  voidsetCashManagementDao(CashManagementDao cashManagementDao)
     Sets the cashManagementDao attribute value.
public  voidsetDateTimeService(DateTimeService dateTimeService)
     Sets the dateTimeService attribute value.
public  voidsetDocumentService(DocumentService documentService)
     Sets the documentService attribute value.
public  booleanverifyCashReceiptIsDeposited(CashManagementDocument cmDoc, CashReceiptDocument crDoc)
     Verifies if a given cash receipt is deposited as part of the given cash management document.
Parameters:
  cmDoc - The cash management document to search through.
Parameters:
  crDoc - The cash receipt to check the deposited status of.



Method Detail
addDeposit
public void addDeposit(CashManagementDocument cashManagementDoc, String depositTicketNumber, BankAccount bankAccount, List selectedCashReceipts, List selectedCashieringChecks, boolean isFinalDeposit)(Code)
This method adds a new deposit to a the given CashManagementDocument.
The following steps go into adding a deposit to a cash management document.
  • The given deposit parameters are validated.
  • The corresponding cash drawer is locked
  • The given cashiering check records are turned into check records
  • The new deposit is created
  • The deposit is added to the cash management document and persisted
  • The list of cash receipts are associated with the new deposit
  • The deposit is saved again to ensure all links and attributes of the deposit are set appropriately and persisted
  • The drawer is unlocked



allVerifiedCashReceiptsAreDeposited
public boolean allVerifiedCashReceiptsAreDeposited(CashManagementDocument cmDoc)(Code)
This method verifies that all cash receipts for the document are deposited.
Parameters:
  cmDoc - The cash management document to verify. True if all CashReceipts are deposited, false otherwise.



allowDocumentCancellation
public boolean allowDocumentCancellation(CashManagementDocument cmDoc)(Code)
This method determines if a document can be cancelled, by reviewing a set of criteria: - do any cash receipts exist in this document? - do any cashiering checks exist in this document? - do any cash details exist in this document? If any of these questions comes back as true, then the document cannot be canceled.
Parameters:
  cmDoc - The document that would be canceled. True if the document can be canceled, false otherwise.
See Also:   org.kuali.module.financial.service.CashManagementService.allowDocumentCancellation(org.kuali.module.financial.document.CashManagementDocument)



applyCashieringTransaction
public void applyCashieringTransaction(CashManagementDocument cmDoc)(Code)
This method applies the cashiering transaction to the given CashManagementDocument. This is accomplished by retrieving a CashieringTransactionRule object and running the appropriate methods to process the cashiering application rules.
See Also:   org.kuali.module.financial.service.CashManagementService.applyCashieringTransaction(org.kuali.module.financial.document.CashManagementDocumentorg.kuali.module.financial.bo.CashieringTransaction)
See Also:   org.kuali.module.financial.rules.CashieringTransactionRule.processCashieringTransactionApplicationRules(CashManagementDocument)



calculateDepositedCheckTotal
public KualiDecimal calculateDepositedCheckTotal(String documentNumber)(Code)
Total up the amounts of all checks so far deposited as part of the given cash management document.
Parameters:
  documentNumber - The id of a cash management document. The total amount of cashiering checks deposited so far as part of that document.



calculateUndepositedCheckTotal
public KualiDecimal calculateUndepositedCheckTotal(String documentNumber)(Code)
Calculates the total amount of all the undeposited checks for a cash management document.
Parameters:
  documentNumber - The id of the cash management document to pull the undeposited checks from. The total amount of all undeposited checks for the document given.
See Also:   org.kuali.module.financial.service.CashManagementService.calculateUndepositedCheckTotal(java.lang.String)



cancelCashManagementDocument
public void cancelCashManagementDocument(CashManagementDocument cmDoc)(Code)
This method cancels a cash management document, effectively nullifying all values and attributes associated with the document. Canceling a CashManagementDocument results in the following:
  • Cancels (deletes) all deposits associated with the document.
  • Recloses the drawer
  • Remove all currency and coin records generated by the document.

NOTE: Method should only be called after the appropriate CashManagementDocumentRule has been successfully passed.
Parameters:
  cmDoc - The CashManagementDocument to be canceled.
See Also:   org.kuali.module.financial.service.CashManagementService.cancelCashManagementDocument(org.kuali.module.financial.document.CashManagementDocument)



cancelDeposit
public void cancelDeposit(Deposit deposit)(Code)
This method cancels a given deposit. This equates to the following:
  • Resetting all associated CashReceipts to a state of VERIFIED.
  • Update all associated cashiering checks to a be un-deposited.
  • Unlock the cash drawer if needed.
  • Delete the deposit.

See Also:   org.kuali.module.financial.service.CashManagementService.cancelDeposit(org.kuali.module.financial.bo.Deposit)



createCashManagementDocument
public CashManagementDocument createCashManagementDocument(String workgroupName, String docDescription, String annotation)(Code)
This method creates a new cash management document and sets the provided values as attributes to the document. The steps followed to create a new cash management document are as follows:
  • Find the drawer for the workgroupName given.
  • Make sure the drawer is closed, force the drawer closed if it is not already closed.
  • Create the cash management document, set the provided values to the document and link it to the cash drawer
If the workgroupName or docDescription values are null, an IllegalArgumentException will be thrown. TODO - annotation is not used or set at all in this method, remove it if appropriate.
Parameters:
  workgroupName - The workgroup name of the cash drawer.
Parameters:
  docDescription - The document description to be set on the new cash management document.
Parameters:
  annotation - A new instance of a CashManagementDocument (not persisted).
See Also:   org.kuali.module.financial.service.CashManagementService.createCashManagementDocument(java.lang.Stringjava.lang.Stringjava.lang.String)



createNewCashDetails
public void createNewCashDetails(CashManagementDocument cmDoc, String cashieringSource)(Code)
This method creates new cumulative currency and coin details for the document given.
Parameters:
  cmDoc - The cash management document the cumulative details will be associated with.
Parameters:
  cashieringSource - The cashiering record source for the new details.



finalizeCashManagementDocument
public void finalizeCashManagementDocument(CashManagementDocument cmDoc)(Code)
This method performs the necessary steps to finalize a cash management document. These steps include:
  • Finalize all associated cash receipts.
  • Generate the master currency and coin details and persist them.
  • Update the CashManagementDocument status to APPROVED.

NOTE: Method should only be called after the appropriate CashManagementDocumentRule has been successfully passed
Parameters:
  cmDoc - The CashManagementDocument to be finalized.
See Also:   org.kuali.module.financial.service.CashManagementService.finalizeCashManagementDocument(org.kuali.module.financial.document.CashManagementDocument)



finalizeLastInterimDeposit
public void finalizeLastInterimDeposit(CashManagementDocument cmDoc)(Code)
This method turns the last interim deposit into the final deposit and locks the cash drawer. A deposit is turned into a final deposit by updating the deposit type code.
NOTE: This method throws an IllegalStateException if a final deposit already exists for this document or if there are any undeposited cash receipts.
Parameters:
  cmDoc - The cash management document to take deposits from for finalization.



generateMasterCoinDetail
public CoinDetail generateMasterCoinDetail(CashManagementDocument cmDoc)(Code)
This method generates a master coin detail for the cash management document given. A master coin detail is a CoinDetail that represents the result of all the money in and out of the cash drawer via the given cash management document. The following formula is used to perform this calculation:
  • "coin detail for cash receipt - coin detail for deposits + coin detail for money in - coin detail for money out"

Parameters:
  cmDoc - The document the master coin detail will be generated from. The resulting coin detail.
See Also:   org.kuali.module.financial.service.CashManagementService.generateMasterCoinDetail(org.kuali.module.financial.document.CashManagementDocument)



generateMasterCurrencyDetail
public CurrencyDetail generateMasterCurrencyDetail(CashManagementDocument cmDoc)(Code)
This method generates a master currency detail for the cash management document given. A master currency detail is a currencyDetail that represents the result of all the money in and out of the cash drawer via the given cash management document. The following formula is used to perform this calculation:
  • "currency detail for cash receipt - currency detail for deposits + currency detail for money in - currency detail for money out"

Parameters:
  cmDoc - The document the master currency detail will be generated from. The resulting currency detail.
See Also:   org.kuali.module.financial.service.CashManagementService.generateMasterCurrencyDetail(org.kuali.module.financial.document.CashManagementDocument)



getBusinessObjectService
public BusinessObjectService getBusinessObjectService()(Code)
Getter for retrieving an instance of the BusinessObjectService attribute. Current value of businessObjectService.



getCashDetailsForFinalDeposit
public Map<Class, Object> getCashDetailsForFinalDeposit(String documentNumber)(Code)
This method retrieves the cash details for the final deposit object. The resulting map contains a CurrencyDetail and a CoinDetail object, both keyed by the class of detail they represent (ie. CurrencyDetail.class is the map key for the CurrencyDetail of the document).
Parameters:
  documentNumber - The document the details will be generated from. A map of the resulting cash details. This map is keyed by the detail class object.
See Also:   org.kuali.module.financial.service.CashManagementService.getCashDetailsForFinalDeposit(java.lang.String)



getCashDrawerService
public CashDrawerService getCashDrawerService()(Code)
Getter for retrieving an instance of the CashDrawerService attribute. Current value of cashDrawerService.



getCashManagementDao
public CashManagementDao getCashManagementDao()(Code)
Gets the cashManagementDao attribute. Returns the cashManagementDao.



getCashManagementDocumentForCashReceiptId
public CashManagementDocument getCashManagementDocumentForCashReceiptId(String documentId)(Code)
If a CMD is found that is associated with the CR document, then that CMD is returned; otherwise null is returned. Currently the relationships are:
  • (CashReceipt to CashReceiptHeader) is (1 to 1)
  • (CashReceiptHeader to DepositCashReceiptControl) is (1 to 1)
  • (DepositCashReceiptControl to Deposit) is (many to 1)
  • (Deposit to CashManagementDocument) is (many to 1)

Parameters:
  documentId - The id of the cash receipt document linked to the cash management document. An instance of a CashManagementDocument matching the provided search criteria, or null if no value is found.
See Also:   org.kuali.module.financial.service.CashManagementService.getCashManagementDocumentForCashReceiptId(java.lang.String)



getDateTimeService
public DateTimeService getDateTimeService()(Code)
Gets the dateTimeService attribute. Current value of dateTimeService.



getDocumentService
public DocumentService getDocumentService()(Code)
Gets the documentService attribute. Current value of documentService.



getOpenItemsInProcess
public List<CashieringItemInProcess> getOpenItemsInProcess(CashManagementDocument cmDoc)(Code)
This method retrieves a collection of open CashieringItemInProcess objects from the cash management document given and returns that collection.
Parameters:
  cmDoc - The document the open items in process will be retrieved from. The collection of open items.
See Also:   org.kuali.module.financial.service.CashManagementService.getOpenItemsInProcess(org.kuali.module.financial.document.CashManagementDocument)



getRecentlyClosedItemsInProcess
public List<CashieringItemInProcess> getRecentlyClosedItemsInProcess(CashManagementDocument cmDoc)(Code)
This method retrieves a collection of recently closed CashieringItemInProcess objects from the cash management document given and returns the collection.
Parameters:
  cmDoc - The cash management document the recently closed items will be retrieved from. The collection of recently closed items.
See Also:   org.kuali.module.financial.service.CashManagementService.getRecentlyClosedItemsInProcess(org.kuali.module.financial.document.CashManagementDocument)



populateCashDetailsForDeposit
public void populateCashDetailsForDeposit(CashManagementDocument cmDoc)(Code)
Populates the currency and coin detail for final deposits by setting the deposited currency or coin amount equal to the associated cashiering record currency or coin amount.
Parameters:
  cmDoc - The cash management document which has deposits to populate.



retrieveCashReceipts
public List retrieveCashReceipts(Deposit deposit)(Code)
This method returns a collection of cash receipts associated with the deposit given.
Parameters:
  deposit - The deposit to retrieve all the cash receipts for. A collection of cash receipts associated with the deposit given.
See Also:   org.kuali.module.financial.service.CashManagementService.retrieveCashReceipts(org.kuali.module.financial.bo.Deposit)



selectCashieringChecksForDeposit
public List<Check> selectCashieringChecksForDeposit(String documentNumber, Integer depositLineNumber)(Code)
This method retrieves the collection of cashiering checks associated with a given deposit.
Parameters:
  documentNumber - The id of the document to search for the deposit within.
Parameters:
  depositLineNumber - The line number of the deposit to be found. A collection of checks for the deposit and document given.
See Also:   org.kuali.module.financial.service.CashManagementService.selectCashieringChecksForDeposit(java.lang.Stringjava.lang.Integer)



selectDepositedCashieringChecks
public List<Check> selectDepositedCashieringChecks(String documentNumber)(Code)
This method retrieves a collection of all deposited checks associated with the given document.
Parameters:
  documentNumber - The document to retrieve the deposited checks from. A collection of all deposited checks for the document given.
See Also:   org.kuali.module.financial.service.CashManagementService.selectDepositedCashieringChecks(java.lang.String)



selectNextAvailableCheckLineNumber
public Integer selectNextAvailableCheckLineNumber(String documentNumber)(Code)
This method retrieves the next available check line number from the document provided.
Parameters:
  documentNumber - The document to get the next check line number from. The next available check line number.
See Also:   org.kuali.module.financial.service.CashManagementService.selectNextAvailableCheckLineNumber(java.lang.String)



selectUndepositedCashieringChecks
public List<Check> selectUndepositedCashieringChecks(String documentNumber)(Code)
This method retrieves the collection of undeposited cashiering checks associated with the document given.
Parameters:
  documentNumber - The id of the document to search for the undeposited checks within. A collection of any undeposited checks for the document given.
See Also:   org.kuali.module.financial.service.CashManagementService.selectUndepositedCashieringChecks(java.lang.String)



setBusinessObjectService
public void setBusinessObjectService(BusinessObjectService businessObjectService)(Code)
Sets the businessObjectService attribute value.
Parameters:
  businessObjectService - The businessObjectService to set.



setCashDrawerService
public void setCashDrawerService(CashDrawerService cashDrawerService)(Code)
Sets the cashDrawerService attribute value.
Parameters:
  cashDrawerService - The cashDrawerService to set.



setCashManagementDao
public void setCashManagementDao(CashManagementDao cashManagementDao)(Code)
Sets the cashManagementDao attribute value.
Parameters:
  cashManagementDao - The cashManagementDao to set.



setDateTimeService
public void setDateTimeService(DateTimeService dateTimeService)(Code)
Sets the dateTimeService attribute value.
Parameters:
  dateTimeService - The dateTimeService to set.



setDocumentService
public void setDocumentService(DocumentService documentService)(Code)
Sets the documentService attribute value.
Parameters:
  documentService -



verifyCashReceiptIsDeposited
public boolean verifyCashReceiptIsDeposited(CashManagementDocument cmDoc, CashReceiptDocument crDoc)(Code)
Verifies if a given cash receipt is deposited as part of the given cash management document.
Parameters:
  cmDoc - The cash management document to search through.
Parameters:
  crDoc - The cash receipt to check the deposited status of. True if the given cash receipt document is deposited as part of the given cash management document, false otherwise.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.