|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--dtw.webmail.util.AbstractIdentifiable
|
+--dtw.webmail.plugin.std.CastorPreferences
Class implementing a specialized JwmaPreferencesImpl for being persisted with the Castor Plugins.
| Field Summary | |
int |
m_MessageSortCriteria
|
| Fields inherited from interface org.exolab.castor.jdo.TimeStampable |
NO_TIMESTAMP |
| Constructor Summary | |
CastorPreferences()
Constructs a JwmaPreferences instance. |
|
| Method Summary | |
void |
addMailIdentity(JwmaMailIdentity identity)
Adds the given JwmaMailIdentity to this JwmaPreferences. |
JwmaMailIdentityImpl |
createMailIdentity()
Factory method for an implementation specific JwmaMailIdentityImpl. |
boolean |
existsMailIdentity(java.lang.String uid)
Tests if a JwmaMailIdentity with the given index exists. |
JwmaPreferencesImpl |
getClone()
Returns a clone of this preferences. |
java.lang.String |
getContactDatabaseID()
Returns a String representing the user's contact database UID. |
java.text.DateFormat |
getDateFormat()
Returns a DateFormat representing the user's preferred date format. |
java.lang.String |
getDateFormatPattern()
|
java.lang.String |
getDefaultMailIdentity()
|
java.lang.String |
getDraftFolder()
Returns a String representing the full name of the draft folder. |
java.lang.String |
getFirstname()
Returns a String representing the firstname of the owner of this JwmaPreferences. |
java.lang.String |
getLanguage()
Returns a String representing the language. |
java.lang.String |
getLastLogin()
Returns a String representing the user's last login date and originating host. |
java.lang.String |
getLastname()
Returns a String representing the lastname of the owner of this JwmaPreferences. |
java.util.Locale |
getLocale()
Returns the Locale associated with this JwmaPreferences. |
java.util.List |
getMailIdentities()
|
JwmaMailIdentity |
getMailIdentity()
Returns the user's default JwmaMailIdentity. |
JwmaMailIdentity |
getMailIdentity(java.lang.String uid)
Returns the JwmaMailIdentity with the given unique identifier. |
java.util.Collection |
getMailIdentityCollection()
|
int |
getMailIdentityCount()
Returns the count of JwmaMailIdentity instances that are associated with this JwmaPreferences. |
net.wimpi.text.Processor |
getMessageProcessor()
Returns a Processor representing the users preferred message processor for processing text/plain messages. |
java.lang.String |
getMessageProcessorName()
Convenience method that returns a String representing the users preferred message processor name. |
int |
getMessageSortCriteria()
Returns the sort criteria preference for messages. |
java.lang.String |
getQuoteChar()
Returns a String representing the quote character. |
java.lang.String |
getReadMailArchive()
Returns a String representing the path of the read-mail-archive. |
java.util.List |
getRemovedAssociations()
Returns the associated instances. |
java.lang.String |
getRootFolder()
Returns a String representing the path of the mail root folder. |
java.lang.String |
getSentMailArchive()
Returns a String representing the path of the sent-mail-archive. |
java.lang.String |
getStyle()
Returns a String representing the users preferred style. |
java.lang.String |
getTrashFolder()
Returns a String representing the path of the read-mail-archive. |
java.lang.String |
getUserIdentity()
Returns a String representing identity of the owner of this JwmaPreferences. |
boolean |
isAutoArchiveSent()
Tests if messages should be automatically archived when sent. |
boolean |
isAutoEmpty()
Tests if the trash should be emptied automatically when logging out. |
boolean |
isAutoMoveRead()
Tests if messages should be automatically moved when read. |
boolean |
isAutoQuote()
Tests if messages should be quoted automatically when replying. |
boolean |
isDisplayingInlined()
Tests if known mime message content should be inlined when displaying the message. |
boolean |
isExpert()
Tests if the user considers to be an xpert. |
long |
jdoGetTimeStamp()
|
void |
jdoSetTimeStamp(long timeStamp)
|
JwmaMailIdentity[] |
listMailIdentities()
Returns a JwmaMailIdentities[] that contains all JwmaMailIdentity instances of this JwmaPreferences. |
void |
persistPreferences(org.exolab.castor.jdo.Database db)
|
void |
removeMailIdentity(java.lang.String uid)
Removes the JwmaMailIdentity with the given id from this JwmaPreferences. |
void |
setAutoArchiveSent(boolean doarchive)
Sets the flag that controls wheter messages should be automatically archived when sent. |
void |
setAutoEmpty(boolean b)
Sets the flag that controls wheter messages should be automatically deleted from the trash on logout. |
void |
setAutoMoveRead(boolean domoveread)
Sets the flag that controls wheter messages should be automatically moved when read. |
void |
setAutoQuote(boolean doquote)
Sets the flag that controls wheter messages should be automatically quoted on reply. |
void |
setContactDatabaseID(java.lang.String dbid)
Sets a String representing the user's contact database UID. |
void |
setDateFormat(java.text.SimpleDateFormat dateformat)
Sets the DateFormat representing the user's preferred date format. |
void |
setDateFormatPattern(java.lang.String pattern)
|
void |
setDefaultMailIdentity(java.lang.String uid)
Sets the user's default identity JwmaMailIdentity instance. |
void |
setDisplayingInlined(boolean b)
Sets the flag that controls whether known mime message content is displayed inline. |
void |
setDraftFolder(java.lang.String path)
Sets the path of the draft folder. |
void |
setExpert(boolean b)
Sets the flag that shows wheter the owner of this JwmaPreferences considers to be an xpert. |
void |
setFirstname(java.lang.String firstname)
Sets the firstname of the owner of this JwmaPreferences. |
void |
setLanguage(java.lang.String str)
Sets the language of this JwmaPreferences. |
void |
setLastLogin(java.lang.String lastlogin)
Sets the the user's last login date and originating host. |
void |
setLastname(java.lang.String lastname)
Sets the lastname of the owner of this JwmaPreferences. |
void |
setLocale(java.util.Locale locale)
Sets the Locale associated with this JwmaPreferences. |
void |
setMailIdentityCollection(java.util.Collection collection)
|
void |
setMessageProcessor(net.wimpi.text.Processor processor)
Sets the Processor representing the users preferred message processor for processing plain/text messages. |
void |
setMessageProcessorName(java.lang.String name)
Sets the Processor representing the users preferred message processor for processing plain/text messages by its name. |
void |
setMessageSortCriteria(int messageSortCriteria)
Sets the sort criteria preference for messages. |
void |
setQuoteChar(java.lang.String qc)
Sets the quoting character. |
void |
setReadMailArchive(java.lang.String path)
Sets the path of the read-mail-archive. |
void |
setRootFolder(java.lang.String path)
Sets the path of the mail root folder. |
void |
setSentMailArchive(java.lang.String path)
Sets the path of the sent-mail-archive. |
void |
setStyle(java.lang.String style)
Sets a String representing the users preferred style. |
void |
setTrashFolder(java.lang.String path)
Sets the path of the trashfolder. |
void |
setUserIdentity(java.lang.String userid)
Sets the identity of this JwmaPreferences. |
void |
updatePreferences(org.exolab.castor.jdo.Database db)
|
| Methods inherited from class dtw.webmail.util.AbstractIdentifiable |
equals, getUID, setUID |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int m_MessageSortCriteria
| Constructor Detail |
public CastorPreferences()
| Method Detail |
public java.lang.String getUserIdentity()
JwmaPreferences
Note:
The format of the string has to be
<username>@<postofficehost>.
getUserIdentity in interface JwmaPreferencespublic void setUserIdentity(java.lang.String userid)
Note:
The format of the string has to be
<username>@<postofficehost>.
setUserIdentity in interface JwmaPreferencesImplpublic java.lang.String getFirstname()
JwmaPreferences
getFirstname in interface JwmaPreferencespublic void setFirstname(java.lang.String firstname)
setFirstname in interface JwmaPreferencesImplfirstname - the owner's firstname.public java.lang.String getLastname()
JwmaPreferences
getLastname in interface JwmaPreferencespublic void setLastname(java.lang.String lastname)
setLastname in interface JwmaPreferencesImpllastname - the owner's lastname.public java.lang.String getLastLogin()
JwmaPreferences
getLastLogin in interface JwmaPreferencespublic void setLastLogin(java.lang.String lastlogin)
setLastLogin in interface JwmaPreferencesImplpublic java.lang.String getQuoteChar()
JwmaPreferences
getQuoteChar in interface JwmaPreferencespublic void setQuoteChar(java.lang.String qc)
Note: only the first character is taken from the String.
setQuoteChar in interface JwmaPreferencesImplpublic boolean isAutoQuote()
JwmaPreferences
isAutoQuote in interface JwmaPreferencespublic void setAutoQuote(boolean doquote)
setAutoQuote in interface JwmaPreferencesImpldoquote - true if messages being replied to should be automatically
quoted, false otherwise.public java.lang.String getRootFolder()
JwmaPreferencesNote: This setting varies for different IMAP implementations.
getRootFolder in interface JwmaPreferencespublic void setRootFolder(java.lang.String path)
setRootFolder in interface JwmaPreferencesImplpath - the path of root mail folder as
String.public java.lang.String getSentMailArchive()
JwmaPreferences
getSentMailArchive in interface JwmaPreferencespublic void setSentMailArchive(java.lang.String path)
setSentMailArchive in interface JwmaPreferencesImplpath - the path of the sent-mail-archive as String.public java.lang.String getReadMailArchive()
JwmaPreferences
getReadMailArchive in interface JwmaPreferencespublic void setReadMailArchive(java.lang.String path)
setReadMailArchive in interface JwmaPreferencesImplpath - the path of the read-mail-archive as String.public java.lang.String getTrashFolder()
JwmaPreferences
getTrashFolder in interface JwmaPreferencespublic void setTrashFolder(java.lang.String path)
setTrashFolder in interface JwmaPreferencesImplpath - the path of the trashfolder as String.public java.lang.String getDraftFolder()
JwmaPreferences
getDraftFolder in interface JwmaPreferencespublic void setDraftFolder(java.lang.String path)
setDraftFolder in interface JwmaPreferencesImplpath - the path of the draft folder as String.public void setAutoArchiveSent(boolean doarchive)
setAutoArchiveSent in interface JwmaPreferencesImpldoarchive - true if messages being sent should be automatically
archived, false otherwise.public boolean isAutoArchiveSent()
JwmaPreferences
isAutoArchiveSent in interface JwmaPreferencespublic void setAutoMoveRead(boolean domoveread)
setAutoMoveRead in interface JwmaPreferencesImpldomoveread - true if read messages should be automatically
moved, false otherwise.public boolean isAutoMoveRead()
JwmaPreferences
isAutoMoveRead in interface JwmaPreferencespublic boolean isAutoEmpty()
JwmaPreferences
isAutoEmpty in interface JwmaPreferencespublic void setAutoEmpty(boolean b)
setAutoEmpty in interface JwmaPreferencesImplb - true if messages in trash should be automatically
deleted on logout, false otherwise.public java.lang.String getLanguage()
JwmaPreferences
Note that this method is a shortcut for
getLocale().getLanguage().
getLanguage in interface JwmaPreferencespublic void setLanguage(java.lang.String str)
setLanguage in interface JwmaPreferencesImplstr - the language locale as String.public java.util.Locale getLocale()
JwmaPreferences
getLocale in interface JwmaPreferencespublic void setLocale(java.util.Locale locale)
JwmaPreferencesImpl
setLocale in interface JwmaPreferencesImpllocale - the Locale to be set.public java.lang.String getContactDatabaseID()
JwmaPreferencesImpl
getContactDatabaseID in interface JwmaPreferencesImplpublic void setContactDatabaseID(java.lang.String dbid)
JwmaPreferencesImpl
setContactDatabaseID in interface JwmaPreferencesImplpublic void setMessageProcessorName(java.lang.String name)
JwmaPreferencesImplNote that this method is a shortcut for
setMessageProcessor(
JwmaKernel.getReference().getMessageProcessor(String name)
);
setMessageProcessorName in interface JwmaPreferencesImplname - the Processor's identifier as String.public java.lang.String getMessageProcessorName()
JwmaPreferences
getMessageProcessorName in interface JwmaPreferencespublic net.wimpi.text.Processor getMessageProcessor()
JwmaPreferences
getMessageProcessor in interface JwmaPreferencespublic void setMessageProcessor(net.wimpi.text.Processor processor)
JwmaPreferencesImpl
setMessageProcessor in interface JwmaPreferencesImplprocessor - the preferred message processor.public java.text.DateFormat getDateFormat()
JwmaPreferences
getDateFormat in interface JwmaPreferencespublic void setDateFormat(java.text.SimpleDateFormat dateformat)
JwmaPreferencesImpl
setDateFormat in interface JwmaPreferencesImpldateformat - the user's preferred SimpleDateFormat.public java.lang.String getDateFormatPattern()
public void setDateFormatPattern(java.lang.String pattern)
public void setDefaultMailIdentity(java.lang.String uid)
JwmaPreferencesImpl
setDefaultMailIdentity in interface JwmaPreferencesImpluid - the identifier of the JwmaMailIdentity
to be set as default.public java.lang.String getDefaultMailIdentity()
public JwmaMailIdentity getMailIdentity()
JwmaPreferences
getMailIdentity in interface JwmaPreferencespublic java.util.Collection getMailIdentityCollection()
public void setMailIdentityCollection(java.util.Collection collection)
public java.util.List getMailIdentities()
public JwmaMailIdentity[] listMailIdentities()
JwmaPreferences
listMailIdentities in interface JwmaPreferencespublic boolean existsMailIdentity(java.lang.String uid)
JwmaPreferencesImpl
existsMailIdentity in interface JwmaPreferencesImpluid - the identifier of the JwmaMailIdentity.public JwmaMailIdentity getMailIdentity(java.lang.String uid)
JwmaPreferences
getMailIdentity in interface JwmaPreferencesuid - a unique identifier of a mail identity.
public void addMailIdentity(JwmaMailIdentity identity)
JwmaPreferencesImpl
addMailIdentity in interface JwmaPreferencesImplidentity - the JwmaMailIdentity to be added.public void removeMailIdentity(java.lang.String uid)
JwmaPreferencesImpl
removeMailIdentity in interface JwmaPreferencesImpluid - the identifier of the JwmaMailIdentity
to be removed.public int getMailIdentityCount()
JwmaPreferencesImpl
getMailIdentityCount in interface JwmaPreferencesImplpublic boolean isExpert()
JwmaPreferences
isExpert in interface JwmaPreferencespublic void setExpert(boolean b)
JwmaPreferencesImpl
setExpert in interface JwmaPreferencesImplb - true if expert, false otherwise.public void setStyle(java.lang.String style)
JwmaPreferencesImpl
setStyle in interface JwmaPreferencesImplstyle - the style as String.public java.lang.String getStyle()
JwmaPreferences
getStyle in interface JwmaPreferencespublic boolean isDisplayingInlined()
JwmaPreferences
isDisplayingInlined in interface JwmaPreferencespublic void setDisplayingInlined(boolean b)
JwmaPreferencesImpl
setDisplayingInlined in interface JwmaPreferencesImplpublic int getMessageSortCriteria()
JwmaPreferences
getMessageSortCriteria in interface JwmaPreferencespublic void setMessageSortCriteria(int messageSortCriteria)
JwmaPreferences
setMessageSortCriteria in interface JwmaPreferencesmessageSortCriteria - the sort criteria as int.public JwmaMailIdentityImpl createMailIdentity()
JwmaPreferencesImpl
createMailIdentity in interface JwmaPreferencesImplpublic JwmaPreferencesImpl getClone()
public java.util.List getRemovedAssociations()
Associator
getRemovedAssociations in interface Associator
public void updatePreferences(org.exolab.castor.jdo.Database db)
throws org.exolab.castor.jdo.PersistenceException
org.exolab.castor.jdo.PersistenceException
public void persistPreferences(org.exolab.castor.jdo.Database db)
throws org.exolab.castor.jdo.PersistenceException
org.exolab.castor.jdo.PersistenceExceptionpublic long jdoGetTimeStamp()
jdoGetTimeStamp in interface org.exolab.castor.jdo.TimeStampablepublic void jdoSetTimeStamp(long timeStamp)
jdoSetTimeStamp in interface org.exolab.castor.jdo.TimeStampable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||