-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFundStewardProfile.java
39 lines (36 loc) · 1.44 KB
/
FundStewardProfile.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
public class FundStewardProfile extends Profile {
// create constructor for FundSteward child class
public FundStewardProfile() {
clearanceLevel = 3;
fileIndex = -1;
firstName = "invalidFirstName";
lastName = "invalidLastName";
username = "invalidUserName";
password = "invalidPassword";
securityQAnswers[0] = "invalidSecurityQAnswer1";
securityQAnswers[1] = "invalidSecurityQAnswer2";
securityQAnswers[2] = "invalidSecurityQAnswer3";
}
//TO DO: add for fileIndex?
public FundStewardProfile(String firstName, String lastName, String username, String password, String securityQAnswer1, String securityQAnswer2, String securityQAnswer3, int fileIndex) {
clearanceLevel = 3;
this.firstName = firstName;
this.lastName = lastName;
this.username = username;
this.password = password;
this.securityQAnswers[0] = securityQAnswer1;
this.securityQAnswers[1] = securityQAnswer2;
this.securityQAnswers[2] = securityQAnswer3;
this.fileIndex = fileIndex;
}
//gets the details from the fund steward profile needed to enter on a file
public String getDetailsFileText() {
return this.firstName + "\n" +
this.lastName + "\n" +
this.username + "\n" +
this.password + "\n" +
this.securityQAnswers[0] + "\n" +
this.securityQAnswers[1] + "\n" +
this.securityQAnswers[2];
}
}