|
1
|
|
|
package unicon.matthews.admin; |
|
2
|
|
|
|
|
3
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
4
|
|
|
import org.springframework.context.annotation.Configuration; |
|
5
|
|
|
|
|
6
|
|
|
/** |
|
7
|
|
|
* Configuration values to create a super admin user |
|
8
|
|
|
*/ |
|
9
|
|
|
@Configuration |
|
10
|
|
|
@ConfigurationProperties(prefix = "matthews.users") |
|
11
|
|
|
public class AdminUserConfig { |
|
12
|
|
|
|
|
13
|
|
|
private String adminuser; |
|
14
|
|
|
|
|
15
|
|
|
private String password; |
|
16
|
|
|
|
|
17
|
|
|
private String emailAddress; |
|
18
|
|
|
|
|
19
|
|
|
private boolean encrypted; |
|
20
|
|
|
|
|
21
|
|
|
public String getAdminuser() { |
|
22
|
|
|
return adminuser; |
|
23
|
|
|
} |
|
24
|
|
|
|
|
25
|
|
|
public void setAdminuser(String adminuser) { |
|
26
|
|
|
this.adminuser = adminuser; |
|
27
|
|
|
} |
|
28
|
|
|
|
|
29
|
|
|
public String getPassword() { |
|
30
|
|
|
return password; |
|
31
|
|
|
} |
|
32
|
|
|
|
|
33
|
|
|
public void setPassword(String password) { |
|
34
|
|
|
this.password = password; |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
public String getEmailAddress() { |
|
38
|
|
|
return emailAddress; |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
public void setEmailAddress(String emailAddress) { |
|
42
|
|
|
this.emailAddress = emailAddress; |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
public boolean isEncrypted() { |
|
46
|
|
|
return encrypted; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
public void setEncrypted(boolean encrypted) { |
|
50
|
|
|
this.encrypted = encrypted; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
@Override |
|
54
|
|
|
public String toString() { |
|
55
|
|
|
return "SuperAdminUser{" + |
|
56
|
|
|
"adminuser='" + adminuser + '\'' + |
|
57
|
|
|
", password='" + password + '\'' + |
|
|
|
|
|
|
58
|
|
|
", emailAddress='" + emailAddress + '\'' + |
|
59
|
|
|
", encrypted=" + encrypted + |
|
60
|
|
|
'}'; |
|
61
|
|
|
} |
|
62
|
|
|
} |
|
63
|
|
|
|