|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--webfunds.utils.Debug
|
+--webfunds.client.sox.StoreReceiptStore
A place to persistantly store SOX receipts. It has persistant stores, one each for pending and confirmed receipts. It should store each (pending)receipts as a StateReceipt or the like. This should be dependant on Store and SOX only. (Used to be dependant on client.)
| Fields inherited from class webfunds.utils.Debug |
bug,
debugAll,
logfix |
| Constructor Summary | |
StoreReceiptStore(Store store)
|
|
StoreReceiptStore(Store store,
java.io.PrintWriter bug)
|
|
| Method Summary | |
void |
addPendingReceipt(PendingReceipt pending,
AccountId acct)
A payment has been made/signed, indicating a receipt will come at some stage. |
void |
addReceipt(Receipt receipt)
A signed receipt has arrived. |
void |
addReceipt(Receipt receipt,
AccountId acct)
A signed receipt has arrived. |
protected void |
addReceipt(Store sub,
Receipt receipt)
Add this signed receipt into the store. |
long |
confirmedValue(AccountId acct,
ItemId item)
|
static void |
convert(Store store,
java.io.PrintWriter bug)
|
protected Store |
getPen(AccountId acct,
ItemId item)
Get the Pending store from the account details. |
protected Store |
getPen(Store sub)
Get the Pending store from the sub account store. |
PendingReceipt[] |
getPendingReceipts(AccountId acct,
ItemId item)
Return a list of pending receipts for a subaccount. |
StateReceipt |
getReceipt(AccountId acct,
ItemId item,
java.lang.String id)
Get the current state machine for a transaction. |
Receipt[] |
getReceipts(AccountId acct,
ItemId item)
Get a list of receipts for a subaccount (acct / item). |
protected Store |
getSub(AccountId acct,
ItemId item)
Get the sub account store. |
protected void |
init(Store store)
|
boolean |
isChanged(AccountId acct)
Does not check the subaccounts? Not Needed? |
boolean |
isChanged(AccountId acct,
ItemId item)
Used to see if a re-count of value is needed. |
long |
pendingValue(AccountId acct,
ItemId item)
What this returns is peculiar. |
protected void |
removePending(java.lang.String id,
AccountId acct,
ItemId item)
Remove a pending receipt, presumably because it failed or or it has moved to the normal store. |
| Methods inherited from class webfunds.utils.Debug |
debug,
debug,
debug,
debug,
err,
getDebug,
logend,
logmsg,
logstart,
logword |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public StoreReceiptStore(Store store,
java.io.PrintWriter bug)
public StoreReceiptStore(Store store)
| Method Detail |
protected void init(Store store)
protected Store getSub(AccountId acct,
ItemId item)
throws StoreException
protected Store getPen(Store sub)
throws StoreException
protected Store getPen(AccountId acct,
ItemId item)
throws StoreException
public void addReceipt(Receipt receipt)
throws StoreException
protected void addReceipt(Store sub,
Receipt receipt)
throws StoreException
public void addReceipt(Receipt receipt,
AccountId acct)
throws StoreException
public Receipt[] getReceipts(AccountId acct,
ItemId item)
throws StoreException
public StateReceipt getReceipt(AccountId acct,
ItemId item,
java.lang.String id)
throws StoreException
id - is either pid or (completed) did - overloaded
public void addPendingReceipt(PendingReceipt pending,
AccountId acct)
throws StoreException
protected void removePending(java.lang.String id,
AccountId acct,
ItemId item)
throws StoreException
public PendingReceipt[] getPendingReceipts(AccountId acct,
ItemId item)
throws StoreException
public boolean isChanged(AccountId acct)
public boolean isChanged(AccountId acct,
ItemId item)
public long pendingValue(AccountId acct,
ItemId item)
throws StoreException
public long confirmedValue(AccountId acct,
ItemId item)
throws StoreException
public static void convert(Store store,
java.io.PrintWriter bug)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||