Class OnlineMailList
java.lang.Object
com.infinitekind.moneydance.model.MoneydanceSyncableItem
com.infinitekind.moneydance.model.OnlineMailList
- All Implemented Interfaces:
com.infinitekind.tiksync.SyncableItem
public class OnlineMailList extends MoneydanceSyncableItem
This class contains a set of mails that are used for
online bill-mail.
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 OnlineMailList(AccountBook book)
-
Method Summary
Modifier and Type Method Description void
addNewMail(OnlineMail mail)
Adds the specified mail to the mail list.void
clearAllMails()
Remove all mails from the list (so that they can be resynchronized from the server.java.util.List<OnlineMail>
getAllMessages()
Get a list of all OnlineMail message objects.OnlineMail
getMailByID(java.lang.String id)
int
getMailCount()
Get the number of online services that the user has access to.java.lang.String
getSyncItemType()
Subclasses should override this to return a static string identifying their type of objectprotected void
itemWasUpdated()
This is called after an item is updated by calling itemWasUpdated(SyncRecord).protected void
itemWillSync()
This is called just before an item will be stored and/or synced when itemWillSync(SyncRecord) is called.OnlineMail
newMail()
This creates a new mail that is associated with this list and the specified payee.boolean
removeMessage(OnlineMail message)
Remove the given mail object from the list.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: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
protected 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
protected 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
-
clearAllMails
public void clearAllMails()Remove all mails from the list (so that they can be resynchronized from the server. -
getMailCount
public int getMailCount()Get the number of online services that the user has access to. -
getMailByID
-
getAllMessages
Get a list of all OnlineMail message objects. -
removeMessage
Remove the given mail object from the list. Returns true if the value was found in the list. -
newMail
This creates a new mail that is associated with this list and the specified payee. Note: The mail is not added to the list. That should be done only by the OFXConnection. -
addNewMail
Adds the specified mail to the mail list. This should only be called from the OFXConnection during mail list synchronization.
-