|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.jthomas.mailfaces.FaceGroup
The FaceGroup class will handle Group statements from the .opt file.
Group statements have the form:
Group name filename
The file will contain a list of email addresses in a
comma separated format. .csv
Most Adress books have the capability of creating an
export file that is in CSV format.
It will also support an Eudora Nickname file that contains:
alias name email
note ...
We will parse the lines in the file and build a hashtable that
contains each email address as the key.
A hashtable with a key of group name will keep track of the
individual group hashtables.
The matchGroup(groupname,address) method will be used to determine if
the specified address is in the specified group.
FaceResolver,
Mailmsg,
FaceOptions| Constructor Summary | |
FaceGroup()
|
|
| Method Summary | |
void |
display()
Method to display the Groups. |
static FaceGroup |
getRef()
Static Class Method to access the one and Only FaceOptions object |
void |
refreshOptions()
refreshOptions() gets control initially and when the user refreshes the Option file. |
boolean |
resolve(java.lang.String group,
Mailmsg mailmsg)
Determines if the sender of the mailmsg is in the specified group. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FaceGroup()
| Method Detail |
public static FaceGroup getRef()
public void refreshOptions()
- Initialize the FaceGroup object.
- Get array of Group statements
- For each statenment:
- parse the statement
- read the file and build a hashtable
of the email addresses
- store the hashtabel in a hashmap with the groupname
as the key.
public boolean resolve(java.lang.String group,
Mailmsg mailmsg)
group - The group name that should be checked.mailmsg - The mail that is being checked.
public void display()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||