@Transactional public class CashDrawerServiceImpl extends Object implements CashDrawerService
Constructor and Description |
---|
CashDrawerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected Map |
buildPrimaryKeyMap(String campusCode)
This method creates a primary key map by adding the associated campus code to a new map instance and returning
this map new instance.
|
void |
closeCashDrawer(CashDrawer drawer)
Sets the status of the drawer provided to closed and saves the new state.
|
void |
closeCashDrawer(String campusCode)
Retrieves the CashDrawer associated with the campus code provided and sets the state of the drawer to closed.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute value.
|
CashDrawer |
getByCampusCode(String campusCode)
This method retrieves a cash drawer instance using the campus code provided as a search parameter.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getCoinTotal(CashDrawer drawer)
This method calculates the total of all the coins in the cash drawer.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getCurrencyTotal(CashDrawer drawer)
This method calculates the total of all the currency in the cash drawer.
|
void |
lockCashDrawer(CashDrawer drawer,
String documentId)
Sets the state of the cash drawer provided to locked and persists this new state.
|
void |
lockCashDrawer(String campusCode,
String documentId)
Retrieves a cash drawer using the campus code provided, updates the state to locked, then persists this state change.
|
CashDrawer |
openCashDrawer(CashDrawer drawer,
String documentId)
Sets the status of the cash drawer provided to open, persists this new state and returns the drawer.
|
CashDrawer |
openCashDrawer(String campusCode,
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.
|
protected void |
save(CashDrawer cashDrawer)
Persists the given CashDrawer instance.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
unlockCashDrawer(CashDrawer drawer,
String documentId)
Sets the state of the cash drawer provided to open and persists this new state.
|
void |
unlockCashDrawer(String campusCode,
String documentId)
Retrieves a cash drawer using the campus code provided, updates the state to open, then persists this state change.
|
public CashDrawerServiceImpl()
public void closeCashDrawer(String campusCode)
closeCashDrawer
in interface CashDrawerService
campusCode
- The code of the campus associated with the cash drawer being retrieved.CashDrawerService.closeCashDrawer(java.lang.String)
public void closeCashDrawer(CashDrawer drawer)
closeCashDrawer
in interface CashDrawerService
drawer
- The instance of the cash drawer to be closed.CashDrawerService.closeCashDrawer(org.kuali.ole.fp.businessobject.CashDrawer)
public CashDrawer openCashDrawer(String campusCode, String documentId)
openCashDrawer
in interface CashDrawerService
campusCode
- The campus code associated with the cash drawer we wish to retrieve and open.documentId
- The id of the reference document linked to the drawer.CashDrawerService.openCashDrawer(java.lang.String, java.lang.String)
public CashDrawer openCashDrawer(CashDrawer drawer, String documentId)
openCashDrawer
in interface CashDrawerService
drawer
- An instance of the drawer being opened.documentId
- The id of the reference document linked to the drawer.CashDrawerService.openCashDrawer(org.kuali.ole.fp.businessobject.CashDrawer, java.lang.String)
public void lockCashDrawer(String campusCode, String documentId)
lockCashDrawer
in interface CashDrawerService
campusCode
- The campus code associated with the cash drawer.documentId
- The reference document id to be set to the cash drawer.CashDrawerService.lockCashDrawer(java.lang.String,java.lang.String)
public void lockCashDrawer(CashDrawer drawer, String documentId)
lockCashDrawer
in interface CashDrawerService
drawer
- The cash drawer to be locked.documentId
- The reference document id to be set to the cash drawer.CashDrawerService.lockCashDrawer(org.kuali.ole.fp.businessobject.CashDrawer, java.lang.String)
public void unlockCashDrawer(String campusCode, String documentId)
unlockCashDrawer
in interface CashDrawerService
campusCode
- The campus code associated with the cash drawer.documentId
- The reference document id to be set to the cash drawer.CashDrawerService.unlockCashDrawer(java.lang.String,java.lang.String)
public void unlockCashDrawer(CashDrawer drawer, String documentId)
unlockCashDrawer
in interface CashDrawerService
drawer
- The cash drawer to be unlocked.documentId
- The reference document id to be set to the cash drawer.CashDrawerService.unlockCashDrawer(org.kuali.ole.fp.businessobject.CashDrawer, java.lang.String)
public CashDrawer getByCampusCode(String campusCode)
getByCampusCode
in interface CashDrawerService
campusCode
- The campus code used to retrieve the cash drawer.org.kuali.ole.fp.service.CashDrawerService#findByCampusCode(java.lang.String)
protected void save(CashDrawer cashDrawer)
cashDrawer
- The cash drawer to be persisted.protected Map buildPrimaryKeyMap(String campusCode)
campusCode
- The campus code to be added to the map.public org.kuali.rice.core.api.util.type.KualiDecimal getCoinTotal(CashDrawer drawer)
getCoinTotal
in interface CashDrawerService
drawer
- The drawer being totaled.CashDrawerService.getCoinTotal(org.kuali.ole.fp.businessobject.CashDrawer)
public org.kuali.rice.core.api.util.type.KualiDecimal getCurrencyTotal(CashDrawer drawer)
getCurrencyTotal
in interface CashDrawerService
drawer
- The drawer being totaled.CashDrawerService.getCurrencyTotal(org.kuali.ole.fp.businessobject.CashDrawer)
public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.