1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.core.persistence.jpa;
20
21 import org.apache.syncope.common.keymaster.client.api.model.Domain;
22 import org.apache.syncope.common.lib.types.CipherAlgorithm;
23
24 public class DomainProperties {
25
26 private String key;
27
28 private String jdbcDriver;
29
30 private String jdbcURL;
31
32 private String dbSchema;
33
34 private String dbUsername;
35
36 private String dbPassword;
37
38 private Domain.TransactionIsolation transactionIsolation = Domain.TransactionIsolation.TRANSACTION_READ_COMMITTED;
39
40 private int poolMaxActive = 10;
41
42 private int poolMinIdle = 2;
43
44 private String auditSql = "audit.sql";
45
46 private String orm = "META-INF/spring-orm.xml";
47
48 private String databasePlatform;
49
50 private String adminPassword;
51
52 private CipherAlgorithm adminCipherAlgorithm = CipherAlgorithm.SHA512;
53
54 private String content;
55
56 private String keymasterConfParams;
57
58 public String getKey() {
59 return key;
60 }
61
62 public void setKey(final String key) {
63 this.key = key;
64 }
65
66 public String getJdbcDriver() {
67 return jdbcDriver;
68 }
69
70 public void setJdbcDriver(final String jdbcDriver) {
71 this.jdbcDriver = jdbcDriver;
72 }
73
74 public String getJdbcURL() {
75 return jdbcURL;
76 }
77
78 public void setJdbcURL(final String jdbcURL) {
79 this.jdbcURL = jdbcURL;
80 }
81
82 public String getDbSchema() {
83 return dbSchema;
84 }
85
86 public void setDbSchema(final String dbSchema) {
87 this.dbSchema = dbSchema;
88 }
89
90 public String getDbUsername() {
91 return dbUsername;
92 }
93
94 public void setDbUsername(final String dbUsername) {
95 this.dbUsername = dbUsername;
96 }
97
98 public String getDbPassword() {
99 return dbPassword;
100 }
101
102 public void setDbPassword(final String dbPassword) {
103 this.dbPassword = dbPassword;
104 }
105
106 public Domain.TransactionIsolation getTransactionIsolation() {
107 return transactionIsolation;
108 }
109
110 public void setTransactionIsolation(final Domain.TransactionIsolation transactionIsolation) {
111 this.transactionIsolation = transactionIsolation;
112 }
113
114 public int getPoolMaxActive() {
115 return poolMaxActive;
116 }
117
118 public void setPoolMaxActive(final int poolMaxActive) {
119 this.poolMaxActive = poolMaxActive;
120 }
121
122 public int getPoolMinIdle() {
123 return poolMinIdle;
124 }
125
126 public void setPoolMinIdle(final int poolMinIdle) {
127 this.poolMinIdle = poolMinIdle;
128 }
129
130 public String getAuditSql() {
131 return auditSql;
132 }
133
134 public void setAuditSql(final String auditSql) {
135 this.auditSql = auditSql;
136 }
137
138 public String getOrm() {
139 return orm;
140 }
141
142 public void setOrm(final String orm) {
143 this.orm = orm;
144 }
145
146 public String getDatabasePlatform() {
147 return databasePlatform;
148 }
149
150 public void setDatabasePlatform(final String databasePlatform) {
151 this.databasePlatform = databasePlatform;
152 }
153
154 public String getAdminPassword() {
155 return adminPassword;
156 }
157
158 public void setAdminPassword(final String adminPassword) {
159 this.adminPassword = adminPassword;
160 }
161
162 public CipherAlgorithm getAdminCipherAlgorithm() {
163 return adminCipherAlgorithm;
164 }
165
166 public void setAdminCipherAlgorithm(final CipherAlgorithm adminCipherAlgorithm) {
167 this.adminCipherAlgorithm = adminCipherAlgorithm;
168 }
169
170 public String getContent() {
171 return content == null
172 ? "classpath:domains/" + key + "Content.xml"
173 : content;
174 }
175
176 public void setContent(final String content) {
177 this.content = content;
178 }
179
180 public String getKeymasterConfParams() {
181 return keymasterConfParams == null
182 ? "classpath:domains/" + key + "KeymasterConfParams.json"
183 : keymasterConfParams;
184 }
185
186 public void setKeymasterConfParams(final String keymasterConfParams) {
187 this.keymasterConfParams = keymasterConfParams;
188 }
189 }