|
||||||||||
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 JwmaPreferences
public void setUserIdentity(java.lang.String userid)
Note:
The format of the string has to be
<username>@<postofficehost>.
setUserIdentity
in interface JwmaPreferencesImpl
public java.lang.String getFirstname()
JwmaPreferences
getFirstname
in interface JwmaPreferences
public void setFirstname(java.lang.String firstname)
setFirstname
in interface JwmaPreferencesImpl
firstname
- the owner's firstname.public java.lang.String getLastname()
JwmaPreferences
getLastname
in interface JwmaPreferences
public void setLastname(java.lang.String lastname)
setLastname
in interface JwmaPreferencesImpl
lastname
- the owner's lastname.public java.lang.String getLastLogin()
JwmaPreferences
getLastLogin
in interface JwmaPreferences
public void setLastLogin(java.lang.String lastlogin)
setLastLogin
in interface JwmaPreferencesImpl
public java.lang.String getQuoteChar()
JwmaPreferences
getQuoteChar
in interface JwmaPreferences
public void setQuoteChar(java.lang.String qc)
Note: only the first character is taken from the String.
setQuoteChar
in interface JwmaPreferencesImpl
public boolean isAutoQuote()
JwmaPreferences
isAutoQuote
in interface JwmaPreferences
public void setAutoQuote(boolean doquote)
setAutoQuote
in interface JwmaPreferencesImpl
doquote
- true if messages being replied to should be automatically
quoted, false otherwise.public java.lang.String getRootFolder()
JwmaPreferences
Note: This setting varies for different IMAP implementations.
getRootFolder
in interface JwmaPreferences
public void setRootFolder(java.lang.String path)
setRootFolder
in interface JwmaPreferencesImpl
path
- the path of root mail folder as
String.public java.lang.String getSentMailArchive()
JwmaPreferences
getSentMailArchive
in interface JwmaPreferences
public void setSentMailArchive(java.lang.String path)
setSentMailArchive
in interface JwmaPreferencesImpl
path
- the path of the sent-mail-archive as String.public java.lang.String getReadMailArchive()
JwmaPreferences
getReadMailArchive
in interface JwmaPreferences
public void setReadMailArchive(java.lang.String path)
setReadMailArchive
in interface JwmaPreferencesImpl
path
- the path of the read-mail-archive as String.public java.lang.String getTrashFolder()
JwmaPreferences
getTrashFolder
in interface JwmaPreferences
public void setTrashFolder(java.lang.String path)
setTrashFolder
in interface JwmaPreferencesImpl
path
- the path of the trashfolder as String.public java.lang.String getDraftFolder()
JwmaPreferences
getDraftFolder
in interface JwmaPreferences
public void setDraftFolder(java.lang.String path)
setDraftFolder
in interface JwmaPreferencesImpl
path
- the path of the draft folder as String.public void setAutoArchiveSent(boolean doarchive)
setAutoArchiveSent
in interface JwmaPreferencesImpl
doarchive
- true if messages being sent should be automatically
archived, false otherwise.public boolean isAutoArchiveSent()
JwmaPreferences
isAutoArchiveSent
in interface JwmaPreferences
public void setAutoMoveRead(boolean domoveread)
setAutoMoveRead
in interface JwmaPreferencesImpl
domoveread
- true if read messages should be automatically
moved, false otherwise.public boolean isAutoMoveRead()
JwmaPreferences
isAutoMoveRead
in interface JwmaPreferences
public boolean isAutoEmpty()
JwmaPreferences
isAutoEmpty
in interface JwmaPreferences
public void setAutoEmpty(boolean b)
setAutoEmpty
in interface JwmaPreferencesImpl
b
- 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 JwmaPreferences
public void setLanguage(java.lang.String str)
setLanguage
in interface JwmaPreferencesImpl
str
- the language locale as String.public java.util.Locale getLocale()
JwmaPreferences
getLocale
in interface JwmaPreferences
public void setLocale(java.util.Locale locale)
JwmaPreferencesImpl
setLocale
in interface JwmaPreferencesImpl
locale
- the Locale to be set.public java.lang.String getContactDatabaseID()
JwmaPreferencesImpl
getContactDatabaseID
in interface JwmaPreferencesImpl
public void setContactDatabaseID(java.lang.String dbid)
JwmaPreferencesImpl
setContactDatabaseID
in interface JwmaPreferencesImpl
public void setMessageProcessorName(java.lang.String name)
JwmaPreferencesImpl
Note that this method is a shortcut for
setMessageProcessor( JwmaKernel.getReference().getMessageProcessor(String name) );
setMessageProcessorName
in interface JwmaPreferencesImpl
name
- the Processor's identifier as String.public java.lang.String getMessageProcessorName()
JwmaPreferences
getMessageProcessorName
in interface JwmaPreferences
public net.wimpi.text.Processor getMessageProcessor()
JwmaPreferences
getMessageProcessor
in interface JwmaPreferences
public void setMessageProcessor(net.wimpi.text.Processor processor)
JwmaPreferencesImpl
setMessageProcessor
in interface JwmaPreferencesImpl
processor
- the preferred message processor.public java.text.DateFormat getDateFormat()
JwmaPreferences
getDateFormat
in interface JwmaPreferences
public void setDateFormat(java.text.SimpleDateFormat dateformat)
JwmaPreferencesImpl
setDateFormat
in interface JwmaPreferencesImpl
dateformat
- 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 JwmaPreferencesImpl
uid
- the identifier of the JwmaMailIdentity
to be set as default.public java.lang.String getDefaultMailIdentity()
public JwmaMailIdentity getMailIdentity()
JwmaPreferences
getMailIdentity
in interface JwmaPreferences
public java.util.Collection getMailIdentityCollection()
public void setMailIdentityCollection(java.util.Collection collection)
public java.util.List getMailIdentities()
public JwmaMailIdentity[] listMailIdentities()
JwmaPreferences
listMailIdentities
in interface JwmaPreferences
public boolean existsMailIdentity(java.lang.String uid)
JwmaPreferencesImpl
existsMailIdentity
in interface JwmaPreferencesImpl
uid
- the identifier of the JwmaMailIdentity.public JwmaMailIdentity getMailIdentity(java.lang.String uid)
JwmaPreferences
getMailIdentity
in interface JwmaPreferences
uid
- a unique identifier of a mail identity.
public void addMailIdentity(JwmaMailIdentity identity)
JwmaPreferencesImpl
addMailIdentity
in interface JwmaPreferencesImpl
identity
- the JwmaMailIdentity to be added.public void removeMailIdentity(java.lang.String uid)
JwmaPreferencesImpl
removeMailIdentity
in interface JwmaPreferencesImpl
uid
- the identifier of the JwmaMailIdentity
to be removed.public int getMailIdentityCount()
JwmaPreferencesImpl
getMailIdentityCount
in interface JwmaPreferencesImpl
public boolean isExpert()
JwmaPreferences
isExpert
in interface JwmaPreferences
public void setExpert(boolean b)
JwmaPreferencesImpl
setExpert
in interface JwmaPreferencesImpl
b
- true if expert, false otherwise.public void setStyle(java.lang.String style)
JwmaPreferencesImpl
setStyle
in interface JwmaPreferencesImpl
style
- the style as String.public java.lang.String getStyle()
JwmaPreferences
getStyle
in interface JwmaPreferences
public boolean isDisplayingInlined()
JwmaPreferences
isDisplayingInlined
in interface JwmaPreferences
public void setDisplayingInlined(boolean b)
JwmaPreferencesImpl
setDisplayingInlined
in interface JwmaPreferencesImpl
public int getMessageSortCriteria()
JwmaPreferences
getMessageSortCriteria
in interface JwmaPreferences
public void setMessageSortCriteria(int messageSortCriteria)
JwmaPreferences
setMessageSortCriteria
in interface JwmaPreferences
messageSortCriteria
- the sort criteria as int.public JwmaMailIdentityImpl createMailIdentity()
JwmaPreferencesImpl
createMailIdentity
in interface JwmaPreferencesImpl
public 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.PersistenceException
public long jdoGetTimeStamp()
jdoGetTimeStamp
in interface org.exolab.castor.jdo.TimeStampable
public 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 |