Class OnlinePaymentList
java.lang.Object
com.infinitekind.moneydance.model.MoneydanceSyncableItem
com.infinitekind.moneydance.model.OnlinePaymentList
- All Implemented Interfaces:
com.infinitekind.tiksync.SyncableItem
public class OnlinePaymentList extends MoneydanceSyncableItem
This class contains a set of payments that are used for
online bill-payment.
This information is very fluid and the structure will probably
change, so all of the information is represented a StreamTable/Vector
structure that can easily be serialized and deserialized from the
data file.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSYNCABLE_TYPE_VALUEFields inherited from class com.infinitekind.moneydance.model.MoneydanceSyncableItem
book, info, SECURITY_SUBTYPES_ITEM_TYPE -
Constructor Summary
Constructors Constructor Description OnlinePaymentList(AccountBook book)OnlinePaymentList(AccountBook book, StreamTable infoTable) -
Method Summary
Modifier and Type Method Description voidaddListener(OnlinePaymentListener listener)voidaddNewPayment(OnlinePayment payment)Adds the specified payment to the payment list.voidclearAllPayments()Remove all payments from the list (so that they can be resynchronized from the server.voidclearOldPayments()Removes all payments that have been processed over 30 days ago.OnlinePaymentgetPayment(int i)Get a service object for the service at the specified index.OnlinePaymentgetPaymentByID(java.lang.String id)intgetPaymentCount()Get the number of online services that the user has access to.java.lang.StringgetPaymentListSyncToken()java.lang.StringgetSyncItemType()Subclasses should override this to return a static string identifying their type of objectintindexOf(OnlinePayment payment)returns the index of the given payment in the list of payments, or -1 if the payment is not in the list.voiditemWasUpdated()This is called after an item is updated by calling itemWasUpdated(SyncRecord).voiditemWillSync()This is called just before an item will be stored and/or synced when itemWillSync(SyncRecord) is called.OnlinePaymentnewPayment(OnlinePayee payee)This creates a new payment that is associated with this list and the specified payee.voidremoveListener(OnlinePaymentListener listener)voidremovePayment(int i)Remove the payment object at the specified index.booleanremovePayment(OnlinePayment payment)Remove the given payment object from the list.voidsetPaymentListSyncToken(java.lang.String syncToken)java.lang.StringtoString()Methods inherited from class com.infinitekind.moneydance.model.MoneydanceSyncableItem
addParameters, addTags, autoSyncsChanges, decodeKeywordList, deleteItem, doesParameterExist, duplicate, encodeKeywordList, equals, getAccountParameter, getAddress, getAddressParameter, getBook, getBooleanParameter, getCurrencyParameter, getCurrencyParameter, getCurrencyParameter, getDoubleParameter, getIntParameter, getKeywords, getLongParameter, getOriginalItem, getParameter, getParameter, getParameterCount, getParameterKeys, getPreference, getPreferenceBoolean, getPreferenceDouble, getPreferenceInt, getPreferenceIntArray, getPreferenceLong, getPreferenceStringList, getPreferenceSublist, getPreferenceSubset, getStringListParameter, getSyncInfo, getSyncTimestamp, getUUID, hasBeenSynced, hashCode, hasKeywordSubstring, initialize, isInEditingMode, isSyncable, itemWasUpdated, itemWillSync, makeSyncableItem, removeParameter, setAccountParameter, setAddress, setAddressParameter, setCurrencyParameter, setCurrencyParameter, setCurrencyParameter, setDirty, setEditingMode, setKeywords, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterNoNotify, setPreference, setPreference, setPreference, syncItem
-
Field Details
-
SYNCABLE_TYPE_VALUE
public static final java.lang.String SYNCABLE_TYPE_VALUE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getSyncItemType
public final java.lang.String getSyncItemType()Description copied from class:MoneydanceSyncableItemSubclasses should override this to return a static string identifying their type of object- Specified by:
getSyncItemTypein interfacecom.infinitekind.tiksync.SyncableItem- Overrides:
getSyncItemTypein classMoneydanceSyncableItem
-
itemWasUpdated
public void itemWasUpdated()Description copied from class:MoneydanceSyncableItemThis is called after an item is updated by calling itemWasUpdated(SyncRecord). This can occur from the syncing process or from being loaded locally. Override this method to be notified.- Overrides:
itemWasUpdatedin classMoneydanceSyncableItem
-
itemWillSync
public void itemWillSync()Description copied from class:MoneydanceSyncableItemThis is called just before an item will be stored and/or synced when itemWillSync(SyncRecord) is called. Override this method to be notified or if you'd like to store anything into the info record to be synced.- Overrides:
itemWillSyncin classMoneydanceSyncableItem
-
clearAllPayments
public void clearAllPayments()Remove all payments from the list (so that they can be resynchronized from the server. -
getPaymentListSyncToken
public java.lang.String getPaymentListSyncToken() -
setPaymentListSyncToken
public void setPaymentListSyncToken(java.lang.String syncToken) -
getPaymentCount
public int getPaymentCount()Get the number of online services that the user has access to. -
getPaymentByID
-
getPayment
Get a service object for the service at the specified index. Returns null if the index is out of bounds. -
indexOf
returns the index of the given payment in the list of payments, or -1 if the payment is not in the list. -
removePayment
public void removePayment(int i)Remove the payment object at the specified index. -
removePayment
Remove the given payment object from the list. Returns true if the value was found in the list. -
newPayment
This creates a new payment that is associated with this list and the specified payee. Note: The payment is not added to the list. That should be done only once the payment is processed online. -
addNewPayment
Adds the specified payment to the payment list. This should only be called from the online processor. -
clearOldPayments
public void clearOldPayments()Removes all payments that have been processed over 30 days ago. -
addListener
-
removeListener
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-