ontomde-demo-acegi 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +2 -0
- data/Manifest.txt +46 -0
- data/README.txt +79 -0
- data/Rakefile +22 -0
- data/bin/ontomde-demo-acegi-install +11 -0
- data/demo/1-base.bat +6 -0
- data/demo/1-base.sh +5 -0
- data/demo/2-unpack.bat +6 -0
- data/demo/2-unpack.sh +5 -0
- data/demo/3-generate.bat +4 -0
- data/demo/3-generate.sh +5 -0
- data/demo/4-start-webapp-nosecurity.bat +4 -0
- data/demo/4-start-webapp-nosecurity.sh +4 -0
- data/demo/5-start-webapp.bat +7 -0
- data/demo/5-start-webapp.sh +4 -0
- data/demo/9-eclipse.bat +5 -0
- data/demo/9-eclipse.sh +6 -0
- data/demo/doc/images/_Ea8UYu6FEdyp6cGW4pi6rw.GIF +0 -0
- data/demo/doc/images/_XH8XYjuOEdyltIorAFYEcg.GIF +0 -0
- data/demo/doc/images/_o7gEAsg1Edy3YZbvY96G9w.GIF +0 -0
- data/demo/doc/images/_s1Mq8O6sEdyp6cGW4pi6rw.GIF +0 -0
- data/demo/domain/pom.xml +74 -0
- data/demo/domain/src/main/java/administration/ApplicationUser.java +649 -0
- data/demo/domain/src/main/java/administration/SecurityPanel.java +1408 -0
- data/demo/domain/src/main/java/demo1GSMNetwork/BaseTransceiverStation.java +570 -0
- data/demo/domain/src/main/java/demo2testModel/Client.java +1099 -0
- data/demo/domain/src/main/java/xmda/security/ProviderImpl.java +367 -0
- data/demo/ear/pom.xml +160 -0
- data/demo/mda/clean-generated.sh +24 -0
- data/demo/mda/pom.xml +181 -0
- data/demo/mda/src/main/mda/customDataTypes.rb +5 -0
- data/demo/mda/src/main/mda/dbDiscriminatorCache.rb +94 -0
- data/demo/mda/src/main/mda/mda.rb +0 -0
- data/demo/mda/src/main/model/.project +12 -0
- data/demo/mda/src/main/model/model.emx +3139 -0
- data/demo/mda/src/main/model/model.emx.nt +4608 -0
- data/demo/mda/src/main/model/model.emx.nt_kb.pprj +1768 -0
- data/demo/mda/src/main/model/model.emx.nt_kb.rdf +258 -0
- data/demo/mda/src/main/model/model.emx.nt_kb.rdfs +3345 -0
- data/demo/mda/src/main/profil-uml/.project +11 -0
- data/demo/mda/src/main/profil-uml/OntoMDE-profil.epx +615 -0
- data/demo/mda/src/main/resources/formatter.properties +260 -0
- data/demo/pom.xml +21 -0
- data/demo/projectbase/pom.xml +96 -0
- data/demo/webapp/pom.xml +125 -0
- data/lib/ontomde-demo-acegi.rb +1 -0
- metadata +109 -0
@@ -0,0 +1,1408 @@
|
|
1
|
+
package administration;
|
2
|
+
|
3
|
+
/*XMDA_BEGIN_reverse="yes"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w__imports"_*/
|
4
|
+
import javax.persistence.CascadeType;
|
5
|
+
import javax.persistence.DiscriminatorColumn;
|
6
|
+
import javax.persistence.DiscriminatorType;
|
7
|
+
import javax.persistence.DiscriminatorValue;
|
8
|
+
import javax.persistence.Entity;
|
9
|
+
import javax.persistence.FetchType;
|
10
|
+
import javax.persistence.GeneratedValue;
|
11
|
+
import javax.persistence.Id;
|
12
|
+
import javax.persistence.JoinColumn;
|
13
|
+
import javax.persistence.JoinTable;
|
14
|
+
import javax.persistence.OneToMany;
|
15
|
+
import javax.persistence.Table;
|
16
|
+
import javax.persistence.Version;
|
17
|
+
|
18
|
+
import administration.assignable.SecurityRoleAssignable;
|
19
|
+
|
20
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w__imports"_*/
|
21
|
+
/**
|
22
|
+
* @see <a href="../umldoc/_o7p2d8g1Edy3YZbvY96G9w-content.html">UML documentation.</a>
|
23
|
+
*/
|
24
|
+
|
25
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w__annotations"_*/
|
26
|
+
@Entity
|
27
|
+
@Table (name="SecurityPanel")
|
28
|
+
@DiscriminatorColumn(discriminatorType = DiscriminatorType.INTEGER)
|
29
|
+
@DiscriminatorValue(value = "35" )
|
30
|
+
|
31
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w__annotations"_*/
|
32
|
+
public class SecurityPanel
|
33
|
+
implements java.io.Serializable,xmda.jpa.XmdaEntity<Long>{
|
34
|
+
|
35
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w__custom_code"_*/
|
36
|
+
// ***********************************************
|
37
|
+
// This area is provided to insert special code
|
38
|
+
// that cannot be handled by generator.
|
39
|
+
// Please, don't use custom method to avoid
|
40
|
+
// keeping source models up to date.
|
41
|
+
// ***********************************************
|
42
|
+
|
43
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w__custom_code"_*/
|
44
|
+
|
45
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w__annotations"_*/
|
46
|
+
@OneToMany(fetch=FetchType.EAGER ,cascade=CascadeType.ALL) /*TPL:102*/
|
47
|
+
@JoinTable(
|
48
|
+
name="SecurityPanel_gestionGroup",
|
49
|
+
joinColumns={@JoinColumn( name="SecurityPanel_id")},
|
50
|
+
inverseJoinColumns={@JoinColumn(name="BusinessGroup_id")}
|
51
|
+
) /*TPL:116*/
|
52
|
+
|
53
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w__annotations"_*/
|
54
|
+
private java.util.Set<administration.BusinessGroup> gestionGroup= new java.util.HashSet<administration.BusinessGroup>();
|
55
|
+
|
56
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w__annotations"_*/
|
57
|
+
@OneToMany (mappedBy="owner",cascade=CascadeType.ALL) /*TPL:110*/
|
58
|
+
|
59
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w__annotations"_*/
|
60
|
+
private java.util.Set<administration.SecurityRole> gestionRoles= new java.util.HashSet<administration.SecurityRole>();
|
61
|
+
|
62
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w__annotations"_*/
|
63
|
+
@OneToMany (mappedBy="owner",cascade=CascadeType.ALL) /*TPL:110*/
|
64
|
+
|
65
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w__annotations"_*/
|
66
|
+
private java.util.Set<administration.SecureWebFilter> gestionSecureURLs= new java.util.HashSet<administration.SecureWebFilter>();
|
67
|
+
|
68
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w__annotations"_*/
|
69
|
+
@OneToMany (mappedBy="owner",cascade=CascadeType.ALL) /*TPL:110*/
|
70
|
+
|
71
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w__annotations"_*/
|
72
|
+
private java.util.Set<administration.ApplicationUser> gestionUser= new java.util.HashSet<administration.ApplicationUser>();
|
73
|
+
|
74
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w__annotations"_*/
|
75
|
+
@OneToMany (mappedBy="owner",cascade=CascadeType.ALL) /*TPL:110*/
|
76
|
+
|
77
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w__annotations"_*/
|
78
|
+
private java.util.Set<administration.SecureMethod> gestionsecureMethods= new java.util.HashSet<administration.SecureMethod>();
|
79
|
+
|
80
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id__annotations"_*/
|
81
|
+
@Id
|
82
|
+
@GeneratedValue
|
83
|
+
|
84
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id__annotations"_*/
|
85
|
+
private Long id;
|
86
|
+
|
87
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_version__annotations"_*/
|
88
|
+
@Version
|
89
|
+
@SuppressWarnings("unused")
|
90
|
+
|
91
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_version__annotations"_*/
|
92
|
+
private long objectVersion;
|
93
|
+
|
94
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ__annotations"_*/
|
95
|
+
@OneToMany (mappedBy="owner",cascade=CascadeType.ALL) /*TPL:110*/
|
96
|
+
|
97
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ__annotations"_*/
|
98
|
+
private java.util.Set<administration.SecureField> secureFields= new java.util.HashSet<administration.SecureField>();
|
99
|
+
|
100
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_serialVersionUID__annotations"_*/
|
101
|
+
|
102
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_serialVersionUID__annotations"_*/
|
103
|
+
private static final transient long serialVersionUID= 1L;
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
/**
|
110
|
+
* @param igestionGroup self-explanatory
|
111
|
+
*/
|
112
|
+
|
113
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_add__annotations"_*/
|
114
|
+
|
115
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_add__annotations"_*/
|
116
|
+
public void addGestionGroup(final administration.BusinessGroup igestionGroup){
|
117
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_add__0"_*/
|
118
|
+
/* TPL:0009b */
|
119
|
+
if(igestionGroup==null) { return; }
|
120
|
+
this.gestionGroup.add(igestionGroup);
|
121
|
+
|
122
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_add__0"_*/
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* @param igestionRoles self-explanatory
|
127
|
+
*/
|
128
|
+
|
129
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_add__annotations"_*/
|
130
|
+
|
131
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_add__annotations"_*/
|
132
|
+
public void addGestionRoles(final administration.SecurityRole igestionRoles){
|
133
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_add__0"_*/
|
134
|
+
/* TPL:0010 */
|
135
|
+
if(igestionRoles==null) { return; }
|
136
|
+
if(this.gestionRoles.add(igestionRoles)){
|
137
|
+
igestionRoles.setOwner(this);
|
138
|
+
}
|
139
|
+
|
140
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_add__0"_*/
|
141
|
+
}
|
142
|
+
|
143
|
+
/**
|
144
|
+
* @param igestionSecureURLs self-explanatory
|
145
|
+
*/
|
146
|
+
|
147
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_add__annotations"_*/
|
148
|
+
|
149
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_add__annotations"_*/
|
150
|
+
public void addGestionSecureURLs(final administration.SecureWebFilter igestionSecureURLs){
|
151
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_add__0"_*/
|
152
|
+
/* TPL:0010 */
|
153
|
+
if(igestionSecureURLs==null) { return; }
|
154
|
+
if(this.gestionSecureURLs.add(igestionSecureURLs)){
|
155
|
+
igestionSecureURLs.setOwner(this);
|
156
|
+
}
|
157
|
+
|
158
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_add__0"_*/
|
159
|
+
}
|
160
|
+
|
161
|
+
/**
|
162
|
+
* @param igestionUser self-explanatory
|
163
|
+
*/
|
164
|
+
|
165
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_add__annotations"_*/
|
166
|
+
|
167
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_add__annotations"_*/
|
168
|
+
public void addGestionUser(final administration.ApplicationUser igestionUser){
|
169
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_add__0"_*/
|
170
|
+
/* TPL:0010 */
|
171
|
+
if(igestionUser==null) { return; }
|
172
|
+
if(this.gestionUser.add(igestionUser)){
|
173
|
+
igestionUser.setOwner(this);
|
174
|
+
}
|
175
|
+
|
176
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_add__0"_*/
|
177
|
+
}
|
178
|
+
|
179
|
+
/**
|
180
|
+
* @param igestionsecureMethods self-explanatory
|
181
|
+
*/
|
182
|
+
|
183
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_add__annotations"_*/
|
184
|
+
|
185
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_add__annotations"_*/
|
186
|
+
public void addGestionsecureMethods(final administration.SecureMethod igestionsecureMethods){
|
187
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_add__0"_*/
|
188
|
+
/* TPL:0010 */
|
189
|
+
if(igestionsecureMethods==null) { return; }
|
190
|
+
if(this.gestionsecureMethods.add(igestionsecureMethods)){
|
191
|
+
igestionsecureMethods.setOwner(this);
|
192
|
+
}
|
193
|
+
|
194
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_add__0"_*/
|
195
|
+
}
|
196
|
+
|
197
|
+
/**
|
198
|
+
* @param isecureFields self-explanatory
|
199
|
+
*/
|
200
|
+
|
201
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_add__annotations"_*/
|
202
|
+
|
203
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_add__annotations"_*/
|
204
|
+
public void addSecureFields(final administration.SecureField isecureFields){
|
205
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_add__0"_*/
|
206
|
+
/* TPL:0010 */
|
207
|
+
if(isecureFields==null) { return; }
|
208
|
+
if(this.secureFields.add(isecureFields)){
|
209
|
+
isecureFields.setOwner(this);
|
210
|
+
}
|
211
|
+
|
212
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_add__0"_*/
|
213
|
+
}
|
214
|
+
|
215
|
+
/**
|
216
|
+
*/
|
217
|
+
|
218
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2h8g1Edy3YZbvY96G9w__annotations"_*/
|
219
|
+
|
220
|
+
/*XMDA_END_uri="ukb__o7p2h8g1Edy3YZbvY96G9w__annotations"_*/
|
221
|
+
public void autoGenerateStaticRoles(){
|
222
|
+
/*XMDA_BEGIN_reverse="yes"_uri="ukb__o7p2h8g1Edy3YZbvY96G9w__0"_*/
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
for (xmda.security.GlobalComputedAccessControlCriteria sRole : xmda.security.GlobalComputedAccessControlCriteria.values()) {
|
227
|
+
|
228
|
+
SecurityRole securityRole = this.createAndAddGestionRoles(SecurityRoleAssignable.administration_dot_SecurityRole);
|
229
|
+
securityRole.setRoleName(sRole.toString());
|
230
|
+
securityRole.setRequiredComputedAccessRight(sRole);
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
//TODO: replace this test code by real implementation
|
238
|
+
//log.error("test method called");
|
239
|
+
|
240
|
+
/*XMDA_END_uri="ukb__o7p2h8g1Edy3YZbvY96G9w__0"_*/
|
241
|
+
}
|
242
|
+
|
243
|
+
/**
|
244
|
+
* @return self-explanatory
|
245
|
+
* @param requestedType self-explanatory
|
246
|
+
*/
|
247
|
+
|
248
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionGroup__annotations"_*/
|
249
|
+
|
250
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionGroup__annotations"_*/
|
251
|
+
public administration.BusinessGroup createAndAddGestionGroup(final administration.assignable.BusinessGroupAssignable requestedType){
|
252
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionGroup__0"_*/
|
253
|
+
/* TPL:0020b */
|
254
|
+
if (requestedType==null) {
|
255
|
+
return null;
|
256
|
+
}
|
257
|
+
String qname=requestedType.name().replaceAll("_dot_",".");
|
258
|
+
try {
|
259
|
+
// c=this.getClass().getClassLoader().loadClass(requestedType.name());
|
260
|
+
Class<?> t = Class.forName(qname);
|
261
|
+
Class<?>[] p = new Class[0];
|
262
|
+
Object[]initArgs =new Object[0];
|
263
|
+
java.lang.reflect.Constructor<?> c=t.getConstructor(p);
|
264
|
+
administration.BusinessGroup ret=(administration.BusinessGroup)c.newInstance(initArgs);
|
265
|
+
addGestionGroup(ret);
|
266
|
+
return ret;
|
267
|
+
} catch (ClassNotFoundException e) {
|
268
|
+
e.printStackTrace();
|
269
|
+
throw new RuntimeException("Missing type "+qname,e);
|
270
|
+
} catch (NoSuchMethodException e) {
|
271
|
+
e.printStackTrace();
|
272
|
+
throw new RuntimeException("Missing default constructor for"+qname,e);
|
273
|
+
} catch (IllegalAccessException e) {
|
274
|
+
e.printStackTrace();
|
275
|
+
throw new RuntimeException("Illegal access Exception on "+qname,e);
|
276
|
+
} catch (InstantiationException e) {
|
277
|
+
e.printStackTrace();
|
278
|
+
throw new RuntimeException("Instantiation exception on "+qname,e);
|
279
|
+
} catch (java.lang.reflect.InvocationTargetException e) {
|
280
|
+
e.printStackTrace();
|
281
|
+
throw new RuntimeException("Invocation Target Exception on "+qname,e);
|
282
|
+
}
|
283
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionGroup__0"_*/
|
284
|
+
}
|
285
|
+
|
286
|
+
/**
|
287
|
+
* @return self-explanatory
|
288
|
+
* @param requestedType self-explanatory
|
289
|
+
*/
|
290
|
+
|
291
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionRoles__annotations"_*/
|
292
|
+
|
293
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionRoles__annotations"_*/
|
294
|
+
public administration.SecurityRole createAndAddGestionRoles(final administration.assignable.SecurityRoleAssignable requestedType){
|
295
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionRoles__0"_*/
|
296
|
+
/* TPL:0020b */
|
297
|
+
if (requestedType==null) {
|
298
|
+
return null;
|
299
|
+
}
|
300
|
+
String qname=requestedType.name().replaceAll("_dot_",".");
|
301
|
+
try {
|
302
|
+
// c=this.getClass().getClassLoader().loadClass(requestedType.name());
|
303
|
+
Class<?> t = Class.forName(qname);
|
304
|
+
Class<?>[] p = new Class[0];
|
305
|
+
Object[]initArgs =new Object[0];
|
306
|
+
java.lang.reflect.Constructor<?> c=t.getConstructor(p);
|
307
|
+
administration.SecurityRole ret=(administration.SecurityRole)c.newInstance(initArgs);
|
308
|
+
addGestionRoles(ret);
|
309
|
+
return ret;
|
310
|
+
} catch (ClassNotFoundException e) {
|
311
|
+
e.printStackTrace();
|
312
|
+
throw new RuntimeException("Missing type "+qname,e);
|
313
|
+
} catch (NoSuchMethodException e) {
|
314
|
+
e.printStackTrace();
|
315
|
+
throw new RuntimeException("Missing default constructor for"+qname,e);
|
316
|
+
} catch (IllegalAccessException e) {
|
317
|
+
e.printStackTrace();
|
318
|
+
throw new RuntimeException("Illegal access Exception on "+qname,e);
|
319
|
+
} catch (InstantiationException e) {
|
320
|
+
e.printStackTrace();
|
321
|
+
throw new RuntimeException("Instantiation exception on "+qname,e);
|
322
|
+
} catch (java.lang.reflect.InvocationTargetException e) {
|
323
|
+
e.printStackTrace();
|
324
|
+
throw new RuntimeException("Invocation Target Exception on "+qname,e);
|
325
|
+
}
|
326
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionRoles__0"_*/
|
327
|
+
}
|
328
|
+
|
329
|
+
/**
|
330
|
+
* @return self-explanatory
|
331
|
+
* @param requestedType self-explanatory
|
332
|
+
*/
|
333
|
+
|
334
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionSecureURLs__annotations"_*/
|
335
|
+
|
336
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionSecureURLs__annotations"_*/
|
337
|
+
public administration.SecureWebFilter createAndAddGestionSecureURLs(final administration.assignable.SecureWebFilterAssignable requestedType){
|
338
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionSecureURLs__0"_*/
|
339
|
+
/* TPL:0020b */
|
340
|
+
if (requestedType==null) {
|
341
|
+
return null;
|
342
|
+
}
|
343
|
+
String qname=requestedType.name().replaceAll("_dot_",".");
|
344
|
+
try {
|
345
|
+
// c=this.getClass().getClassLoader().loadClass(requestedType.name());
|
346
|
+
Class<?> t = Class.forName(qname);
|
347
|
+
Class<?>[] p = new Class[0];
|
348
|
+
Object[]initArgs =new Object[0];
|
349
|
+
java.lang.reflect.Constructor<?> c=t.getConstructor(p);
|
350
|
+
administration.SecureWebFilter ret=(administration.SecureWebFilter)c.newInstance(initArgs);
|
351
|
+
addGestionSecureURLs(ret);
|
352
|
+
return ret;
|
353
|
+
} catch (ClassNotFoundException e) {
|
354
|
+
e.printStackTrace();
|
355
|
+
throw new RuntimeException("Missing type "+qname,e);
|
356
|
+
} catch (NoSuchMethodException e) {
|
357
|
+
e.printStackTrace();
|
358
|
+
throw new RuntimeException("Missing default constructor for"+qname,e);
|
359
|
+
} catch (IllegalAccessException e) {
|
360
|
+
e.printStackTrace();
|
361
|
+
throw new RuntimeException("Illegal access Exception on "+qname,e);
|
362
|
+
} catch (InstantiationException e) {
|
363
|
+
e.printStackTrace();
|
364
|
+
throw new RuntimeException("Instantiation exception on "+qname,e);
|
365
|
+
} catch (java.lang.reflect.InvocationTargetException e) {
|
366
|
+
e.printStackTrace();
|
367
|
+
throw new RuntimeException("Invocation Target Exception on "+qname,e);
|
368
|
+
}
|
369
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionSecureURLs__0"_*/
|
370
|
+
}
|
371
|
+
|
372
|
+
/**
|
373
|
+
* @return self-explanatory
|
374
|
+
* @param requestedType self-explanatory
|
375
|
+
*/
|
376
|
+
|
377
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionUser__annotations"_*/
|
378
|
+
|
379
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionUser__annotations"_*/
|
380
|
+
public administration.ApplicationUser createAndAddGestionUser(final administration.assignable.ApplicationUserAssignable requestedType){
|
381
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionUser__0"_*/
|
382
|
+
/* TPL:0020b */
|
383
|
+
if (requestedType==null) {
|
384
|
+
return null;
|
385
|
+
}
|
386
|
+
String qname=requestedType.name().replaceAll("_dot_",".");
|
387
|
+
try {
|
388
|
+
// c=this.getClass().getClassLoader().loadClass(requestedType.name());
|
389
|
+
Class<?> t = Class.forName(qname);
|
390
|
+
Class<?>[] p = new Class[0];
|
391
|
+
Object[]initArgs =new Object[0];
|
392
|
+
java.lang.reflect.Constructor<?> c=t.getConstructor(p);
|
393
|
+
administration.ApplicationUser ret=(administration.ApplicationUser)c.newInstance(initArgs);
|
394
|
+
addGestionUser(ret);
|
395
|
+
return ret;
|
396
|
+
} catch (ClassNotFoundException e) {
|
397
|
+
e.printStackTrace();
|
398
|
+
throw new RuntimeException("Missing type "+qname,e);
|
399
|
+
} catch (NoSuchMethodException e) {
|
400
|
+
e.printStackTrace();
|
401
|
+
throw new RuntimeException("Missing default constructor for"+qname,e);
|
402
|
+
} catch (IllegalAccessException e) {
|
403
|
+
e.printStackTrace();
|
404
|
+
throw new RuntimeException("Illegal access Exception on "+qname,e);
|
405
|
+
} catch (InstantiationException e) {
|
406
|
+
e.printStackTrace();
|
407
|
+
throw new RuntimeException("Instantiation exception on "+qname,e);
|
408
|
+
} catch (java.lang.reflect.InvocationTargetException e) {
|
409
|
+
e.printStackTrace();
|
410
|
+
throw new RuntimeException("Invocation Target Exception on "+qname,e);
|
411
|
+
}
|
412
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionUser__0"_*/
|
413
|
+
}
|
414
|
+
|
415
|
+
/**
|
416
|
+
* @return self-explanatory
|
417
|
+
* @param requestedType self-explanatory
|
418
|
+
*/
|
419
|
+
|
420
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionsecureMethods__annotations"_*/
|
421
|
+
|
422
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionsecureMethods__annotations"_*/
|
423
|
+
public administration.SecureMethod createAndAddGestionsecureMethods(final administration.assignable.SecureMethodAssignable requestedType){
|
424
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionsecureMethods__0"_*/
|
425
|
+
/* TPL:0020b */
|
426
|
+
if (requestedType==null) {
|
427
|
+
return null;
|
428
|
+
}
|
429
|
+
String qname=requestedType.name().replaceAll("_dot_",".");
|
430
|
+
try {
|
431
|
+
// c=this.getClass().getClassLoader().loadClass(requestedType.name());
|
432
|
+
Class<?> t = Class.forName(qname);
|
433
|
+
Class<?>[] p = new Class[0];
|
434
|
+
Object[]initArgs =new Object[0];
|
435
|
+
java.lang.reflect.Constructor<?> c=t.getConstructor(p);
|
436
|
+
administration.SecureMethod ret=(administration.SecureMethod)c.newInstance(initArgs);
|
437
|
+
addGestionsecureMethods(ret);
|
438
|
+
return ret;
|
439
|
+
} catch (ClassNotFoundException e) {
|
440
|
+
e.printStackTrace();
|
441
|
+
throw new RuntimeException("Missing type "+qname,e);
|
442
|
+
} catch (NoSuchMethodException e) {
|
443
|
+
e.printStackTrace();
|
444
|
+
throw new RuntimeException("Missing default constructor for"+qname,e);
|
445
|
+
} catch (IllegalAccessException e) {
|
446
|
+
e.printStackTrace();
|
447
|
+
throw new RuntimeException("Illegal access Exception on "+qname,e);
|
448
|
+
} catch (InstantiationException e) {
|
449
|
+
e.printStackTrace();
|
450
|
+
throw new RuntimeException("Instantiation exception on "+qname,e);
|
451
|
+
} catch (java.lang.reflect.InvocationTargetException e) {
|
452
|
+
e.printStackTrace();
|
453
|
+
throw new RuntimeException("Invocation Target Exception on "+qname,e);
|
454
|
+
}
|
455
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddGestionsecureMethods__0"_*/
|
456
|
+
}
|
457
|
+
|
458
|
+
/**
|
459
|
+
* @return self-explanatory
|
460
|
+
* @param requestedType self-explanatory
|
461
|
+
*/
|
462
|
+
|
463
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddSecureFields__annotations"_*/
|
464
|
+
|
465
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddSecureFields__annotations"_*/
|
466
|
+
public administration.SecureField createAndAddSecureFields(final administration.assignable.SecureFieldAssignable requestedType){
|
467
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddSecureFields__0"_*/
|
468
|
+
/* TPL:0020b */
|
469
|
+
if (requestedType==null) {
|
470
|
+
return null;
|
471
|
+
}
|
472
|
+
String qname=requestedType.name().replaceAll("_dot_",".");
|
473
|
+
try {
|
474
|
+
// c=this.getClass().getClassLoader().loadClass(requestedType.name());
|
475
|
+
Class<?> t = Class.forName(qname);
|
476
|
+
Class<?>[] p = new Class[0];
|
477
|
+
Object[]initArgs =new Object[0];
|
478
|
+
java.lang.reflect.Constructor<?> c=t.getConstructor(p);
|
479
|
+
administration.SecureField ret=(administration.SecureField)c.newInstance(initArgs);
|
480
|
+
addSecureFields(ret);
|
481
|
+
return ret;
|
482
|
+
} catch (ClassNotFoundException e) {
|
483
|
+
e.printStackTrace();
|
484
|
+
throw new RuntimeException("Missing type "+qname,e);
|
485
|
+
} catch (NoSuchMethodException e) {
|
486
|
+
e.printStackTrace();
|
487
|
+
throw new RuntimeException("Missing default constructor for"+qname,e);
|
488
|
+
} catch (IllegalAccessException e) {
|
489
|
+
e.printStackTrace();
|
490
|
+
throw new RuntimeException("Illegal access Exception on "+qname,e);
|
491
|
+
} catch (InstantiationException e) {
|
492
|
+
e.printStackTrace();
|
493
|
+
throw new RuntimeException("Instantiation exception on "+qname,e);
|
494
|
+
} catch (java.lang.reflect.InvocationTargetException e) {
|
495
|
+
e.printStackTrace();
|
496
|
+
throw new RuntimeException("Invocation Target Exception on "+qname,e);
|
497
|
+
}
|
498
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_createAndAddSecureFields__0"_*/
|
499
|
+
}
|
500
|
+
|
501
|
+
/**
|
502
|
+
* @return self-explanatory
|
503
|
+
*/
|
504
|
+
|
505
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_create__annotations"_*/
|
506
|
+
|
507
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_create__annotations"_*/
|
508
|
+
public java.util.Set<administration.BusinessGroup> createGestionGroup(){
|
509
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_create__0"_*/
|
510
|
+
|
511
|
+
|
512
|
+
//TODO: replace this test code by real implementation
|
513
|
+
//log.error("test method called");
|
514
|
+
|
515
|
+
java.util.HashSet<administration.BusinessGroup> ret=new java.util.HashSet<administration.BusinessGroup>();
|
516
|
+
ret.addAll(administration.BusinessGroup.findAll((administration.BusinessGroup)null));
|
517
|
+
return ret;
|
518
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_create__0"_*/
|
519
|
+
}
|
520
|
+
|
521
|
+
/**
|
522
|
+
* @return self-explanatory
|
523
|
+
*/
|
524
|
+
|
525
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_create__annotations"_*/
|
526
|
+
|
527
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_create__annotations"_*/
|
528
|
+
public java.util.Set<administration.SecurityRole> createGestionRoles(){
|
529
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_create__0"_*/
|
530
|
+
|
531
|
+
|
532
|
+
//TODO: replace this test code by real implementation
|
533
|
+
//log.error("test method called");
|
534
|
+
|
535
|
+
java.util.HashSet<administration.SecurityRole> ret=new java.util.HashSet<administration.SecurityRole>();
|
536
|
+
ret.addAll(administration.SecurityRole.findAll((administration.SecurityRole)null));
|
537
|
+
return ret;
|
538
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_create__0"_*/
|
539
|
+
}
|
540
|
+
|
541
|
+
/**
|
542
|
+
* @return self-explanatory
|
543
|
+
*/
|
544
|
+
|
545
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_create__annotations"_*/
|
546
|
+
|
547
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_create__annotations"_*/
|
548
|
+
public java.util.Set<administration.SecureWebFilter> createGestionSecureURLs(){
|
549
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_create__0"_*/
|
550
|
+
|
551
|
+
|
552
|
+
//TODO: replace this test code by real implementation
|
553
|
+
//log.error("test method called");
|
554
|
+
|
555
|
+
java.util.HashSet<administration.SecureWebFilter> ret=new java.util.HashSet<administration.SecureWebFilter>();
|
556
|
+
ret.addAll(administration.SecureWebFilter.findAll((administration.SecureWebFilter)null));
|
557
|
+
return ret;
|
558
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_create__0"_*/
|
559
|
+
}
|
560
|
+
|
561
|
+
/**
|
562
|
+
* @return self-explanatory
|
563
|
+
*/
|
564
|
+
|
565
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_create__annotations"_*/
|
566
|
+
|
567
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_create__annotations"_*/
|
568
|
+
public java.util.Set<administration.ApplicationUser> createGestionUser(){
|
569
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_create__0"_*/
|
570
|
+
|
571
|
+
|
572
|
+
//TODO: replace this test code by real implementation
|
573
|
+
//log.error("test method called");
|
574
|
+
|
575
|
+
java.util.HashSet<administration.ApplicationUser> ret=new java.util.HashSet<administration.ApplicationUser>();
|
576
|
+
ret.addAll(administration.ApplicationUser.findAll((administration.ApplicationUser)null));
|
577
|
+
return ret;
|
578
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_create__0"_*/
|
579
|
+
}
|
580
|
+
|
581
|
+
/**
|
582
|
+
* @return self-explanatory
|
583
|
+
*/
|
584
|
+
|
585
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_create__annotations"_*/
|
586
|
+
|
587
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_create__annotations"_*/
|
588
|
+
public java.util.Set<administration.SecureMethod> createGestionsecureMethods(){
|
589
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_create__0"_*/
|
590
|
+
|
591
|
+
|
592
|
+
//TODO: replace this test code by real implementation
|
593
|
+
//log.error("test method called");
|
594
|
+
|
595
|
+
java.util.HashSet<administration.SecureMethod> ret=new java.util.HashSet<administration.SecureMethod>();
|
596
|
+
ret.addAll(administration.SecureMethod.findAll((administration.SecureMethod)null));
|
597
|
+
return ret;
|
598
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_create__0"_*/
|
599
|
+
}
|
600
|
+
|
601
|
+
/**
|
602
|
+
* @return self-explanatory
|
603
|
+
*/
|
604
|
+
|
605
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_create__annotations"_*/
|
606
|
+
|
607
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_create__annotations"_*/
|
608
|
+
public java.util.Set<administration.SecureField> createSecureFields(){
|
609
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_create__0"_*/
|
610
|
+
|
611
|
+
|
612
|
+
//TODO: replace this test code by real implementation
|
613
|
+
//log.error("test method called");
|
614
|
+
|
615
|
+
java.util.HashSet<administration.SecureField> ret=new java.util.HashSet<administration.SecureField>();
|
616
|
+
ret.addAll(administration.SecureField.findAll((administration.SecureField)null));
|
617
|
+
return ret;
|
618
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_create__0"_*/
|
619
|
+
}
|
620
|
+
|
621
|
+
/**
|
622
|
+
* @param primaryKey self-explanatory
|
623
|
+
* @return self-explanatory
|
624
|
+
*/
|
625
|
+
|
626
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_finderop__annotations"_*/
|
627
|
+
|
628
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_finderop__annotations"_*/
|
629
|
+
public static administration.SecurityPanel find(final long primaryKey){
|
630
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_finderop__0"_*/
|
631
|
+
return (administration.SecurityPanel)getEntityManager().find( administration.SecurityPanel.class, primaryKey);
|
632
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_finderop__0"_*/
|
633
|
+
}
|
634
|
+
|
635
|
+
/**
|
636
|
+
* @return self-explanatory
|
637
|
+
* @param nullCast self-explanatory
|
638
|
+
*/
|
639
|
+
|
640
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_findAll__annotations"_*/
|
641
|
+
@SuppressWarnings("unchecked")
|
642
|
+
|
643
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_findAll__annotations"_*/
|
644
|
+
public static java.util.List<administration.SecurityPanel> findAll(final administration.SecurityPanel nullCast){
|
645
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_findAll__0"_*/
|
646
|
+
return (java.util.List<administration.SecurityPanel>) getEntityManager().createQuery( "select Object(c) from SecurityPanel as c").getResultList();
|
647
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_findAll__0"_*/
|
648
|
+
}
|
649
|
+
|
650
|
+
/**
|
651
|
+
* @return self-explanatory
|
652
|
+
* @param user self-explanatory
|
653
|
+
*/
|
654
|
+
|
655
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_getComputedAccessControlGrant__annotations"_*/
|
656
|
+
|
657
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_getComputedAccessControlGrant__annotations"_*/
|
658
|
+
public java.util.Set<xmda.security.GlobalComputedAccessControlCriteria> getComputedAccessControlGrant(final org.acegisecurity.userdetails.UserDetails user){
|
659
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_getComputedAccessControlGrant__0"_*/
|
660
|
+
//return empty list (every static role are denied)
|
661
|
+
return new java.util.HashSet<xmda.security.GlobalComputedAccessControlCriteria>();
|
662
|
+
|
663
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_getComputedAccessControlGrant__0"_*/
|
664
|
+
}
|
665
|
+
|
666
|
+
/**
|
667
|
+
* @return self-explanatory
|
668
|
+
*/
|
669
|
+
|
670
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
671
|
+
|
672
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
673
|
+
public java.util.List<administration.assignable.BusinessGroupAssignable> getCreateAndAddGestionGroupSug(){
|
674
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
675
|
+
/* TPL:0002 */
|
676
|
+
java.util.ArrayList<administration.assignable.BusinessGroupAssignable> ret=new java.util.ArrayList<administration.assignable.BusinessGroupAssignable>();
|
677
|
+
/* TPL:0002i */
|
678
|
+
for(int i=java.lang.reflect.Array.getLength(administration.assignable.BusinessGroupAssignable.values())-1; i>=0 ; i--){
|
679
|
+
ret.add(administration.assignable.BusinessGroupAssignable.values()[i]);
|
680
|
+
}
|
681
|
+
return ret;
|
682
|
+
|
683
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
684
|
+
}
|
685
|
+
|
686
|
+
/**
|
687
|
+
* @return self-explanatory
|
688
|
+
*/
|
689
|
+
|
690
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
691
|
+
|
692
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
693
|
+
public java.util.List<administration.assignable.SecurityRoleAssignable> getCreateAndAddGestionRolesSug(){
|
694
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
695
|
+
/* TPL:0002 */
|
696
|
+
java.util.ArrayList<administration.assignable.SecurityRoleAssignable> ret=new java.util.ArrayList<administration.assignable.SecurityRoleAssignable>();
|
697
|
+
/* TPL:0002i */
|
698
|
+
for(int i=java.lang.reflect.Array.getLength(administration.assignable.SecurityRoleAssignable.values())-1; i>=0 ; i--){
|
699
|
+
ret.add(administration.assignable.SecurityRoleAssignable.values()[i]);
|
700
|
+
}
|
701
|
+
return ret;
|
702
|
+
|
703
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
704
|
+
}
|
705
|
+
|
706
|
+
/**
|
707
|
+
* @return self-explanatory
|
708
|
+
*/
|
709
|
+
|
710
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
711
|
+
|
712
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
713
|
+
public java.util.List<administration.assignable.SecureWebFilterAssignable> getCreateAndAddGestionSecureURLsSug(){
|
714
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
715
|
+
/* TPL:0002 */
|
716
|
+
java.util.ArrayList<administration.assignable.SecureWebFilterAssignable> ret=new java.util.ArrayList<administration.assignable.SecureWebFilterAssignable>();
|
717
|
+
/* TPL:0002i */
|
718
|
+
for(int i=java.lang.reflect.Array.getLength(administration.assignable.SecureWebFilterAssignable.values())-1; i>=0 ; i--){
|
719
|
+
ret.add(administration.assignable.SecureWebFilterAssignable.values()[i]);
|
720
|
+
}
|
721
|
+
return ret;
|
722
|
+
|
723
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
724
|
+
}
|
725
|
+
|
726
|
+
/**
|
727
|
+
* @return self-explanatory
|
728
|
+
*/
|
729
|
+
|
730
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
731
|
+
|
732
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
733
|
+
public java.util.List<administration.assignable.ApplicationUserAssignable> getCreateAndAddGestionUserSug(){
|
734
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
735
|
+
/* TPL:0002 */
|
736
|
+
java.util.ArrayList<administration.assignable.ApplicationUserAssignable> ret=new java.util.ArrayList<administration.assignable.ApplicationUserAssignable>();
|
737
|
+
/* TPL:0002i */
|
738
|
+
for(int i=java.lang.reflect.Array.getLength(administration.assignable.ApplicationUserAssignable.values())-1; i>=0 ; i--){
|
739
|
+
ret.add(administration.assignable.ApplicationUserAssignable.values()[i]);
|
740
|
+
}
|
741
|
+
return ret;
|
742
|
+
|
743
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
744
|
+
}
|
745
|
+
|
746
|
+
/**
|
747
|
+
* @return self-explanatory
|
748
|
+
*/
|
749
|
+
|
750
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
751
|
+
|
752
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_createAndAddSug__annotations"_*/
|
753
|
+
public java.util.List<administration.assignable.SecureMethodAssignable> getCreateAndAddGestionsecureMethodsSug(){
|
754
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
755
|
+
/* TPL:0002 */
|
756
|
+
java.util.ArrayList<administration.assignable.SecureMethodAssignable> ret=new java.util.ArrayList<administration.assignable.SecureMethodAssignable>();
|
757
|
+
/* TPL:0002i */
|
758
|
+
for(int i=java.lang.reflect.Array.getLength(administration.assignable.SecureMethodAssignable.values())-1; i>=0 ; i--){
|
759
|
+
ret.add(administration.assignable.SecureMethodAssignable.values()[i]);
|
760
|
+
}
|
761
|
+
return ret;
|
762
|
+
|
763
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_createAndAddSug__0"_*/
|
764
|
+
}
|
765
|
+
|
766
|
+
/**
|
767
|
+
* @return self-explanatory
|
768
|
+
*/
|
769
|
+
|
770
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_createAndAddSug__annotations"_*/
|
771
|
+
|
772
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_createAndAddSug__annotations"_*/
|
773
|
+
public java.util.List<administration.assignable.SecureFieldAssignable> getCreateAndAddSecureFieldsSug(){
|
774
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_createAndAddSug__0"_*/
|
775
|
+
/* TPL:0002 */
|
776
|
+
java.util.ArrayList<administration.assignable.SecureFieldAssignable> ret=new java.util.ArrayList<administration.assignable.SecureFieldAssignable>();
|
777
|
+
/* TPL:0002i */
|
778
|
+
for(int i=java.lang.reflect.Array.getLength(administration.assignable.SecureFieldAssignable.values())-1; i>=0 ; i--){
|
779
|
+
ret.add(administration.assignable.SecureFieldAssignable.values()[i]);
|
780
|
+
}
|
781
|
+
return ret;
|
782
|
+
|
783
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_createAndAddSug__0"_*/
|
784
|
+
}
|
785
|
+
|
786
|
+
/**
|
787
|
+
* @return self-explanatory
|
788
|
+
*/
|
789
|
+
|
790
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9wgetEntityManager__annotations"_*/
|
791
|
+
|
792
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9wgetEntityManager__annotations"_*/
|
793
|
+
public static javax.persistence.EntityManager getEntityManager(){
|
794
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9wgetEntityManager__0"_*/
|
795
|
+
return xmda.jpa.DbContext.getEntityManager();
|
796
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9wgetEntityManager__0"_*/
|
797
|
+
}
|
798
|
+
|
799
|
+
/**
|
800
|
+
* @return self-explanatory
|
801
|
+
*/
|
802
|
+
|
803
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_get__annotations"_*/
|
804
|
+
|
805
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_get__annotations"_*/
|
806
|
+
public java.util.Set<administration.BusinessGroup> getGestionGroup(){
|
807
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_get__0"_*/
|
808
|
+
|
809
|
+
if(gestionGroup!=null){ /* TPL:0013 */
|
810
|
+
return gestionGroup;
|
811
|
+
} else {
|
812
|
+
return new java.util.HashSet<administration.BusinessGroup>();
|
813
|
+
}
|
814
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_get__0"_*/
|
815
|
+
}
|
816
|
+
|
817
|
+
/**
|
818
|
+
* @return self-explanatory
|
819
|
+
*/
|
820
|
+
|
821
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_sug__annotations"_*/
|
822
|
+
|
823
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_sug__annotations"_*/
|
824
|
+
public java.util.List<administration.BusinessGroup> getGestionGroupSug(){
|
825
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_sug__0"_*/
|
826
|
+
|
827
|
+
/* TPL:0001jpa_many false */
|
828
|
+
java.util.List<administration.BusinessGroup> ret=administration.BusinessGroup.findAll((administration.BusinessGroup)null);
|
829
|
+
|
830
|
+
administration.BusinessGroup item=null;
|
831
|
+
java.util.Iterator<?> iter=getGestionGroup().iterator();
|
832
|
+
while(iter.hasNext()){
|
833
|
+
item=(administration.BusinessGroup) iter.next();
|
834
|
+
if(!ret.contains(item)) {
|
835
|
+
ret.add(item);
|
836
|
+
}
|
837
|
+
}
|
838
|
+
return ret;
|
839
|
+
|
840
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_sug__0"_*/
|
841
|
+
}
|
842
|
+
|
843
|
+
/**
|
844
|
+
* This property is part of a bi-navigable association {@link administration.SecurityRole#getOwner}<br/>
|
845
|
+
* @return self-explanatory
|
846
|
+
*/
|
847
|
+
|
848
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_get__annotations"_*/
|
849
|
+
|
850
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_get__annotations"_*/
|
851
|
+
public java.util.Set<administration.SecurityRole> getGestionRoles(){
|
852
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_get__0"_*/
|
853
|
+
|
854
|
+
if(gestionRoles!=null){ /* TPL:0013 */
|
855
|
+
return gestionRoles;
|
856
|
+
} else {
|
857
|
+
return new java.util.HashSet<administration.SecurityRole>();
|
858
|
+
}
|
859
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_get__0"_*/
|
860
|
+
}
|
861
|
+
|
862
|
+
/**
|
863
|
+
* @return self-explanatory
|
864
|
+
*/
|
865
|
+
|
866
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_sug__annotations"_*/
|
867
|
+
|
868
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_sug__annotations"_*/
|
869
|
+
public java.util.List<administration.SecurityRole> getGestionRolesSug(){
|
870
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_sug__0"_*/
|
871
|
+
|
872
|
+
/* TPL:0001jpa_many false */
|
873
|
+
java.util.List<administration.SecurityRole> ret=administration.SecurityRole.findAll((administration.SecurityRole)null);
|
874
|
+
|
875
|
+
administration.SecurityRole item=null;
|
876
|
+
java.util.Iterator<?> iter=getGestionRoles().iterator();
|
877
|
+
while(iter.hasNext()){
|
878
|
+
item=(administration.SecurityRole) iter.next();
|
879
|
+
if(!ret.contains(item)) {
|
880
|
+
ret.add(item);
|
881
|
+
}
|
882
|
+
}
|
883
|
+
return ret;
|
884
|
+
|
885
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_sug__0"_*/
|
886
|
+
}
|
887
|
+
|
888
|
+
/**
|
889
|
+
* This property is part of a bi-navigable association {@link administration.SecureWebFilter#getOwner}<br/>
|
890
|
+
* @return self-explanatory
|
891
|
+
*/
|
892
|
+
|
893
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_get__annotations"_*/
|
894
|
+
|
895
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_get__annotations"_*/
|
896
|
+
public java.util.Set<administration.SecureWebFilter> getGestionSecureURLs(){
|
897
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_get__0"_*/
|
898
|
+
|
899
|
+
if(gestionSecureURLs!=null){ /* TPL:0013 */
|
900
|
+
return gestionSecureURLs;
|
901
|
+
} else {
|
902
|
+
return new java.util.HashSet<administration.SecureWebFilter>();
|
903
|
+
}
|
904
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_get__0"_*/
|
905
|
+
}
|
906
|
+
|
907
|
+
/**
|
908
|
+
* @return self-explanatory
|
909
|
+
*/
|
910
|
+
|
911
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_sug__annotations"_*/
|
912
|
+
|
913
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_sug__annotations"_*/
|
914
|
+
public java.util.List<administration.SecureWebFilter> getGestionSecureURLsSug(){
|
915
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_sug__0"_*/
|
916
|
+
|
917
|
+
/* TPL:0001jpa_many false */
|
918
|
+
java.util.List<administration.SecureWebFilter> ret=administration.SecureWebFilter.findAll((administration.SecureWebFilter)null);
|
919
|
+
|
920
|
+
administration.SecureWebFilter item=null;
|
921
|
+
java.util.Iterator<?> iter=getGestionSecureURLs().iterator();
|
922
|
+
while(iter.hasNext()){
|
923
|
+
item=(administration.SecureWebFilter) iter.next();
|
924
|
+
if(!ret.contains(item)) {
|
925
|
+
ret.add(item);
|
926
|
+
}
|
927
|
+
}
|
928
|
+
return ret;
|
929
|
+
|
930
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_sug__0"_*/
|
931
|
+
}
|
932
|
+
|
933
|
+
/**
|
934
|
+
* This property is part of a bi-navigable association {@link administration.ApplicationUser#getOwner}<br/>
|
935
|
+
* @return self-explanatory
|
936
|
+
*/
|
937
|
+
|
938
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_get__annotations"_*/
|
939
|
+
|
940
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_get__annotations"_*/
|
941
|
+
public java.util.Set<administration.ApplicationUser> getGestionUser(){
|
942
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_get__0"_*/
|
943
|
+
|
944
|
+
if(gestionUser!=null){ /* TPL:0013 */
|
945
|
+
return gestionUser;
|
946
|
+
} else {
|
947
|
+
return new java.util.HashSet<administration.ApplicationUser>();
|
948
|
+
}
|
949
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_get__0"_*/
|
950
|
+
}
|
951
|
+
|
952
|
+
/**
|
953
|
+
* @return self-explanatory
|
954
|
+
*/
|
955
|
+
|
956
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_sug__annotations"_*/
|
957
|
+
|
958
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_sug__annotations"_*/
|
959
|
+
public java.util.List<administration.ApplicationUser> getGestionUserSug(){
|
960
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_sug__0"_*/
|
961
|
+
|
962
|
+
/* TPL:0001jpa_many false */
|
963
|
+
java.util.List<administration.ApplicationUser> ret=administration.ApplicationUser.findAll((administration.ApplicationUser)null);
|
964
|
+
|
965
|
+
administration.ApplicationUser item=null;
|
966
|
+
java.util.Iterator<?> iter=getGestionUser().iterator();
|
967
|
+
while(iter.hasNext()){
|
968
|
+
item=(administration.ApplicationUser) iter.next();
|
969
|
+
if(!ret.contains(item)) {
|
970
|
+
ret.add(item);
|
971
|
+
}
|
972
|
+
}
|
973
|
+
return ret;
|
974
|
+
|
975
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_sug__0"_*/
|
976
|
+
}
|
977
|
+
|
978
|
+
/**
|
979
|
+
* This property is part of a bi-navigable association {@link administration.SecureMethod#getOwner}<br/>
|
980
|
+
* @return self-explanatory
|
981
|
+
*/
|
982
|
+
|
983
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_get__annotations"_*/
|
984
|
+
|
985
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_get__annotations"_*/
|
986
|
+
public java.util.Set<administration.SecureMethod> getGestionsecureMethods(){
|
987
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_get__0"_*/
|
988
|
+
|
989
|
+
if(gestionsecureMethods!=null){ /* TPL:0013 */
|
990
|
+
return gestionsecureMethods;
|
991
|
+
} else {
|
992
|
+
return new java.util.HashSet<administration.SecureMethod>();
|
993
|
+
}
|
994
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_get__0"_*/
|
995
|
+
}
|
996
|
+
|
997
|
+
/**
|
998
|
+
* @return self-explanatory
|
999
|
+
*/
|
1000
|
+
|
1001
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_sug__annotations"_*/
|
1002
|
+
|
1003
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_sug__annotations"_*/
|
1004
|
+
public java.util.List<administration.SecureMethod> getGestionsecureMethodsSug(){
|
1005
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_sug__0"_*/
|
1006
|
+
|
1007
|
+
/* TPL:0001jpa_many false */
|
1008
|
+
java.util.List<administration.SecureMethod> ret=administration.SecureMethod.findAll((administration.SecureMethod)null);
|
1009
|
+
|
1010
|
+
administration.SecureMethod item=null;
|
1011
|
+
java.util.Iterator<?> iter=getGestionsecureMethods().iterator();
|
1012
|
+
while(iter.hasNext()){
|
1013
|
+
item=(administration.SecureMethod) iter.next();
|
1014
|
+
if(!ret.contains(item)) {
|
1015
|
+
ret.add(item);
|
1016
|
+
}
|
1017
|
+
}
|
1018
|
+
return ret;
|
1019
|
+
|
1020
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_sug__0"_*/
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
/**
|
1024
|
+
* @return self-explanatory
|
1025
|
+
*/
|
1026
|
+
|
1027
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_get__annotations"_*/
|
1028
|
+
|
1029
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_get__annotations"_*/
|
1030
|
+
public Long getId(){
|
1031
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_get__0"_*/
|
1032
|
+
if(id == null) { return Long.valueOf(0);} else {return id;}
|
1033
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_get__0"_*/
|
1034
|
+
}
|
1035
|
+
|
1036
|
+
/**
|
1037
|
+
* This property is part of a bi-navigable association {@link administration.SecureField#getOwner}<br/>
|
1038
|
+
* @return self-explanatory
|
1039
|
+
*/
|
1040
|
+
|
1041
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_get__annotations"_*/
|
1042
|
+
|
1043
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_get__annotations"_*/
|
1044
|
+
public java.util.Set<administration.SecureField> getSecureFields(){
|
1045
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_get__0"_*/
|
1046
|
+
|
1047
|
+
if(secureFields!=null){ /* TPL:0013 */
|
1048
|
+
return secureFields;
|
1049
|
+
} else {
|
1050
|
+
return new java.util.HashSet<administration.SecureField>();
|
1051
|
+
}
|
1052
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_get__0"_*/
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
/**
|
1056
|
+
* @return self-explanatory
|
1057
|
+
*/
|
1058
|
+
|
1059
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_sug__annotations"_*/
|
1060
|
+
|
1061
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_sug__annotations"_*/
|
1062
|
+
public java.util.List<administration.SecureField> getSecureFieldsSug(){
|
1063
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_sug__0"_*/
|
1064
|
+
|
1065
|
+
/* TPL:0001jpa_many false */
|
1066
|
+
java.util.List<administration.SecureField> ret=administration.SecureField.findAll((administration.SecureField)null);
|
1067
|
+
|
1068
|
+
administration.SecureField item=null;
|
1069
|
+
java.util.Iterator<?> iter=getSecureFields().iterator();
|
1070
|
+
while(iter.hasNext()){
|
1071
|
+
item=(administration.SecureField) iter.next();
|
1072
|
+
if(!ret.contains(item)) {
|
1073
|
+
ret.add(item);
|
1074
|
+
}
|
1075
|
+
}
|
1076
|
+
return ret;
|
1077
|
+
|
1078
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_sug__0"_*/
|
1079
|
+
}
|
1080
|
+
|
1081
|
+
/**
|
1082
|
+
*/
|
1083
|
+
|
1084
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__Ye0e4OCOEdy7EuKzeDwiog__annotations"_*/
|
1085
|
+
|
1086
|
+
/*XMDA_END_uri="ukb__Ye0e4OCOEdy7EuKzeDwiog__annotations"_*/
|
1087
|
+
public void loadSecurityConfig(){
|
1088
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__Ye0e4OCOEdy7EuKzeDwiog__0"_*/
|
1089
|
+
|
1090
|
+
//TODO: replace this test code by real implementation
|
1091
|
+
//log.error("test method called");
|
1092
|
+
|
1093
|
+
/*XMDA_END_uri="ukb__Ye0e4OCOEdy7EuKzeDwiog__0"_*/
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
/**
|
1097
|
+
* @return self-explanatory
|
1098
|
+
*/
|
1099
|
+
|
1100
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_merge__annotations"_*/
|
1101
|
+
|
1102
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_merge__annotations"_*/
|
1103
|
+
public administration.SecurityPanel merge(){
|
1104
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_merge__0"_*/
|
1105
|
+
return (administration.SecurityPanel)getEntityManager().merge(this);
|
1106
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_merge__0"_*/
|
1107
|
+
}
|
1108
|
+
|
1109
|
+
/**
|
1110
|
+
*/
|
1111
|
+
|
1112
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_persist__annotations"_*/
|
1113
|
+
|
1114
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_persist__annotations"_*/
|
1115
|
+
public void persist(){
|
1116
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_persist__0"_*/
|
1117
|
+
getEntityManager().persist(this);
|
1118
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_persist__0"_*/
|
1119
|
+
}
|
1120
|
+
|
1121
|
+
/**
|
1122
|
+
*/
|
1123
|
+
|
1124
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_remove__annotations"_*/
|
1125
|
+
|
1126
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_remove__annotations"_*/
|
1127
|
+
public void remove(){
|
1128
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_remove__0"_*/
|
1129
|
+
getEntityManager().remove(this);
|
1130
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_remove__0"_*/
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
/**
|
1134
|
+
* @param igestionGroup self-explanatory
|
1135
|
+
*/
|
1136
|
+
|
1137
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1138
|
+
|
1139
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1140
|
+
public void removeGestionGroup(final administration.BusinessGroup igestionGroup){
|
1141
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_remove__0"_*/
|
1142
|
+
/* TPL:0003 */
|
1143
|
+
this.gestionGroup.remove(igestionGroup);
|
1144
|
+
|
1145
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_remove__0"_*/
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
/**
|
1149
|
+
* @param igestionRoles self-explanatory
|
1150
|
+
*/
|
1151
|
+
|
1152
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_remove__annotations"_*/
|
1153
|
+
|
1154
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_remove__annotations"_*/
|
1155
|
+
public void removeGestionRoles(final administration.SecurityRole igestionRoles){
|
1156
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_remove__0"_*/
|
1157
|
+
/* TPL:0004 */
|
1158
|
+
|
1159
|
+
if(this.gestionRoles.remove(igestionRoles)) {
|
1160
|
+
igestionRoles.setOwner(null);
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_remove__0"_*/
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
/**
|
1167
|
+
* @param igestionSecureURLs self-explanatory
|
1168
|
+
*/
|
1169
|
+
|
1170
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1171
|
+
|
1172
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1173
|
+
public void removeGestionSecureURLs(final administration.SecureWebFilter igestionSecureURLs){
|
1174
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_remove__0"_*/
|
1175
|
+
/* TPL:0004 */
|
1176
|
+
|
1177
|
+
if(this.gestionSecureURLs.remove(igestionSecureURLs)) {
|
1178
|
+
igestionSecureURLs.setOwner(null);
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_remove__0"_*/
|
1182
|
+
}
|
1183
|
+
|
1184
|
+
/**
|
1185
|
+
* @param igestionUser self-explanatory
|
1186
|
+
*/
|
1187
|
+
|
1188
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1189
|
+
|
1190
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1191
|
+
public void removeGestionUser(final administration.ApplicationUser igestionUser){
|
1192
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_remove__0"_*/
|
1193
|
+
/* TPL:0004 */
|
1194
|
+
|
1195
|
+
if(this.gestionUser.remove(igestionUser)) {
|
1196
|
+
igestionUser.setOwner(null);
|
1197
|
+
}
|
1198
|
+
|
1199
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_remove__0"_*/
|
1200
|
+
}
|
1201
|
+
|
1202
|
+
/**
|
1203
|
+
* @param igestionsecureMethods self-explanatory
|
1204
|
+
*/
|
1205
|
+
|
1206
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1207
|
+
|
1208
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_remove__annotations"_*/
|
1209
|
+
public void removeGestionsecureMethods(final administration.SecureMethod igestionsecureMethods){
|
1210
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_remove__0"_*/
|
1211
|
+
/* TPL:0004 */
|
1212
|
+
|
1213
|
+
if(this.gestionsecureMethods.remove(igestionsecureMethods)) {
|
1214
|
+
igestionsecureMethods.setOwner(null);
|
1215
|
+
}
|
1216
|
+
|
1217
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_remove__0"_*/
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
/**
|
1221
|
+
* @param isecureFields self-explanatory
|
1222
|
+
*/
|
1223
|
+
|
1224
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_remove__annotations"_*/
|
1225
|
+
|
1226
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_remove__annotations"_*/
|
1227
|
+
public void removeSecureFields(final administration.SecureField isecureFields){
|
1228
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_remove__0"_*/
|
1229
|
+
/* TPL:0004 */
|
1230
|
+
|
1231
|
+
if(this.secureFields.remove(isecureFields)) {
|
1232
|
+
isecureFields.setOwner(null);
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_remove__0"_*/
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
/**
|
1239
|
+
* @param igestionGroup self-explanatory
|
1240
|
+
* @see administration.SecurityPanel#getGestionGroup
|
1241
|
+
*/
|
1242
|
+
|
1243
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_set__annotations"_*/
|
1244
|
+
|
1245
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_set__annotations"_*/
|
1246
|
+
public void setGestionGroup(final java.util.Set<administration.BusinessGroup> igestionGroup){
|
1247
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_set__0"_*/
|
1248
|
+
this.gestionGroup=igestionGroup; /* TPL:0014d*/
|
1249
|
+
/*XMDA_END_uri="ukb__o7p2hMg1Edy3YZbvY96G9w_set__0"_*/
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
/**
|
1253
|
+
* @param igestionRoles self-explanatory
|
1254
|
+
* @see administration.SecurityPanel#getGestionRoles
|
1255
|
+
*/
|
1256
|
+
|
1257
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_set__annotations"_*/
|
1258
|
+
|
1259
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_set__annotations"_*/
|
1260
|
+
public void setGestionRoles(final java.util.Set<administration.SecurityRole> igestionRoles){
|
1261
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_set__0"_*/
|
1262
|
+
/* TPL:0017 */
|
1263
|
+
java.util.Set<administration.SecurityRole> toBeRemoved=new java.util.HashSet<administration.SecurityRole>();
|
1264
|
+
for(administration.SecurityRole item:gestionRoles) {
|
1265
|
+
if(igestionRoles!=null && igestionRoles.contains(item)) { continue;}
|
1266
|
+
toBeRemoved.add(item);
|
1267
|
+
}
|
1268
|
+
for(administration.SecurityRole item:toBeRemoved) {
|
1269
|
+
this.removeGestionRoles(item);
|
1270
|
+
}
|
1271
|
+
if(igestionRoles==null) { return ; }
|
1272
|
+
for(administration.SecurityRole item:igestionRoles) {
|
1273
|
+
this.addGestionRoles(item);
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
/*XMDA_END_uri="ukb__o7p2e8g1Edy3YZbvY96G9w_set__0"_*/
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
/**
|
1280
|
+
* @param igestionSecureURLs self-explanatory
|
1281
|
+
* @see administration.SecurityPanel#getGestionSecureURLs
|
1282
|
+
*/
|
1283
|
+
|
1284
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_set__annotations"_*/
|
1285
|
+
|
1286
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_set__annotations"_*/
|
1287
|
+
public void setGestionSecureURLs(final java.util.Set<administration.SecureWebFilter> igestionSecureURLs){
|
1288
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_set__0"_*/
|
1289
|
+
/* TPL:0017 */
|
1290
|
+
java.util.Set<administration.SecureWebFilter> toBeRemoved=new java.util.HashSet<administration.SecureWebFilter>();
|
1291
|
+
for(administration.SecureWebFilter item:gestionSecureURLs) {
|
1292
|
+
if(igestionSecureURLs!=null && igestionSecureURLs.contains(item)) { continue;}
|
1293
|
+
toBeRemoved.add(item);
|
1294
|
+
}
|
1295
|
+
for(administration.SecureWebFilter item:toBeRemoved) {
|
1296
|
+
this.removeGestionSecureURLs(item);
|
1297
|
+
}
|
1298
|
+
if(igestionSecureURLs==null) { return ; }
|
1299
|
+
for(administration.SecureWebFilter item:igestionSecureURLs) {
|
1300
|
+
this.addGestionSecureURLs(item);
|
1301
|
+
}
|
1302
|
+
|
1303
|
+
/*XMDA_END_uri="ukb__o7p2fsg1Edy3YZbvY96G9w_set__0"_*/
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
/**
|
1307
|
+
* @param igestionUser self-explanatory
|
1308
|
+
* @see administration.SecurityPanel#getGestionUser
|
1309
|
+
*/
|
1310
|
+
|
1311
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_set__annotations"_*/
|
1312
|
+
|
1313
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_set__annotations"_*/
|
1314
|
+
public void setGestionUser(final java.util.Set<administration.ApplicationUser> igestionUser){
|
1315
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_set__0"_*/
|
1316
|
+
/* TPL:0017 */
|
1317
|
+
java.util.Set<administration.ApplicationUser> toBeRemoved=new java.util.HashSet<administration.ApplicationUser>();
|
1318
|
+
for(administration.ApplicationUser item:gestionUser) {
|
1319
|
+
if(igestionUser!=null && igestionUser.contains(item)) { continue;}
|
1320
|
+
toBeRemoved.add(item);
|
1321
|
+
}
|
1322
|
+
for(administration.ApplicationUser item:toBeRemoved) {
|
1323
|
+
this.removeGestionUser(item);
|
1324
|
+
}
|
1325
|
+
if(igestionUser==null) { return ; }
|
1326
|
+
for(administration.ApplicationUser item:igestionUser) {
|
1327
|
+
this.addGestionUser(item);
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
/*XMDA_END_uri="ukb__o7p2eMg1Edy3YZbvY96G9w_set__0"_*/
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
/**
|
1334
|
+
* @param igestionsecureMethods self-explanatory
|
1335
|
+
* @see administration.SecurityPanel#getGestionsecureMethods
|
1336
|
+
*/
|
1337
|
+
|
1338
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_set__annotations"_*/
|
1339
|
+
|
1340
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_set__annotations"_*/
|
1341
|
+
public void setGestionsecureMethods(final java.util.Set<administration.SecureMethod> igestionsecureMethods){
|
1342
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_set__0"_*/
|
1343
|
+
/* TPL:0017 */
|
1344
|
+
java.util.Set<administration.SecureMethod> toBeRemoved=new java.util.HashSet<administration.SecureMethod>();
|
1345
|
+
for(administration.SecureMethod item:gestionsecureMethods) {
|
1346
|
+
if(igestionsecureMethods!=null && igestionsecureMethods.contains(item)) { continue;}
|
1347
|
+
toBeRemoved.add(item);
|
1348
|
+
}
|
1349
|
+
for(administration.SecureMethod item:toBeRemoved) {
|
1350
|
+
this.removeGestionsecureMethods(item);
|
1351
|
+
}
|
1352
|
+
if(igestionsecureMethods==null) { return ; }
|
1353
|
+
for(administration.SecureMethod item:igestionsecureMethods) {
|
1354
|
+
this.addGestionsecureMethods(item);
|
1355
|
+
}
|
1356
|
+
|
1357
|
+
/*XMDA_END_uri="ukb__o7p2gcg1Edy3YZbvY96G9w_set__0"_*/
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
/**
|
1361
|
+
* @param iid self-explanatory
|
1362
|
+
* @see administration.SecurityPanel#getId
|
1363
|
+
*/
|
1364
|
+
|
1365
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_set__annotations"_*/
|
1366
|
+
|
1367
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_set__annotations"_*/
|
1368
|
+
public void setId(final Long iid){
|
1369
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_set__0"_*/
|
1370
|
+
this.id=iid; /* TPL:0014d*/
|
1371
|
+
/*XMDA_END_uri="ukb__o7p2d8g1Edy3YZbvY96G9w_auto_id_set__0"_*/
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
/**
|
1375
|
+
* @param isecureFields self-explanatory
|
1376
|
+
* @see administration.SecurityPanel#getSecureFields
|
1377
|
+
*/
|
1378
|
+
|
1379
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_set__annotations"_*/
|
1380
|
+
|
1381
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_set__annotations"_*/
|
1382
|
+
public void setSecureFields(final java.util.Set<administration.SecureField> isecureFields){
|
1383
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LZYuke7EEdyP442wD0PCHQ_set__0"_*/
|
1384
|
+
/* TPL:0017 */
|
1385
|
+
java.util.Set<administration.SecureField> toBeRemoved=new java.util.HashSet<administration.SecureField>();
|
1386
|
+
for(administration.SecureField item:secureFields) {
|
1387
|
+
if(isecureFields!=null && isecureFields.contains(item)) { continue;}
|
1388
|
+
toBeRemoved.add(item);
|
1389
|
+
}
|
1390
|
+
for(administration.SecureField item:toBeRemoved) {
|
1391
|
+
this.removeSecureFields(item);
|
1392
|
+
}
|
1393
|
+
if(isecureFields==null) { return ; }
|
1394
|
+
for(administration.SecureField item:isecureFields) {
|
1395
|
+
this.addSecureFields(item);
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
/*XMDA_END_uri="ukb__LZYuke7EEdyP442wD0PCHQ_set__0"_*/
|
1399
|
+
}
|
1400
|
+
}
|
1401
|
+
//**********************************************************************
|
1402
|
+
//** This file is in REVERSE MODE. Text between tags will be saved
|
1403
|
+
//** upon next generation if reverse="yes"
|
1404
|
+
//** Element between tags are not stored in model, so this file should
|
1405
|
+
//** manage in a version management tool.
|
1406
|
+
//**********************************************************************
|
1407
|
+
//** Generated with ontoMDE (ORANGE-FT/RD/BIZZ/CIL/SAM 2006-2007)
|
1408
|
+
//**********************************************************************
|