Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,030 --> 00:00:07,400
Next, we will write code to implement the
functionalities for the user management module
2
00:00:08,100 --> 00:00:16,900
which allows the administrators or managers to manage all the users of the website's back-end
3
00:00:17,300 --> 00:00:21,700
Note that the users here are not the registered users of the website
4
00:00:21,700 --> 00:00:27,500
they are the person who are responsible for managing the website's information in the back-end
5
00:00:27,900 --> 00:00:31,800
the visitors come to the website are called customers
6
00:00:31,800 --> 00:00:38,000
and we will implement the functionalities for customer
management later in this course
7
00:00:38,700 --> 00:00:42,000
here's our task list in this section:
8
00:00:42,800 --> 00:00:46,560
Code UserDAO and unit tests
9
00:00:47,300 --> 00:00:51,000
implement list users feature
10
00:00:51,400 --> 00:00:54,180
implement create user feature
11
00:00:54,700 --> 00:00:56,760
implement edit user feature
12
00:00:56,760 --> 00:01:00,000
and implement delete user feature
13
00:01:10,000 --> 00:01:22,000
This use case diagram represents the actions that a manager or administrator can do to manage users in the system
14
00:01:23,300 --> 00:01:25,000
you see
15
00:01:25,200 --> 00:01:26,500
list all users
16
00:01:26,800 --> 00:01:27,760
create a user
17
00:01:27,760 --> 00:01:31,100
delete a user and edit user
18
00:01:34,400 --> 00:01:39,300
and this is the design of the user management module in our application
19
00:01:39,600 --> 00:01:42,000
the Users List Page
20
00:01:43,200 --> 00:01:47,420
As you can see, there's a hyperlink: Create
New User
21
00:01:47,800 --> 00:01:50,600
to create a new user here
22
00:01:50,600 --> 00:01:54,860
all users in our application are listed on this page
23
00:01:55,000 --> 00:01:58,000
in the table that looks like this
24
00:01:58,500 --> 00:01:59,680
you see
25
00:02:01,000 --> 00:02:06,000
The column names: index, ID, email, full name and action
26
00:02:06,900 --> 00:02:12,459
and each row in the table displays
information for a particular user
27
00:02:12,600 --> 00:02:18,120
and there are action edit and delete for
each user
28
00:02:18,700 --> 00:02:24,400
Our goal in this section is to write code to implement all these functionalities:
29
00:02:24,600 --> 00:02:31,000
list users, create user, edit user and delete user
30
00:02:37,000 --> 00:02:42,800
and this is the design of the table users in the database
31
00:02:43,300 --> 00:02:46,800
the user management module manages data in this table
32
00:02:47,300 --> 00:02:54,000
Note that this table stands alone - it
doesn't have any relationships with other tables
33
00:02:59,200 --> 00:03:08,500
And this class diagram gives you an overview of Java classes which we will code in the user management module
34
00:03:09,000 --> 00:03:11,440
on the server side:
35
00:03:12,200 --> 00:03:16,560
First, we need to update the DAO classes
36
00:03:16,900 --> 00:03:26,400
especially the UserDAO class which implements all database-related
functionalities to manage users
37
00:03:27,200 --> 00:03:41,169
then for each operation: create, list, edit, delete - we create a Java servlet - you see here
38
00:03:41,800 --> 00:03:48,600
CreateUserServlet, ListUserServlet, EditUserServlet, UpdateUserServlet, DeleteUserServlet
39
00:03:49,700 --> 00:03:53,260
to handle requests come from the clients
40
00:03:54,000 --> 00:04:01,000
and the Servlet calls the UserService which in turn, calls the UserDAO
41
00:04:01,800 --> 00:04:09,200
The UserService class encapsulates business functionalities for managing users
42
00:04:09,600 --> 00:04:13,200
a business function may not access to the database
43
00:04:13,400 --> 00:04:22,340
whereas the UserDAO class implements only database-related functionalities
44
00:04:23,500 --> 00:04:33,680
The User class here is simply a domain model class represents a user in the system
3971
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.