| 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 void | closeCashDrawer(String workgroupName) Retrieves the CashDrawer associated with the workgroup provided and sets the state of the drawer to closed. | public void | closeCashDrawer(CashDrawer drawer) Sets the status of the drawer provided to closed and saves the new state. | public BusinessObjectService | getBusinessObjectService() Gets the businessObjectService attribute value. | public CashDrawer | getByWorkgroupName(String workgroupName, boolean autocreate) This method retrieves a cash drawer instance using the workgroup name provided as a search parameter. | public KualiDecimal | getCoinTotal(CashDrawer drawer) This method calculates the total of all the coins in the cash drawer. | public KualiDecimal | getCurrencyTotal(CashDrawer drawer) This method calculates the total of all the currency in the cash drawer. | public void | lockCashDrawer(String workgroupName, String documentId) Retrieves a cash drawer using the workgroup name provided, updates the state to locked, then persists this state change. | public void | lockCashDrawer(CashDrawer drawer, String documentId) Sets the state of the cash drawer provided to locked and persists this new state. | public CashDrawer | openCashDrawer(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 CashDrawer | openCashDrawer(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 void | setBusinessObjectService(BusinessObjectService businessObjectService) Sets the businessObjectService attribute value. | public void | unlockCashDrawer(String workgroupName, String documentId) Retrieves a cash drawer using the workgroup name provided, updates the state to open, then persists this state change. | public void | unlockCashDrawer(CashDrawer drawer, String documentId) Sets the state of the cash drawer provided to open and persists this new state. |
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) |
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) |
setBusinessObjectService | public void setBusinessObjectService(BusinessObjectService businessObjectService)(Code) | | Sets the businessObjectService attribute value.
Parameters: businessObjectService - The businessObjectService to set. |
|
|