Java Doc for CashDrawerServiceImpl.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.CashDrawerServiceImpl

CashDrawerServiceImpl
public class CashDrawerServiceImpl implements CashDrawerService(Code)
This is the default implementation of the CashDrawerService interface.




Method Summary
public  voidcloseCashDrawer(String workgroupName)
     Retrieves the CashDrawer associated with the workgroup provided and sets the state of the drawer to closed.
public  voidcloseCashDrawer(CashDrawer drawer)
     Sets the status of the drawer provided to closed and saves the new state.
public  BusinessObjectServicegetBusinessObjectService()
     Gets the businessObjectService attribute value.
public  CashDrawergetByWorkgroupName(String workgroupName, boolean autocreate)
     This method retrieves a cash drawer instance using the workgroup name provided as a search parameter.
public  KualiDecimalgetCoinTotal(CashDrawer drawer)
     This method calculates the total of all the coins in the cash drawer.
public  KualiDecimalgetCurrencyTotal(CashDrawer drawer)
     This method calculates the total of all the currency in the cash drawer.
public  voidlockCashDrawer(String workgroupName, String documentId)
     Retrieves a cash drawer using the workgroup name provided, updates the state to locked, then persists this state change.
public  voidlockCashDrawer(CashDrawer drawer, String documentId)
     Sets the state of the cash drawer provided to locked and persists this new state.
public  CashDraweropenCashDrawer(String workgroupName, String documentId)
     Retrieves an instance of a cash drawer based on the parameters provided and sets the status of the drawer to open, persists the state change and then returns an instance of the drawer in it's new state.
Parameters:
  workgroupName - The workgroup name associated with the cash drawer we wish to retrieve and open.
Parameters:
  documentId - The id of the reference document linked to the drawer.
public  CashDraweropenCashDrawer(CashDrawer drawer, String documentId)
     Sets the status of the cash drawer provided to open, persists this new state and returns the drawer.
Parameters:
  drawer - An instance of the drawer being opened.
Parameters:
  documentId - The id of the reference document linked to the drawer.
public  voidsetBusinessObjectService(BusinessObjectService businessObjectService)
     Sets the businessObjectService attribute value.
public  voidunlockCashDrawer(String workgroupName, String documentId)
     Retrieves a cash drawer using the workgroup name provided, updates the state to open, then persists this state change.
public  voidunlockCashDrawer(CashDrawer drawer, String documentId)
     Sets the state of the cash drawer provided to open and persists this new state.



Method Detail
closeCashDrawer
public void closeCashDrawer(String workgroupName)(Code)
Retrieves the CashDrawer associated with the workgroup provided and sets the state of the drawer to closed.
Parameters:
  workgroupName - The name of the workgroup associated with the cash drawer being retrieved.
See Also:   org.kuali.module.financial.service.CashDrawerService.closeCashDrawer(java.lang.String)



closeCashDrawer
public void closeCashDrawer(CashDrawer drawer)(Code)
Sets the status of the drawer provided to closed and saves the new state.
Parameters:
  drawer - The instance of the cash drawer to be closed.
See Also:   org.kuali.module.financial.service.CashDrawerService.closeCashDrawer(org.kuali.module.financial.bo.CashDrawer)



getBusinessObjectService
public BusinessObjectService getBusinessObjectService()(Code)
Gets the businessObjectService attribute value. The current value of businessObjectService.



getByWorkgroupName
public CashDrawer getByWorkgroupName(String workgroupName, boolean autocreate)(Code)
This method retrieves a cash drawer instance using the workgroup name provided as a search parameter. If no drawer can be found for the workgroup name provided and the autocreate flag is set to true, then a new instance of a cash drawer will be generated and returned. If the autocreate flag is false, then a null value will be returned. NOTE: The new instance created if autocreate is set to true is an unpersisted instance.
Parameters:
  workgroupName - The workgroup name used to retrieve the cash drawer.
Parameters:
  autocreate - Flag used to identify if a new cash drawer should be created if one cannot be found for the value provided. An instance of a cash drawer matching the value provided.
See Also:   org.kuali.module.financial.service.CashDrawerService.findByWorkgroupName(java.lang.String)



getCoinTotal
public KualiDecimal getCoinTotal(CashDrawer drawer)(Code)
This method calculates the total of all the coins in the cash drawer. This is accomplished by totaling the values from each of the *CentAmount() methods (ie. getFinancialDocumentHundredCentAmount()) from the drawer and returning the resulting value.
Parameters:
  drawer - The drawer being totaled. The sum of all the coin amounts in the drawer.
See Also:   org.kuali.module.financial.service.CashDrawerService.getCoinTotal(org.kuali.module.financial.bo.CashDrawer)



getCurrencyTotal
public KualiDecimal getCurrencyTotal(CashDrawer drawer)(Code)
This method calculates the total of all the currency in the cash drawer. This is accomplished by totaling the values from each of the *DollarAmount() methods (ie. getFinancialDocumentHundredDollarAmount()) from the drawer and returning the resulting value.
Parameters:
  drawer - The drawer being totaled. The sum of all the currency amounts in the drawer.
See Also:   org.kuali.module.financial.service.CashDrawerService.getCurrencyTotal(org.kuali.module.financial.bo.CashDrawer)



lockCashDrawer
public void lockCashDrawer(String workgroupName, String documentId)(Code)
Retrieves a cash drawer using the workgroup name provided, updates the state to locked, then persists this state change.
Parameters:
  workgroupName - The workgroup name associated with the cash drawer.
Parameters:
  documentId - The reference document id to be set to the cash drawer.
See Also:   org.kuali.module.financial.service.CashDrawerService.lockCashDrawer(java.lang.Stringjava.lang.String)



lockCashDrawer
public void lockCashDrawer(CashDrawer drawer, String documentId)(Code)
Sets the state of the cash drawer provided to locked and persists this new state.
Parameters:
  drawer - The cash drawer to be locked.
Parameters:
  documentId - The reference document id to be set to the cash drawer.
See Also:   org.kuali.module.financial.service.CashDrawerService.lockCashDrawer(org.kuali.module.financial.bo.CashDrawerjava.lang.String)



openCashDrawer
public CashDrawer openCashDrawer(String workgroupName, String documentId)(Code)
Retrieves an instance of a cash drawer based on the parameters provided and sets the status of the drawer to open, persists the state change and then returns an instance of the drawer in it's new state.
Parameters:
  workgroupName - The workgroup name associated with the cash drawer we wish to retrieve and open.
Parameters:
  documentId - The id of the reference document linked to the drawer. A new instance of the cash drawer in open status.
See Also:   org.kuali.module.financial.service.CashDrawerService.openCashDrawer(java.lang.Stringjava.lang.String)



openCashDrawer
public CashDrawer openCashDrawer(CashDrawer drawer, String documentId)(Code)
Sets the status of the cash drawer provided to open, persists this new state and returns the drawer.
Parameters:
  drawer - An instance of the drawer being opened.
Parameters:
  documentId - The id of the reference document linked to the drawer. An instance of the cash drawer with a status of open.
See Also:   org.kuali.module.financial.service.CashDrawerService.openCashDrawer(org.kuali.module.financial.bo.CashDrawerjava.lang.String)



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



unlockCashDrawer
public void unlockCashDrawer(String workgroupName, String documentId)(Code)
Retrieves a cash drawer using the workgroup name provided, updates the state to open, then persists this state change.
Parameters:
  workgroupName - The workgroup name associated with the cash drawer.
Parameters:
  documentId - The reference document id to be set to the cash drawer.
See Also:   org.kuali.module.financial.service.CashDrawerService.unlockCashDrawer(java.lang.Stringjava.lang.String)



unlockCashDrawer
public void unlockCashDrawer(CashDrawer drawer, String documentId)(Code)
Sets the state of the cash drawer provided to open and persists this new state.
Parameters:
  drawer - The cash drawer to be unlocked.
Parameters:
  documentId - The reference document id to be set to the cash drawer.
See Also:   org.kuali.module.financial.service.CashDrawerService.unlockCashDrawer(org.kuali.module.financial.bo.CashDrawerjava.lang.String)



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.