Design DocumentFirst Edition – Released February 11, 2005Team 10 – Photo Web SiteCreated by: Justin Aurand, Harry Finocchiaro, Arian Hojat, Nick Intrieri, John PerkinsTable of Contents1. Introduction a. Abstract b. Purpose c. Document Scope2. Architectural Design Overview3. Architectural Design Detail4. AlgorithmsIntroduction AbstractGallery Pro is a tool to be used by content providers (writers, artists, photographers, etc.) to easily automate the task of creating, maintaining, and restructuring a robust online image gallery. PurposeThe purpose of this document is to display the underlying structure and design of Gallery Pro. These two aspects are displayed using flow chart analysis and class diagrams. In order to guarantee complete architectural coverage, this document follows closely off of the Gallery Pro Requirements Document. Document ScopeThis document first outlines the architectural design used to create the application in a broad overview, showing each class and its relationship to others in the system. This document thendescribes each class used in the system in greater detail in the architectural design detail.Architectural Design OverviewProcess FlowArchitectural Design Detail LoginPage ClassThe LoginPage class represents the login page and its attributes.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpageauthenticate N/A Sets dbConnectionSets the dbConnection for the User LogindoGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpUser : GPUser+ printPage(PrintWriter out, int nSub): void+ authenticate(DBConnection dbConnections): void+ doGet(Response, Request): void+ doPost(Response, Request): void: LoginPage7 ProjectSelectionPage ClassThe ProjectSelectionPage class represents the project list page and itsattributes.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpagedoGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpProjectList : GPProjectList+ printPage(PrintWriter out): void+ doGet(Response, Request): void+ doPost(Response, Request): void: ProjectSelectionPage8 NewConfigProjectPage ClassThe NewConfigProjectPage class represents the project list page and its attributes.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpagesetProjectID N/A Sets the project ID for this page.To set the active project.getProjectID N/A Retreives the project ID for this page.To get the active project.doGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpProject : GPProject- m_nProjectID : int+ printPage(PrintWriter out): void+ doGet(Response, Request): void+ doPost(Response, Request): void: NewConfigProjectPage9 ViewGalleriesPage ClassThe ViewGalleriesPage class represents the gallery page and its attributes.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpagesetProjectID N/A Sets the project ID for this page.To set the active project.getProjectID N/A Retreives the project ID for this page.To get the active project.doGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpGalleryList : GPGalleryList- m_nProjectID : int+ printPage(PrintWriter out): void+ doGet(Response, Request): void+ doPost(Response, Request): void: ViewGalleriesPage10 NewConfigGalleryPage ClassThe NewConfigGalleryPage class represents the gallery settings.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpagesetGalleryID N/A Sets the gallery ID for this page.To set the active gallery.getGalleryID N/A Retreives the gallery ID for this page.To get the active gallery.setProjectID N/A Sets the project ID for this page.To set the active project.getProjectID N/A Retreives the project ID for this page.To get the active project.doGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpGallery : GPGallery- m_gpCategoryList : GPCategoryList- m_gpWatermarkList : GPWatermarkList- m_gpEffectList : GPEffectList- m_nProjectID : int- m_nGalleryID : int: NewConfigGalleryPage+ printPage(PrintWriter out): void+ doGet(Response, Request): void+ doPost(Response, Request): void11 ViewCategoriesPage ClassThe ViewCategoriesPage class represents the categories and its attributes.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpagedoGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpCategoriesList : GPCategoriesList+ printPage(PrintWriter out): void+ doGet(Response, Request): void+ doPost(Response, Request): void: ViewCategoriesPage12 ViewWatermarksPage ClassThe ViewWatermarksPage class represents the watermark page and its attributes.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpagesetProjectID N/A Sets the project ID for this page.To set the active project.getProjectID N/A Retreives the project ID for this page.To get the active project.doGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpWatermarkList : GPWatermarkList- m_nProjectID : int+ printPage(PrintWriter out): void+ doGet(Response, Request): void+ doPost(Response, Request): void: ViewWatermarksPage13 NewConfigWatermarkPage ClassThe NewConfigWatermarkPage class represents the watermark settings.Procedure Pre Condition Post Condition PurposeprintPage Page is not null or empty.Writes page in PrintWriter Out.Prints the HTML for the webpagesetProjectID N/A Sets the project ID for this page.To set the active project.getProjectID N/A Retreives the project ID for this page.To get the active project.doGet N/A N/A Needed for webpage displaydoPost N/A N/A Needed for webpage display- m_gpWatermark : GPWatermark- m_nProjectID : int+ printPage(PrintWriter out, int nSub): void+ doGet(Response, Request): void+ doPost(Response, Request): void: NewConfigWatermarkPage14 ViewImagesPage ClassThe ViewImagesPage class represents the image page and its attributes.Procedure Pre Condition Post Condition
View Full Document