/
Soggetto.java
472 lines (380 loc) · 14.7 KB
/
Soggetto.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
/*
* GovWay - A customizable API Gateway
* https://govway.org
*
* Copyright (c) 2005-2023 Link.it srl (https://link.it).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3, as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.openspcoop2.core.registry;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.openspcoop2.core.id.IDSoggetto;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/** <p>Java class for soggetto complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="soggetto">
* <sequence>
* <element name="connettore" type="{http://www.openspcoop2.org/core/registry}connettore" minOccurs="0" maxOccurs="1"/>
* <element name="proprieta" type="{http://www.openspcoop2.org/core/registry}proprieta" minOccurs="0" maxOccurs="unbounded"/>
* <element name="protocol-property" type="{http://www.openspcoop2.org/core/registry}protocol-property" minOccurs="0" maxOccurs="unbounded"/>
* <element name="credenziali" type="{http://www.openspcoop2.org/core/registry}credenziali-soggetto" minOccurs="0" maxOccurs="unbounded"/>
* <element name="ruoli" type="{http://www.openspcoop2.org/core/registry}ruoli-soggetto" minOccurs="0" maxOccurs="1"/>
* <element name="accordo-servizio-parte-specifica" type="{http://www.openspcoop2.org/core/registry}accordo-servizio-parte-specifica" minOccurs="0" maxOccurs="unbounded"/>
* <element name="proprieta-oggetto" type="{http://www.openspcoop2.org/core/registry}proprieta-oggetto" minOccurs="0" maxOccurs="1"/>
* </sequence>
* <attribute name="super-user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/>
* <attribute name="privato" type="{http://www.w3.org/2001/XMLSchema}string" use="optional" default="false"/>
* <attribute name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/>
* <attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/>
* <attribute name="identificativo-porta" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/>
* <attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/>
* <attribute name="porta-dominio" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/>
* <attribute name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" use="optional"/>
* <attribute name="versione-protocollo" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/>
* <attribute name="codice-ipa" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/>
* </complexType>
* </pre>
*
* @version $Rev$, $Date$
*
* @author Poli Andrea (poli@link.it)
* @author $Author$
* */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "soggetto",
propOrder = {
"connettore",
"proprieta",
"protocolProperty",
"credenziali",
"ruoli",
"accordoServizioParteSpecifica",
"proprietaOggetto"
}
)
@XmlRootElement(name = "soggetto")
public class Soggetto extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
public Soggetto() {
super();
}
public IDSoggetto getOldIDSoggettoForUpdate() {
return this.oldIDSoggettoForUpdate;
}
public void setOldIDSoggettoForUpdate(IDSoggetto oldIDSoggettoForUpdate) {
this.oldIDSoggettoForUpdate=oldIDSoggettoForUpdate;
}
public Connettore getConnettore() {
return this.connettore;
}
public void setConnettore(Connettore connettore) {
this.connettore = connettore;
}
public void addProprieta(Proprieta proprieta) {
this.proprieta.add(proprieta);
}
public Proprieta getProprieta(int index) {
return this.proprieta.get( index );
}
public Proprieta removeProprieta(int index) {
return this.proprieta.remove( index );
}
public List<Proprieta> getProprietaList() {
return this.proprieta;
}
public void setProprietaList(List<Proprieta> proprieta) {
this.proprieta=proprieta;
}
public int sizeProprietaList() {
return this.proprieta.size();
}
public void addProtocolProperty(ProtocolProperty protocolProperty) {
this.protocolProperty.add(protocolProperty);
}
public ProtocolProperty getProtocolProperty(int index) {
return this.protocolProperty.get( index );
}
public ProtocolProperty removeProtocolProperty(int index) {
return this.protocolProperty.remove( index );
}
public List<ProtocolProperty> getProtocolPropertyList() {
return this.protocolProperty;
}
public void setProtocolPropertyList(List<ProtocolProperty> protocolProperty) {
this.protocolProperty=protocolProperty;
}
public int sizeProtocolPropertyList() {
return this.protocolProperty.size();
}
public void addCredenziali(CredenzialiSoggetto credenziali) {
this.credenziali.add(credenziali);
}
public CredenzialiSoggetto getCredenziali(int index) {
return this.credenziali.get( index );
}
public CredenzialiSoggetto removeCredenziali(int index) {
return this.credenziali.remove( index );
}
public List<CredenzialiSoggetto> getCredenzialiList() {
return this.credenziali;
}
public void setCredenzialiList(List<CredenzialiSoggetto> credenziali) {
this.credenziali=credenziali;
}
public int sizeCredenzialiList() {
return this.credenziali.size();
}
public RuoliSoggetto getRuoli() {
return this.ruoli;
}
public void setRuoli(RuoliSoggetto ruoli) {
this.ruoli = ruoli;
}
public void addAccordoServizioParteSpecifica(AccordoServizioParteSpecifica accordoServizioParteSpecifica) {
this.accordoServizioParteSpecifica.add(accordoServizioParteSpecifica);
}
public AccordoServizioParteSpecifica getAccordoServizioParteSpecifica(int index) {
return this.accordoServizioParteSpecifica.get( index );
}
public AccordoServizioParteSpecifica removeAccordoServizioParteSpecifica(int index) {
return this.accordoServizioParteSpecifica.remove( index );
}
public List<AccordoServizioParteSpecifica> getAccordoServizioParteSpecificaList() {
return this.accordoServizioParteSpecifica;
}
public void setAccordoServizioParteSpecificaList(List<AccordoServizioParteSpecifica> accordoServizioParteSpecifica) {
this.accordoServizioParteSpecifica=accordoServizioParteSpecifica;
}
public int sizeAccordoServizioParteSpecificaList() {
return this.accordoServizioParteSpecifica.size();
}
public ProprietaOggetto getProprietaOggetto() {
return this.proprietaOggetto;
}
public void setProprietaOggetto(ProprietaOggetto proprietaOggetto) {
this.proprietaOggetto = proprietaOggetto;
}
public java.lang.String getSuperUser() {
return this.superUser;
}
public void setSuperUser(java.lang.String superUser) {
this.superUser = superUser;
}
public Boolean getPrivato() {
return this.privato;
}
public void setPrivato(Boolean privato) {
this.privato = privato;
}
public java.lang.String getTipo() {
return this.tipo;
}
public void setTipo(java.lang.String tipo) {
this.tipo = tipo;
}
public java.lang.String getNome() {
return this.nome;
}
public void setNome(java.lang.String nome) {
this.nome = nome;
}
public java.lang.String getIdentificativoPorta() {
return this.identificativoPorta;
}
public void setIdentificativoPorta(java.lang.String identificativoPorta) {
this.identificativoPorta = identificativoPorta;
}
public java.lang.String getDescrizione() {
return this.descrizione;
}
public void setDescrizione(java.lang.String descrizione) {
this.descrizione = descrizione;
}
public java.lang.String getPortaDominio() {
return this.portaDominio;
}
public void setPortaDominio(java.lang.String portaDominio) {
this.portaDominio = portaDominio;
}
public java.util.Date getOraRegistrazione() {
return this.oraRegistrazione;
}
public void setOraRegistrazione(java.util.Date oraRegistrazione) {
this.oraRegistrazione = oraRegistrazione;
}
public java.lang.String getVersioneProtocollo() {
return this.versioneProtocollo;
}
public void setVersioneProtocollo(java.lang.String versioneProtocollo) {
this.versioneProtocollo = versioneProtocollo;
}
public java.lang.String getCodiceIpa() {
return this.codiceIpa;
}
public void setCodiceIpa(java.lang.String codiceIpa) {
this.codiceIpa = codiceIpa;
}
private static final long serialVersionUID = 1L;
private static org.openspcoop2.core.registry.model.SoggettoModel modelStaticInstance = null;
private static synchronized void initModelStaticInstance(){
if(org.openspcoop2.core.registry.Soggetto.modelStaticInstance==null){
org.openspcoop2.core.registry.Soggetto.modelStaticInstance = new org.openspcoop2.core.registry.model.SoggettoModel();
}
}
public static org.openspcoop2.core.registry.model.SoggettoModel model(){
if(org.openspcoop2.core.registry.Soggetto.modelStaticInstance==null){
initModelStaticInstance();
}
return org.openspcoop2.core.registry.Soggetto.modelStaticInstance;
}
@javax.xml.bind.annotation.XmlTransient
protected IDSoggetto oldIDSoggettoForUpdate;
@XmlElement(name="connettore",required=false,nillable=false)
protected Connettore connettore;
@XmlElement(name="proprieta",required=true,nillable=false)
private List<Proprieta> proprieta = new ArrayList<>();
/**
* Use method getProprietaList
* @return List<Proprieta>
*/
public List<Proprieta> getProprieta() {
return this.getProprietaList();
}
/**
* Use method setProprietaList
* @param proprieta List<Proprieta>
*/
public void setProprieta(List<Proprieta> proprieta) {
this.setProprietaList(proprieta);
}
/**
* Use method sizeProprietaList
* @return lunghezza della lista
*/
public int sizeProprieta() {
return this.sizeProprietaList();
}
@XmlElement(name="protocol-property",required=true,nillable=false)
private List<ProtocolProperty> protocolProperty = new ArrayList<>();
/**
* Use method getProtocolPropertyList
* @return List<ProtocolProperty>
*/
public List<ProtocolProperty> getProtocolProperty() {
return this.getProtocolPropertyList();
}
/**
* Use method setProtocolPropertyList
* @param protocolProperty List<ProtocolProperty>
*/
public void setProtocolProperty(List<ProtocolProperty> protocolProperty) {
this.setProtocolPropertyList(protocolProperty);
}
/**
* Use method sizeProtocolPropertyList
* @return lunghezza della lista
*/
public int sizeProtocolProperty() {
return this.sizeProtocolPropertyList();
}
@XmlElement(name="credenziali",required=true,nillable=false)
private List<CredenzialiSoggetto> credenziali = new ArrayList<>();
/**
* Use method getCredenzialiList
* @return List<CredenzialiSoggetto>
*/
public List<CredenzialiSoggetto> getCredenziali() {
return this.getCredenzialiList();
}
/**
* Use method setCredenzialiList
* @param credenziali List<CredenzialiSoggetto>
*/
public void setCredenziali(List<CredenzialiSoggetto> credenziali) {
this.setCredenzialiList(credenziali);
}
/**
* Use method sizeCredenzialiList
* @return lunghezza della lista
*/
public int sizeCredenziali() {
return this.sizeCredenzialiList();
}
@XmlElement(name="ruoli",required=false,nillable=false)
protected RuoliSoggetto ruoli;
@XmlElement(name="accordo-servizio-parte-specifica",required=true,nillable=false)
private List<AccordoServizioParteSpecifica> accordoServizioParteSpecifica = new ArrayList<>();
/**
* Use method getAccordoServizioParteSpecificaList
* @return List<AccordoServizioParteSpecifica>
*/
public List<AccordoServizioParteSpecifica> getAccordoServizioParteSpecifica() {
return this.getAccordoServizioParteSpecificaList();
}
/**
* Use method setAccordoServizioParteSpecificaList
* @param accordoServizioParteSpecifica List<AccordoServizioParteSpecifica>
*/
public void setAccordoServizioParteSpecifica(List<AccordoServizioParteSpecifica> accordoServizioParteSpecifica) {
this.setAccordoServizioParteSpecificaList(accordoServizioParteSpecifica);
}
/**
* Use method sizeAccordoServizioParteSpecificaList
* @return lunghezza della lista
*/
public int sizeAccordoServizioParteSpecifica() {
return this.sizeAccordoServizioParteSpecificaList();
}
@XmlElement(name="proprieta-oggetto",required=false,nillable=false)
protected ProprietaOggetto proprietaOggetto;
@javax.xml.bind.annotation.XmlTransient
protected java.lang.String superUser;
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="privato",required=false)
protected Boolean privato = Boolean.valueOf("false");
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="tipo",required=true)
protected java.lang.String tipo;
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="nome",required=true)
protected java.lang.String nome;
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="identificativo-porta",required=false)
protected java.lang.String identificativoPorta;
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="descrizione",required=false)
protected java.lang.String descrizione;
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="porta-dominio",required=false)
protected java.lang.String portaDominio;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
@javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
@XmlAttribute(name="ora-registrazione",required=false)
protected java.util.Date oraRegistrazione;
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="versione-protocollo",required=false)
protected java.lang.String versioneProtocollo;
@javax.xml.bind.annotation.XmlSchemaType(name="string")
@XmlAttribute(name="codice-ipa",required=false)
protected java.lang.String codiceIpa;
}