|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.BaseObject
org.rakeshv.mail.UserPreferences
public class UserPreferences
A wrapper bean that provides easy access to all the properties configured in the application wide mail server preferences XML file. This class provides convenience methods that serve the purpose of hiding the complexity of the XML and object model from the application.
Copyright 2004, Rakesh Vidyadharan
| Field Summary | |
|---|---|
static boolean |
COPY_SENT_MESSAGES
A flag that is used to indicate that messages being sent should be copied to the WebMailBean.sentFolderName. |
static int |
DELETE_PERMANENTLY
A constant that is used to indicate that message being deleted should be deleted permanently from the store. |
static boolean |
DO_NOT_COPY_SENT_MESSAGES
A flag that is used to indicate that messages being sent should not be copied to the WebMailBean.sentFolderName. |
private java.lang.String |
fileName
The fully qualified path to the file that contains the preferences. |
private org.rakeshv.xml.mail.MailUserPreferences |
mailUserPreferences
The reference to the MailUserPreferences object
that is wrapped by this object. |
static int |
MARK_AS_DELETED
A constant that is used to indicate that the message being deleted should be marked as deleted (while left in the current folder). |
static int |
MOVE_TO_TRASH
A constant that is used to indicate that messages being deleted should be moved to the WebMailBean.trashFolderName folder. |
| Fields inherited from class org.rakeshv.BaseObject |
|---|
END_OF_LINE |
| Constructor Summary | |
|---|---|
UserPreferences()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
getCopySentMessages()
Wrapper method that returns the copySentMessages
element value. |
int |
getDaysToKeepDeletedMessages()
Wrapper method that returns the daysToKeepDeletedMessages
element value. |
int |
getDaysToKeepSentMessages()
Wrapper method that returns the daysToKeepSentMessages
element value. |
int |
getDeleteAction()
Wrapper method that returns the deleteAction
element value. |
java.lang.String |
getFileName()
Returns fileName. |
org.rakeshv.xml.mail.MailUserPreferences |
getMailUserPreferences()
Returns mailUserPreferences. |
int |
getMessagesPerPage()
Wrapper method that returns the messagesPerPage
element value. |
java.lang.String |
getReplyTo()
Wrapper method that returns the replyTo
element value. |
java.lang.String |
getSentFolder()
Wrapper method that returns the sentFolder
element value. |
java.lang.String |
getTrashFolder()
Wrapper method that returns the trashFolder
element value. |
void |
setFileName(java.lang.String fileName)
Set fileName. |
void |
setMailUserPreferences(org.rakeshv.xml.mail.MailUserPreferences mailUserPreferences)
Set mailUserPreferences. |
| Methods inherited from class org.rakeshv.BaseObject |
|---|
printCollection, printMap, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MOVE_TO_TRASH
WebMailBean.trashFolderName folder.
This constant is currently defined as 0.
public static final int DELETE_PERMANENTLY
1.
public static final int MARK_AS_DELETED
2.
public static final boolean COPY_SENT_MESSAGES
WebMailBean.sentFolderName. At present
a value of true indicates that messages should be
copied to the folder.
public static final boolean DO_NOT_COPY_SENT_MESSAGES
WebMailBean.sentFolderName.
At present a value of true indicates that messages
should not be copied to the folder.
private java.lang.String fileName
private org.rakeshv.xml.mail.MailUserPreferences mailUserPreferences
MailUserPreferences object
that is wrapped by this object.
| Constructor Detail |
|---|
public UserPreferences()
| Method Detail |
|---|
public final java.lang.String getFileName()
fileName.
public final void setFileName(java.lang.String fileName)
throws MailException
fileName. After setting the fileName, create the
appropriate instance of mailUserPreferences with the
contents of the specified file.
fileName - The value to set.
MailException - If errors are encountered while reading or
parsing the properties file.public final org.rakeshv.xml.mail.MailUserPreferences getMailUserPreferences()
mailUserPreferences.
public final void setMailUserPreferences(org.rakeshv.xml.mail.MailUserPreferences mailUserPreferences)
mailUserPreferences.
mailUserPreferences - The value to set.public final java.lang.String getTrashFolder()
trashFolder
element value.
public final int getDeleteAction()
deleteAction
element value.
MOVE_TO_TRASH,
DELETE_PERMANENTLY,
MARK_AS_DELETEDpublic final int getDaysToKeepDeletedMessages()
daysToKeepDeletedMessages
element value.
public final java.lang.String getSentFolder()
sentFolder
element value.
public final boolean getCopySentMessages()
copySentMessages
element value.
getSentFolder().COPY_SENT_MESSAGES,
DO_NOT_COPY_SENT_MESSAGESpublic final int getDaysToKeepSentMessages()
daysToKeepSentMessages
element value.
public final java.lang.String getReplyTo()
replyTo
element value.
public final int getMessagesPerPage()
messagesPerPage
element value.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||