Class OnlinePayeeList
java.lang.Object
com.infinitekind.moneydance.model.MoneydanceSyncableItem
com.infinitekind.moneydance.model.OnlinePayeeList
- All Implemented Interfaces:
com.infinitekind.tiksync.SyncableItem
public class OnlinePayeeList extends MoneydanceSyncableItem
This class contains a set of payees 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.String
SYNCABLE_TYPE_VALUE
Fields inherited from class com.infinitekind.moneydance.model.MoneydanceSyncableItem
book, info, SECURITY_SUBTYPES_ITEM_TYPE
-
Constructor Summary
Constructors Constructor Description OnlinePayeeList(AccountBook book)
OnlinePayeeList(AccountBook book, StreamTable infoTable)
create a payee list and populate it with the pre-Moneydance2015 format streamtable data. -
Method Summary
Modifier and Type Method Description void
addListener(OnlinePayeeListener listener)
void
addNewPayee(OnlinePayee payee)
Adds the specified payee to the payee list.void
clearAllPayees()
Remove all payees from the list (so that they can be resynchronized from the server.OnlinePayee
getPayee(int i)
Get the payee object at the specified index.OnlinePayee
getPayeeByListID(java.lang.String listID)
int
getPayeeCount()
java.lang.String
getPayeeListSyncToken()
java.util.ArrayList<OnlinePayee>
getPayeesByName(java.lang.String name)
java.lang.String
getSyncItemType()
Subclasses should override this to return a static string identifying their type of objectint
indexOf(OnlinePayee payee)
returns true if the service information for this service is already in the service list.void
itemWasUpdated()
This is called after an item is updated by calling itemWasUpdated(SyncRecord).void
itemWillSync()
This is called just before an item will be stored and/or synced when itemWillSync(SyncRecord) is called.OnlinePayee
newPayee()
This creates a new payee that is associated with this list.void
removeListener(OnlinePayeeListener listener)
void
removePayee(int i)
Remove the payee object at the specified index.boolean
removePayee(OnlinePayee payee)
Remove the given payee object from the list.void
setPayeeListSyncToken(java.lang.String syncToken)
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
-
OnlinePayeeList
create a payee list and populate it with the pre-Moneydance2015 format streamtable data. -
OnlinePayeeList
-
-
Method Details
-
getSyncItemType
public final java.lang.String getSyncItemType()Description copied from class:MoneydanceSyncableItem
Subclasses should override this to return a static string identifying their type of object- Specified by:
getSyncItemType
in interfacecom.infinitekind.tiksync.SyncableItem
- Overrides:
getSyncItemType
in classMoneydanceSyncableItem
-
itemWasUpdated
public void itemWasUpdated()Description copied from class:MoneydanceSyncableItem
This 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:
itemWasUpdated
in classMoneydanceSyncableItem
-
itemWillSync
public void itemWillSync()Description copied from class:MoneydanceSyncableItem
This 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:
itemWillSync
in classMoneydanceSyncableItem
-
getPayeeListSyncToken
public java.lang.String getPayeeListSyncToken() -
setPayeeListSyncToken
public void setPayeeListSyncToken(java.lang.String syncToken) -
getPayeeCount
public int getPayeeCount() -
getPayeeByListID
-
getPayeesByName
-
getPayee
Get the payee object at the specified index. Returns null if the index is out of bounds. -
indexOf
returns true if the service information for this service is already in the service list. -
removePayee
public void removePayee(int i)Remove the payee object at the specified index. -
removePayee
Remove the given payee object from the list. Returns true if the value was found in the list. -
clearAllPayees
public void clearAllPayees()Remove all payees from the list (so that they can be resynchronized from the server. -
newPayee
This creates a new payee that is associated with this list. Note: This payee is NOT added to the list. That should only be done by the online connection. -
addNewPayee
Adds the specified payee to the payee list. This should only be called from the OFXConnection during payee list synchronization. -
addListener
-
removeListener
-