They can create accounts, log in, andaccess various features and functionalities.Characteristics: Users have unique usernames and passwords.They can upload, edit, and delete images, crea
Trang 1Sharing Picture Website
Hanoi,May 02
Trang 2I.Record of Changes
*A - Added M - Modified D - Deleted
II, Assignment Introduction
1.Overview
1.1 Assignment Information
● Assignment name : Sharing Picture Website
● Group name: SE1719_G2
● Software Type: Web
1.2 Assignment Team
Trang 3Full Name Role ID Mobile
Nguyễn Quang
1.3 Use Case Diagram
Trang 4Class diagram description
1 User Description: Users are individuals who interact with the
sharing picture website They can create accounts, log in, andaccess various features and functionalities
Characteristics: Users have unique usernames and passwords.They can upload, edit, and delete images, create albums orcollections, add descriptions and tags to images, view andinteract with other users' images, like, comment on, and shareimages, follow other users, and customize their profiles
2 Image Description: Images are the visual content shared on the
picture sharing website They can be photographs,illustrations, or other forms of visual media
Characteristics: Images have file formats (e.g., JPEG, PNG),resolutions, and sizes They may have titles, descriptions, andtags associated with them They can be categorized, searched,and displayed on the website
3 Category Description: Categories are used to classify and organize
images based on their content or theme
Characteristics: Categories can be predefined (e.g., landscape,portrait, nature, animals) or created by users Each image can
be assigned to one or multiple categories Categories help
Trang 5users to discover and browse images based on their interests.
4 Administrator Description: Administrators are responsible for managing and
maintaining the sharing picture website system They haveelevated privileges and control over the platform
Characteristics: Administrators can monitor user activities,enforce rules and guidelines, moderate content, handle userreports and complaints, manage user accounts, and ensure thesmooth operation of the website
5 Buyer Description: Buyers are users who are interested in purchasing
or licensing the images available on the sharing picturewebsite
Characteristics: Buyers can browse, search, and view images.They may have the option to purchase or license images based
on the website's functionalities They may have access tolicensing agreements, pricing information, and paymentoptions
6 Photographer Description: Photographers are users who contribute their own
images to the sharing picture website
Characteristics: Photographers can upload their images, retainownership rights, set licensing terms and pricing for theirimages, and receive royalties or compensation when theirimages are licensed or sold
7 License Description: Licensing refers to the legal permissions granted
to users regarding the use of images on the sharing picturewebsite
Characteristics: Images can have different licensing options,such as royalty-free, rights-managed, or creative commons.Licensing terms determine how the images can be used,reproduced, distributed, and for what purposes Users mayneed to purchase or acquire licenses to use specific images incommercial projects
Trang 6● Pay Parking Fee
● View Transaction History
Trang 7
# Actor Description
1 User Users on photo sharing websites can perform activities from registering,
logging in, uploading images, viewing images, interacting with images, managing images and searching for content
2 PhotographerPho
tographer
Staff who perform system operation and have direct contact with application users
3 Buyer Buyers can view reviews, comment on photos posted by users or
photographers, follow photographers, download images
4 Amin System administrators who have privileged access to the admin
dashboard.The Adminr manages reports, reviews, customer information and operates the system under the control of the administrators
Trang 101.4.1 User
1.4.1.1 Create account
ID and Name: Create account
Created By: hungtmhe163748 Date Created:
Actors:
N/A
Description: In the context of a Sharing Picture Website, the Create account
function would allow a new user to create an account and start using the website to share and view pictures
Trigger: The trigger for the Create account function is typically the user accessing the Create account page and submitting their information to create a new account
Preconditions: The preconditions for the Create account function are
typically that the user must provide valid information to create an account, such as a valid email address and a strong password The system would validate this information before creating a new account for the user
Postconditions: The postconditions for the Create account function are
typically that a new account is created for the user and the user is logged in to their new account The system would store the user’s information in the database and update the interface to reflect that the user is now logged in
Normal Flow: 1 The user accesses the Create account page
and enters their information, such as their email address and password
2 The system validates the information entered
by the user to ensure that it meets the requirements for creating an account
Trang 113 If the information is valid, the system creates anew account for the user and stores their information in the database.
4 The system logs the user into their new account and updates the interface to reflect that the user is now logged in
Alternative Flows: None
Exceptions: None
Priority: High
Frequency of Use: Less frequently
Business Rules: 1 Users must provide a valid email address and a
strong password to create an account
2 Users may be required to provide additional information, such as their name or location, to create
an account
3 Users may be required to agree to terms of service or
a privacy policy before creating an account
4 The system may enforce restrictions on the number
of accounts that can be created from a single IP address or device
Other Information: None
Assumptions: 1 Users are able to access the Create account page
and enter their information to create a new account
2 The system is able to validate the information entered by the user and create a new account if the information is valid
3 The system is able to store the user’s information in the database and log the user in to their new account
4 The system is able to update the interface to reflect that the user is now logged in
Trang 12:https://app.diagrams.net/#G1zHoN22zwBFPQkF_367Vy3weHJPebvD9P
1.4.2 Buyer
1.4.2.1 Bookmark images
ID and Name: Bookmark images
Created By: hungtmhe163748 Date Created:
Actors:
N/A
Description: In the context of a Sharing Picture Website, the Bookmark
images function for the role of a buyer would allow a buyer
to save an image to their bookmarks for later reference
Trigger: The trigger for the Bookmark images function for the role of
a buyer on a Sharing Picture Website would typically be thebuyer clicking on a Bookmark button or icon associatedwith an image that they would like to save This couldhappen while the buyer is browsing or searching for images
on the website
Trang 13Preconditions: PRE-1 The buyer must be logged in to the website and the
image to be bookmarked must exist on the website
Postconditions: POST-1 the image is added to the buyer’s bookmarks and
the interface is updated to show that the image has beenbookmarked
Normal Flow: 1 The buyer views an image that they would like to
bookmark
2 The buyer clicks on a Bookmark button or icon associated with the image
3 The system checks if the buyer is logged in
4 If the buyer is not logged in, the system prompts the buyer to log in
5 If the buyer is logged in, the system adds the image
to the buyer’s bookmarks
6 The system updates the interface to show that the image has been bookmarked
Alternative Flows: 1 The buyer views an image that they would like to
bookmark
2 The buyer clicks on a Bookmark button or icon associated with the image
3 The system checks if the buyer is logged in
4 If the buyer is not logged in, the system prompts the buyer to log in
5 The function ends without bookmarking the image.Exceptions: 1 The buyer is not logged in or authenticated, and
therefore cannot bookmark pictures
2 The picture the buyer is trying to bookmark does not exist or has been removed
3 The buyer has reached the maximum number of allowed bookmarks
4 There is a technical issue or error that prevents the bookmark from being saved
Priority: High
Frequency of Use: frequently
Trang 14Business Rules: 1 Only registered and authenticated users are
allowed to use the Bookmark function
2 Users are allowed to bookmark a maximum of
X pictures
3 Pictures that violate the website’s terms of service or content guidelines cannot be bookmarked
4 Bookmarks must be organized into defined categories or folders
user-5 specific keywords or being uploaded by certainusers
Other Information: None
Assumptions: 1 The target audience is familiar with the concept of
bookmarking and will find the Bookmark function useful
2 The website will have a sufficient number of pictures
to make the Bookmark function valuable to users
3 Users will be willing to register and authenticate in order to use the Bookmark function
4 The technical infrastructure and resources will be sufficient to support the Bookmark function
Trang 151.4.2.2 Comment and rates
ID and Name: Comment and rates
Created By: hungtmhe163748 Date Created:
Actors:
N/A
Description: ● Comment: The Comment function allows users to
leave text-based feedback on pictures Users can write and post comments expressing their thoughts, opinions, or reactions to a picture Comments are typically displayed below the picture, and other users can read and respond to them
● Rate: The Rate function allows users to provide a quantitative evaluation of a picture, typically in the form of a numerical score or a star rating Users can select a rating value to indicate how much they like orappreciate a picture The average rating for a picture
Trang 16is typically displayed alongside the picture, and can
be used as an indicator of its popularity or quality.Trigger: ● A user submits a comment on a picture: This could
trigger a process to validate the comment, check it for compliance with the website’s content guidelines, and then store it in the database and display it on the website
● A user submits a rating for a picture: This could trigger a process to validate the rating, update the average rating for the picture, and display the updated rating on the website
● A comment or rating is flagged as inappropriate: Thiscould trigger a process to review the flagged content, determine if it violates the website’s content guidelines, and take appropriate action such as removing the content or issuing a warning to the userPreconditions: ● The user must be registered and authenticated: Only
users who have created an account and logged in to the website should be allowed to leave comments or submit ratings
● The picture must exist: The picture that the user is trying to comment on or rate must exist and be available on the website
● The user must have permission: The user must have the appropriate permissions or access rights to leavecomments or submit ratings For example, some websites may restrict these functions to certain user groups or membership levels
Postconditions: ● The comment or rating is saved: After a user submits
a comment or rating, it should be validated, processed, and saved in the database
● The comment or rating is displayed: After a user submits a comment or rating, it should be displayed
on the website so that other users can see it
● The average rating is updated: After a user submits a rating for a picture, the average rating for that picture should be recalculated and updated to reflect the new rating
Trang 17Normal Flow: 1 The user navigates to a picture on the website.
2 The user clicks on the Comment or Rate button
3 The website checks if the user is registered and authenticated If not, the user is prompted to log in or create an account
4 The website checks if the user has permission to use the Comment or Rate function If not, an error message is displayed
5 The user enters their comment or selects their rating and submits it
6 The website validates the comment or rating and checks it for compliance with content guidelines
7 The comment or rating is saved in the database and displayed on the website
8 If the user submitted a rating, the average rating for the picture is recalculated and updated
Alternative Flows: ● The user is not registered or authenticated: If the user
is not logged in, they could be redirected to the login
or registration page when they try to use the Comment or Rate functions
● The user does not have permission: If the user does not have the appropriate permissions to use the Comment or Rate functions, an error message could be displayed explaining why they cannot use these functions
● The comment or rating is invalid: If the user submits
a comment or rating that is invalid (e.g., it contains prohibited content), an error message could be displayed and the comment or rating could be rejected
Exceptions: ● The picture does not exist: If the user tries to
comment on or rate a picture that does not exist or has been removed, an error message could be displayed
● The database is unavailable: If there is a problem with the database and the comment or rating cannot
be saved, an error message could be displayed and the user could be asked to try again later
● There is a technical issue: If there is a technical issuethat prevents the Comment or Rate function from working correctly, an error message could be
Trang 18displayed and the user could be asked to try again later
Priority: high
Frequency of Use: Moderate
Business Rules: ● Only registered and authenticated users are allowed
to use the Comment and Rate functions
● Comments must comply with the website’s content guidelines and terms of service
● Ratings must be within a certain range (e.g., 1 to 5 stars)
● Users are allowed to submit one rating per picture.Other Information: None
Assumptions: ● The target audience is familiar with the concept of
commenting and rating and will find these functions useful
● The website will have a sufficient number of pictures
to make the Comment and Rate functions valuable
Trang 19downloading images from a sharing picture website and to use them within the permitted usage guidelines.
Trang 201.4.2.4: Search Image
-When a user enters a search keyword on a sharing picture website and initiates a search, the following steps typically occur:
+User Enters Search Keyword: The user inputs a keyword or a phrase into the search bar
on the sharing picture website, indicating their desired image or topic
+Send Search Request: The website's search functionality receives the search request from the user
+Search Image: The search functionality processes the search request and identifies the relevant images based on various factors such as image titles, descriptions, tags, and other metadata
+Execute SQL Query: Behind the scenes, the search functionality may execute an SQL (Structured Query Language) query to retrieve the matching images from a database The query may include search parameters and conditions based on the entered keyword.+Return Results: The search functionality retrieves the search results from the database, which includes a collection of images that match the search criteria
+Return Search Results: The search functionality prepares the search results to be displayed to the user This could involve organizing the images in a specific order, such as