|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.bc.cm.CashDrawerManagerImpl
public class CashDrawerManagerImpl
Constructor Summary | |
---|---|
CashDrawerManagerImpl()
|
Method Summary | |
---|---|
void |
addBranchManager(BranchCashDrawerManager branchManager)
|
void |
assignCashDrawer(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String userId)
Assigns the specified cash drawer to the user with the specified userId. |
void |
closeBatch(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String binType)
Closes the last open batch in the bin batch and creates the next one for this bin. |
void |
createCashDrawer(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String location,
java.lang.String type,
java.lang.String currencyCode,
int reserves)
Creates a new cash drawer with the specified characteristics. |
void |
deleteCashDrawer(java.lang.String branchId,
java.lang.String drawerId)
Deletes the specified cash drawer and all its trays, and totals. |
void |
endOfDayCashDrawer(java.lang.String branchId,
java.lang.String drawerId,
java.util.Calendar eodDate)
|
java.util.List<CashDrawer> |
getAllCashDrawers(java.lang.String branchId)
Return all cash drawers from specified branch. |
java.util.List<CashDrawer> |
getAssignedCashDrawers(java.lang.String branchId,
java.lang.String userId)
Returns all cash drawers assigned to the specified user ID for the specified branch ID. |
DenoAmounts |
getAvailableAmount(java.lang.String branchId,
java.lang.String drawerId)
Returns the amount with denominational detail that is available in the working cash tray. |
DenoAmounts |
getBaitBills(java.lang.String branchId,
java.lang.String drawerId)
Returns bait bill amount in specified drawer. |
java.util.List<Batch> |
getBatches(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String binType)
Returns a list of batches for specified bin for specified drawer. |
java.util.List<Bin> |
getBins(java.lang.String branchId,
java.lang.String drawerId)
Returns a list of bins. |
BranchCashDrawerManager |
getBranchCashDrawerManager(java.lang.String branchId)
|
CashDrawer |
getCashDrawer(java.lang.String branchId,
java.lang.String drawerId)
Returns Cash Drawer object. |
DenoAmounts |
getCashDrawerCurrentPosition(java.lang.String branchId,
java.lang.String drawerId)
Returns the cash drawer total amount of money with denominational detail based on the sum of the current position fields from all its cash trays. |
DenoAmounts |
getCashDrawerStartingPosition(java.lang.String branchId,
java.lang.String drawerId)
Returns the cash drawer total amount of money with denominational detail based on the sum of the starting position fields from all its cash trays. |
java.util.Map<java.lang.String,CDTotal> |
getCashDrawerTotals(java.lang.String branchId,
java.lang.String drawerId)
Returns a hash map of cash drawer total objects : {totalsType, total} as {String, CDTotal}. |
DenoAmounts |
getTrapAmount(java.lang.String branchId,
java.lang.String drawerId)
Returns trap amounts' detail for trays belonging to this drawer. |
java.util.List<CashTray> |
getTrays(java.lang.String branchId,
java.lang.String drawerId)
Returns a list of cash trays in the specified drawer. |
void |
initializeCashDrawer(java.lang.String branchId,
java.lang.String userId,
java.util.Calendar date)
|
void |
modifyBaitBills(java.lang.String branchId,
java.lang.String drawerId,
DenoAmounts trayBaitBill)
Modifies the bait bill records according to the values contained in the parameter. |
void |
modifyCashDrawerLocation(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String newLocation)
Modifies the string representing the location of the specified cash drawer. |
void |
modifyTrapAmounts(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String trayType,
DenoAmounts trapAmount)
Modifies the tray's trap amounts according to the new amount. |
java.util.List<CashTray> |
queryUnsettledTrays(java.lang.String branchId,
java.lang.String drawerId)
Returns a list of cash trays whose state is UNSETTLE. |
void |
settleCashDrawer(java.lang.String branchId,
java.lang.String drawerId)
Set the specified drawer's state to 'SETTLED'. |
void |
settleCashTray(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String trayType)
Set the specified tray's state to 'SETTLED'. |
void |
trayExchange(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String fromTrayType,
java.lang.String toTrayType,
DenoAmounts amount)
Transfers an amount from one tray to another tray of the specified drawer. |
void |
unAssignCashDrawer(java.lang.String branchId,
java.lang.String drawerId)
Unassigns the specified cash drawer. |
void |
updateCashDrawer(java.lang.String branchId,
java.lang.String drawerId,
java.lang.String txnCode,
DenoAmounts amount)
Updates the cash drawer totals, and trays. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CashDrawerManagerImpl()
Method Detail |
---|
public void addBranchManager(BranchCashDrawerManager branchManager)
public BranchCashDrawerManager getBranchCashDrawerManager(java.lang.String branchId) throws CashDrawerManagementException
CashDrawerManagementException
public void assignCashDrawer(java.lang.String branchId, java.lang.String drawerId, java.lang.String userId) throws CashDrawerManagementException
CashDrawerManager
assignCashDrawer
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the cash drawer
is locateddrawerId
- java.lang.String - the ID of the cash drawer that is assigneduserId
- java.lang.String - the ID of the user
CashDrawerManagementException
public void endOfDayCashDrawer(java.lang.String branchId, java.lang.String drawerId, java.util.Calendar eodDate) throws CashDrawerManagementException
endOfDayCashDrawer
in interface CashDrawerManagerInterface
CashDrawerManagementException
public void initializeCashDrawer(java.lang.String branchId, java.lang.String userId, java.util.Calendar date) throws CashDrawerManagementException
initializeCashDrawer
in interface CashDrawerManagerInterface
CashDrawerManagementException
public void settleCashDrawer(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
settleCashDrawer
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the cash drawer
is locateddrawerId
- java.lang.String - the ID of the drawer who will be settled
CashDrawerManagementException
public void unAssignCashDrawer(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
unAssignCashDrawer
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the cash drawer
is locateddrawerId
- java.lang.String - the ID of the drawer being unassigned
CashDrawerManagementException
public void updateCashDrawer(java.lang.String branchId, java.lang.String drawerId, java.lang.String txnCode, DenoAmounts amount) throws CashDrawerManagementException
CashDrawerManager
updateCashDrawer
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer being updatedtxnCode
- java.lang.String - the code of the transaction being executedamount
- com.ibm.btt.bc.cm.DenoAmounts - the amount with denominational
details
CashDrawerManagementException
public void createCashDrawer(java.lang.String branchId, java.lang.String drawerId, java.lang.String location, java.lang.String type, java.lang.String currencyCode, int reserves) throws CashDrawerManagementException
CashDrawerManager
createCashDrawer
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
createddrawerId
- java.lang.String - the ID of the drawer being createdlocation
- java.lang.String - the location of the cash drawertype
- java.lang.String - the type of drawer being createdcurrencyCode
- java.lang.String - the code of the currency that this cash
drawer will handlereserves
- int - the number of reserve trays required for this drawer (0,
1, 2, etc.), and its value should bigger than 0.
CashDrawerManagementException
public void deleteCashDrawer(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
deleteCashDrawer
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer being deleted
CashDrawerManagementException
public java.util.List<CashDrawer> getAllCashDrawers(java.lang.String branchId) throws CashDrawerManagementException
CashDrawerManager
getAllCashDrawers
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch whose cash drawers are
being queried
CashDrawerManagementException
public java.util.List<CashDrawer> getAssignedCashDrawers(java.lang.String branchId, java.lang.String userId) throws CashDrawerManagementException
CashDrawerManager
getAssignedCashDrawers
in interface CashDrawerManager
branchId
- java.lang.String - the current branch ID for the useruserId
- java.lang.String - the ID of the user whose assigned cash
drawers are being retrieved
CashDrawerManagementException
public DenoAmounts getAvailableAmount(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getAvailableAmount
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the specified
drawer is locateddrawerId
- java.lang.String - the ID of the drawer whose available amount
is being queried
CashDrawerManagementException
public CashDrawer getCashDrawer(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getCashDrawer
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the specified
drawer is locateddrawerId
- java.lang.String - the ID of the drawer are being queried.
CashDrawerManagementException
public DenoAmounts getCashDrawerCurrentPosition(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getCashDrawerCurrentPosition
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the specified
drawer is locateddrawerId
- java.lang.String - the ID of the drawer which is being
queried.
CashDrawerManagementException
public DenoAmounts getCashDrawerStartingPosition(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getCashDrawerStartingPosition
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer whose starting
position is being queried
CashDrawerManagementException
public java.util.Map<java.lang.String,CDTotal> getCashDrawerTotals(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getCashDrawerTotals
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer whose totals are being
queried
CashDrawerManagementException
public void modifyCashDrawerLocation(java.lang.String branchId, java.lang.String drawerId, java.lang.String newLocation) throws CashDrawerManagementException
CashDrawerManager
modifyCashDrawerLocation
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of a drawer whose location is being
modifiednewLocation
- java.lang.String - the new location for the drawer
CashDrawerManagementException
public void closeBatch(java.lang.String branchId, java.lang.String drawerId, java.lang.String binType) throws CashDrawerManagementException
CashDrawerManager
closeBatch
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the cash drawer
is locateddrawerId
- java.lang.String - the ID of the drawer where the bin is
locatedbinType
- java.lang.String - the bin type of the batch to be closed
CashDrawerManagementException
public void trayExchange(java.lang.String branchId, java.lang.String drawerId, java.lang.String fromTrayType, java.lang.String toTrayType, DenoAmounts amount) throws CashDrawerManagementException
CashDrawerManager
trayExchange
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer containing the trays
involved in this exchangefromTrayType
- java.lang.String - the type of tray from which money is being
transferredtoTrayType
- java.lang.String - the type of tray into which money is being
transferredamount
- com.ibm.btt.bc.cm.DenoAmounts - the amount being transferred
CashDrawerManagementException
public java.util.List<CashTray> queryUnsettledTrays(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
queryUnsettledTrays
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer which is being queried
CashDrawerManagementException
public void modifyTrapAmounts(java.lang.String branchId, java.lang.String drawerId, java.lang.String trayType, DenoAmounts trapAmount) throws CashDrawerManagementException
CashDrawerManager
modifyTrapAmounts
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of a drawer where the tray is
located.trayType
- java.lang.String - the type of Tray whose trap amount is being
modifiedtrapAmount
- com.ibm.btt.bc.cm.DenoAmounts - the new trap amount for the
tray.
CashDrawerManagementException
public DenoAmounts getBaitBills(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getBaitBills
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer whose bait bills are
being queried
CashDrawerManagementException
public DenoAmounts getTrapAmount(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getTrapAmount
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer being queried
CashDrawerManagementException
public void settleCashTray(java.lang.String branchId, java.lang.String drawerId, java.lang.String trayType) throws CashDrawerManagementException
CashDrawerManager
settleCashTray
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the cash drawer
is locateddrawerId
- java.lang.String - the ID of the drawer where the cash tray is
locatedtrayType
- java.lang.String - the type of the tray who will be settled
CashDrawerManagementException
public void modifyBaitBills(java.lang.String branchId, java.lang.String drawerId, DenoAmounts trayBaitBill) throws CashDrawerManagementException
CashDrawerManager
modifyBaitBills
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer being queriedtrayBaitBill
- com.ibm.btt.bc.cm.DenoAmounts - the new bait bill amount
detail.
CashDrawerManagementException
public java.util.List<Bin> getBins(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getBins
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer whose bins are being
queried
CashDrawerManagementException
public java.util.List<CashTray> getTrays(java.lang.String branchId, java.lang.String drawerId) throws CashDrawerManagementException
CashDrawerManager
getTrays
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer being queried
CashDrawerManagementException
public java.util.List<Batch> getBatches(java.lang.String branchId, java.lang.String drawerId, java.lang.String binType) throws CashDrawerManagementException
CashDrawerManager
getBatches
in interface CashDrawerManager
branchId
- java.lang.String - the ID of the branch where the drawer is
locateddrawerId
- java.lang.String - the ID of the drawer containing the queried
binbinType
- java.lang.String - the type of bin being queried
CashDrawerManagementException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |