-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAD.java
95 lines (73 loc) · 2.07 KB
/
AD.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import java.util.ArrayList;
/**
* This class creates the admin object in the system, which extends the People class.
* Admins have the suspicious activity reports and meeting requests the customers made to them.
*/
public class AD extends People
{
private int id;
private final ArrayList<Report> customerReports;
private final ArrayList<Request> meetingRequests;
/**
* Constructor for the Admin
* @param firstName the first name of the Admin
* @param lastName the last name of the Admin
* @param email the email of the Admin
* @param phoneNum the phone number of the Admin
* @param id the id of the Admin
*
*/
public AD(String firstName, String lastName, String email, String phoneNum, int id) {
super(firstName, lastName, email, phoneNum);
this.id = id;
customerReports = new ArrayList<>();
meetingRequests= new ArrayList<>();
}
/**
* Gets the id of the Admin
* @return id of the admin
*/
public int getId() {
return id;
}
/**
* Sets the id of the Admin
* @param id the id of the Admin
*
*/
public void setId(int id) {
this.id = id;
}
/**
* Gets the customer reports of the Admin
* @return the customer reports of the Admin
*
*/
public ArrayList<Report> getCustomerReports() {
return customerReports;
}
/**
* Adds a customer report to the Admin
* @param report the customer report to be added
*
*/
public void addCustomerReports(Report report) {
this.customerReports.add(report);
}
/**
* Gets the meeting requests of the Admin
* @return the meeting requests of the Admin
*
*/
public ArrayList<Request> getMeetingRequests() {
return meetingRequests;
}
/**
* Adds a meeting request to the Admin
* @param meetingRequest the meeting request to be added
*
*/
public void addMeetingRequests(Request meetingRequest) {
this.meetingRequests.add(meetingRequest);
}
}