130 likes | 214 Views
Blog System. Based on Learning UML 2.0. AuthorCredentialsDB. EmailSystem. + checkAuthorDetails (author : AuthoDetails ) : boolean. + sendEmail (email : Email) : void. 1. -- emailSystem. 1. -- authorCredentialsDB. ContentManagementSystem. AuthorDetails.
E N D
Blog System Based on Learning UML 2.0
AuthorCredentialsDB EmailSystem + checkAuthorDetails(author : AuthoDetails) : boolean + sendEmail(email : Email) : void 1 -- emailSystem 1 -- authorCredentialsDB ContentManagementSystem AuthorDetails + setAuthorCredentialsDB(newAuthorCredentialsDB : AuthorCredentialsDB) : void +setEmailSystem(newEmailSystem : EmailSystem) : void + setContentDB(newContentDB : ContentDB) : void + createNewBlogAccount() : void + selectBlogAccountType(type : String) : void + enterAuthorDetails(author : AuthorDetails) : void + submitEntry(text : String) : void# createNewRegularBlogAccount(author : AuthorDetails) : Account # emailBlogDetails(account : Account) : void # isValidEntry(text : String) : boolean # showBadFormtMessage() : void Account Email Entry -- contentDB 1 ContentDB + addContent(entry: Entry, authorDetails : AuthorDetails) : void
Use Case – Create Blog Account Use Case – Create Blog Account Main Scenario Administrator asks the system to create a new blog account. Administrator selects an account type. The Administrator enters the author’s details. The author’s details are verified using the Author Credentials Database. The new blog account is created. A summary of the new blog account’s details are emailed to the author. Alternative: Bad Credentials 4. The Author Credentials Database does not verify the author’s details. 5. The author’s new blog account application is rejected.
AuthorCredentialsDB EmailSystem + checkAuthorDetails(author : AuthoDetails) : boolean + sendEmail(email : Email) : void 1 -- emailSystem 1 -- authorCredentialsDB ContentManagementSystem + setAuthorCredentialsDB(newAuthorCredentialsDB : AuthorCredentialsDB) : void + setEmailSystem(newEmailSystem : EmailSystem) : void + createNewBlogAccount() : void + selectBlogAccountType(type : String) : void + enterAuthorDetails(author : AuthorDetails) : void# createBlogAccount(author : AuthorDetails) : Account # emailBlogDetails(account : Account) : void AuthorDetails Email Account
Use Case – Create Blog Entry Use Case – Create Blog Account Main Scenario Author asks the system to create a new blog entry. Author enters text. Author presses “Submit”. System verifies text is properly formatted. System creates a new entry for the author. Alternative: Author Cancels 3. Author presses “Cancel”. 4. System returns to Author Screen. Alternative: Bad Text 3. System determines text is not properly formatted. 4. System shows “bad format” message for 5 seconds. Rejoin main scenario at step 2.
Email Account AuthorCredentialsDB EmailSystem + checkAuthorDetails(author : AuthoDetails) : boolean + sendEmail(email : Email) : void 1 -- emailSystem 1 -- authorCredentialsDB ContentManagementSystem AuthorDetails + setAuthorCredentialsDB(newAuthorCredentialsDB : AuthorCredentialsDB) : void +setEmailSystem(newEmailSystem : EmailSystem) : void + setContentDB(newContentDB : ContentDB) : void + createNewBlogAccount() : void + selectBlogAccountType(type : String) : void + enterAuthorDetails(author : AuthorDetails) : void + submitEntry(text : String) : void# createNewRegularBlogAccount(author : AuthorDetails) : Account # emailBlogDetails(account : Account) : void # isValidEntry(text : String) : boolean # showBadFormtMessage() : void Account Email Entry -- contentDB 1 ContentDB + addContent(entry: Entry, authorDetails : AuthorDetails) : void
Use Case – Create Blog Account Use Case – Create Blog Account Main Scenario Administrator asks the system to create a new blog account. Administrator selects an account type. The Administrator enters the author’s details. The author’s details are verified using the Author Credentials Database. The new blog account is created. A summary of the new blog account’s details are emailed to the author. Alternative: Bad Credentials 4. The Author Credentials Database does not verify the author’s details. 5. The author’s new blog account application is rejected.
Email Account AuthorCredentialsDB EmailSystem + checkAuthorDetails(author : AuthoDetails) : boolean + sendEmail(email : Email) : void 1 -- emailSystem 1 -- authorCredentialsDB ContentManagementSystem AuthorDetails + setAuthorCredentialsDB(newAuthorCredentialsDB : AuthorCredentialsDB) : void +setEmailSystem(newEmailSystem : EmailSystem) : void + setContentDB(newContentDB : ContentDB) : void + createNewBlogAccount() : void + selectBlogAccountType(type : String) : void + enterAuthorDetails(author : AuthorDetails) : void + submitEntry(text : String) : void# createNewRegularBlogAccount(author : AuthorDetails) : Account # emailBlogDetails(account : Account) : void # isValidEntry(text : String) : boolean # showBadFormtMessage() : void Account Email Entry -- contentDB 1 ContentDB + addContent(entry: Entry, authorDetails : AuthorDetails) : void
Use Case – Create Blog Entry Use Case – Create Blog Account Main Scenario Author asks the system to create a new blog entry. Author enters text. Author presses “Submit”. System verifies text is properly formatted. System creates a new entry for the author. Alternative: Author Cancels 3. Author presses “Cancel”. 4. System returns to Author Screen. Alternative: Bad Text 3. System determines text is not properly formatted. 4. System shows “bad format” message for 5 seconds. Rejoin main scenario at step 2.
Email Account AuthorCredentialsDB EmailSystem + checkAuthorDetails(author : AuthoDetails) : boolean + sendEmail(email : Email) : void 1 -- emailSystem 1 -- authorCredentialsDB ContentManagementSystem AuthorDetails + setAuthorCredentialsDB(newAuthorCredentialsDB : AuthorCredentialsDB) : void +setEmailSystem(newEmailSystem : EmailSystem) : void + setContentDB(newContentDB : ContentDB) : void + createNewBlogAccount() : void + selectBlogAccountType(type : String) : void + enterAuthorDetails(author : AuthorDetails) : void + submitEntry(text : String) : void# createNewRegularBlogAccount(author : AuthorDetails) : Account # emailBlogDetails(account : Account) : void # isValidEntry(text : String) : boolean # showBadFormtMessage() : void Account Email Entry -- contentDB 1 ContentDB + addContent(entry: Entry, authorDetails : AuthorDetails) : void