Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Each user has two inboxes. One inbox is for his/her private messages, second inbox is a “Team inbox”, so one user can be part only of one team. Each team has private email address which is created in this format “[email protected]”. It means if someone wants to sent email to a team he/she must sent on private team address.In private and team inboxes user can delete each message.
- Admin has private inbox. His/her address is “[email protected]”. He/she has access to all inboxes of all users and can delete each email of each user. Admin is only person who can create user. Address of new is created in this format “[email protected]”. During deleting user or whole team also inbox is deleting. Admin can see all sensitive data of user. He/she can create new team and add members to team.
- Admin:
- methods:
- -adminMenu()
- -addUser()
- -deleteUser(String email)
- -showUser(String email)
- -showUsers()
- -addMailBox(String email)
- -showMailBox()
- -showMailBoxes()
- -deleteMailBox(String email)
- -showAllEmails()
- -deleteEmail(int emailId)
- -createTeam()
- -addToTeam(User user)
- -showTeams()
- -showTeam(String teamName)
- -deleteTeam(String teamName)
- endpoints:
- -/users //show all users with sensitive information
- -/users/add //add user to user database
- -/users/delete //delete user from user database
- -/inboxes //show all inboxes
- -/inboxes/user //show emails of user
- -/teams //show all teams
- -/teams/add //add team
- -/teams/delete //delete team
- -/emails //show all emails
- -/emails/delete //delete email
- User:
- methods:
- -userMenu()
- -showInbox()
- -showTeamInbox()
- -deleteEmail()
- endpoints:
- -/inbox //show private messages
- -/inbox/delete //delete message from private inbox
- -/myteam //show team messages
- -/myteam/delete //delete message from team inbox
Advertisement
Add Comment
Please, Sign In to add comment