MailBox
Application Architecture
A Prototype of a MailBox Application is developed. It consist of several administrator
with several mailboxes. Each Administrator consist of list of MailBox. Each Administrator
keep tract of creating, deleting, changing password for a given mailbox. Each Mailbox
keeps two vector/list of messages (one list for old Message and another for new Message).
The responsibility of the Mailbox is review, save and delete messages. Following classes
MailBox, Administrator, Message, MainSystem Menu were developed in C++ and Java in order
to support the application.
A Prototype of a MailBox is developed. It consist of several
administrator with several mailboxes. Following custom classes were developed in C++ and
Java.
- Administrator
- MailBox
- Message
- MainSystem Menu
Administrator
Administrator Class Properties Each Administrator has a following properties:
Property Name |
One-Tier Application |
TwoTier and Three Tier Database
Application |
|
- Declared as Vector of Objects in Java and CList of Objects in VC++
- Stored as Serelizable Object
|
- Declared as Vector of ID in Java and CList of ID in VC++
- Stored as Rows in MailBox Table in the database
|
|
- Declared as String in Java and CString in VC++
- Stored as Serelizable Object
|
- Declared as String in Java and CString in VC++
- Stored as VARCHAR in the Database
|
Administrator Functionality Administrator is responsible for the following:
Functionality |
One-Tier Application |
TwoTier and Three Tier Database
Application |
|
- Check to see if the MailBox Exists in the Vector/ CList.
- Create a new MailBox Object with a default attributes.
- Add that Object to the List of MailBox.
|
- Check to see if the MailBox Exists in the MailBox Table in
Database.
- Create a new MailBox in the Database.
- Add the ID of the MailBox in the Vector and CList.
|
- Delete an existing MailBox
|
- Check to see if the MailBox Exists in the Vector/ CList.
- Remove the Object from the List of MailBox.
- Delete the MailBox Object.
|
- Check to see if the MailBox Exists in the MailBox Table in
Database.
- Remove the ID of the MailBox from the Vector and CList.
- Delete the MailBox in the Database.
|
- Change the password of an existing MailBox
|
- Check to see if the MailBox Exists in the Vector/ CList.
- Change the password field in the MailBox Object.
|
- Check to see if the MailBox Exists in the MailBox Table in
Database.
- Change the password field in the MailBox Table.
|
MailBox
MailBox Class Properties Each MailBox has a following properties:
Property Name |
One-Tier Application |
TwoTier and Three Tier Database
Application |
- List of New Message
new message
|
- Declared as Vector of Objects in Java and CList of Objects in VC++
- Stored as Serelizable Object
|
- Declared as Vector of ID in Java and CList of ID in VC++
- Stored as Rows in Message Table in the database
|
- List of Old Message
oldmessage
|
- Declared as Vector of Objects in Java and CList of Objects in VC++
- Stored as Serelizable Object
|
- Declared as Vector of ID in Java and CList of ID in VC++
- Stored as Rows in Message Table in the database
|
|
- Declared as String in Java and CString in VC++
- Stored as Serelizable Object
|
- Declared as String in Java and CString in VC++
- Stored as VARCHAR in the Database
|
|
- Declared as String in Java and CString in VC++
- Stored as Serelizable Object
|
- Declared as String in Java and CString in VC++
- Stored as VARCHAR in the Database
|
|
- Declared as String in Java and CString in VC++
- Stored as Serelizable Object
|
- Declared as String in Java and CString in VC++
- Stored as VARCHAR in the Database
|
MailBox Functionality MailBox is responsible for the following:
- Create a new Message
- Delete an existing Message
- Changing the MailBox Password
- Changing the MailBox Greeting
- Transferring message from list of old messages to new.
- Transferring message from list of new messages to old.
:
Message
Message Class Properties Each Message has a following properties:
Property Name |
One-Tier Application |
TwoTier and Three Tier Database
Application |
|
- Declared as String in Java and CString in VC++
- Stored as Serelizable Object
|
- Declared as String in Java and CString in VC++
- Stored as VARCHAR in the Database
|
Message Functionality Message is responsible for the following:
|