|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.mail.Folder
com.funambol.mail.AccountFolder
public class AccountFolder
AccountFolder represents a particular Folder
with additional
attributes: displayName
and emailAddress
.
It has the role attribute fixed to "account".
Field Summary | |
---|---|
static char |
ACCOUNT_ITEM_PREFIX
|
static java.lang.String |
ACCOUNT_ROLE
|
static java.lang.String |
EMAIL_ADDRESS
|
static java.lang.String |
VISIBLE_NAME
|
Fields inherited from class com.funambol.mail.Folder |
---|
created, FOLDER_ITEM_PREFIX, FOLDER_SEPARATOR, fullname, recordId, role, ROOT_FOLDER_PATH, store |
Constructor Summary | |
---|---|
AccountFolder(Store store)
Constructs a new AccountFolder providing a reference to the
Store in which it has to be created. |
|
AccountFolder(java.lang.String fullname,
java.util.Date created,
Store store,
java.lang.String visibleName,
java.lang.String emailAddress)
Constructs a new AccountFolder providing a name for it,
the creation date and a reference to the Store in which it
has to be created. |
Method Summary | |
---|---|
void |
deserialize(java.io.DataInputStream din)
|
boolean |
equals(AccountFolder account)
|
java.lang.String |
getEmailAddress()
Return the EmailAddress attribute |
java.lang.String |
getRole()
The the Account role |
java.lang.String |
getVisibleName()
Return the VisibleName attribute |
static boolean |
isSupportedStream(char prefix)
Check whether the provided prefix char represents a AccountFolder DataInputStream |
void |
serialize(java.io.DataOutputStream dout)
|
void |
setEmailAddress(java.lang.String address)
Set the EmailAddress attribute |
void |
setVisibleName(java.lang.String name)
Set the VisibleName attribute |
protected void |
writeRecordPrefix(java.io.DataOutputStream dout)
|
Methods inherited from class com.funambol.mail.Folder |
---|
appendMessage, deleteMessage, deleteMessage, getChildren, getCreated, getFullName, getMessage, getMessageCount, getName, getParent, getRecordId, getSeparator, list, setRecordId, setRole, setStore, updateMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char ACCOUNT_ITEM_PREFIX
public static final java.lang.String ACCOUNT_ROLE
public static final java.lang.String VISIBLE_NAME
public static final java.lang.String EMAIL_ADDRESS
Constructor Detail |
---|
public AccountFolder(Store store)
AccountFolder
providing a reference to the
Store
in which it has to be created. It is used when
creating a AccountFolder from a DataInputStream.
store
- The Store
in which the folder has to be createdpublic AccountFolder(java.lang.String fullname, java.util.Date created, Store store, java.lang.String visibleName, java.lang.String emailAddress)
AccountFolder
providing a name for it,
the creation date and a reference to the Store
in which it
has to be created.
fullname
- The fullname for this AccountFolder
created
- The creation date for this AccountFolder
store
- The Store
in which the folder has to be createdvisibleName
- The VisibleName of the AccountFolder
emailAddress
- The EmailAddress of the AccountFolder
Method Detail |
---|
public java.lang.String getVisibleName()
VisibleName
attribute
VisibleName
public java.lang.String getEmailAddress()
EmailAddress
attribute
EmailAddress
public void setVisibleName(java.lang.String name)
VisibleName
attribute
name
- The new visible namepublic void setEmailAddress(java.lang.String address)
EmailAddress
attribute
address
- The new email addresspublic java.lang.String getRole()
getRole
in class Folder
public static boolean isSupportedStream(char prefix)
AccountFolder
DataInputStream
prefix
- The item prefix.
protected void writeRecordPrefix(java.io.DataOutputStream dout) throws java.io.IOException
writeRecordPrefix
in class Folder
java.io.IOException
public void serialize(java.io.DataOutputStream dout) throws java.io.IOException
serialize
in class Folder
java.io.IOException
com.funambol.storage.Serializable#serialize(java.io.DataOutputStream)
public void deserialize(java.io.DataInputStream din) throws java.io.IOException
deserialize
in class Folder
java.io.IOException
com.funambol.storage.Serializable#deserialize(java.io.DataInputStream)
public boolean equals(AccountFolder account)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |