ontomde-demo-acegi 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- 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,570 @@
|
|
1
|
+
package demo1GSMNetwork;
|
2
|
+
|
3
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw__imports"_*/
|
4
|
+
import javax.persistence.Basic;
|
5
|
+
import javax.persistence.CascadeType;
|
6
|
+
import javax.persistence.Column;
|
7
|
+
import javax.persistence.DiscriminatorColumn;
|
8
|
+
import javax.persistence.DiscriminatorType;
|
9
|
+
import javax.persistence.DiscriminatorValue;
|
10
|
+
import javax.persistence.Entity;
|
11
|
+
import javax.persistence.FetchType;
|
12
|
+
import javax.persistence.GeneratedValue;
|
13
|
+
import javax.persistence.Id;
|
14
|
+
import javax.persistence.JoinColumn;
|
15
|
+
import javax.persistence.JoinTable;
|
16
|
+
import javax.persistence.Lob;
|
17
|
+
import javax.persistence.ManyToMany;
|
18
|
+
import javax.persistence.ManyToOne;
|
19
|
+
import javax.persistence.OneToMany;
|
20
|
+
import javax.persistence.OneToOne;
|
21
|
+
import javax.persistence.Table;
|
22
|
+
import javax.persistence.Temporal;
|
23
|
+
import javax.persistence.TemporalType;
|
24
|
+
import javax.persistence.Version;
|
25
|
+
|
26
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw__imports"_*/
|
27
|
+
/**
|
28
|
+
* Base Transceiver Station (BTS) - The network element which handles the radio interface to the mobile station. The BTS is the radio equipment (transceivers and antennas) needed to service each cell in the network.
|
29
|
+
* @see <a href="../umldoc/_mqcOIO6GEdyp6cGW4pi6rw-content.html">UML documentation.</a>
|
30
|
+
*/
|
31
|
+
|
32
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw__annotations"_*/
|
33
|
+
@Entity
|
34
|
+
@Table (name="BaseTransceiverStation")
|
35
|
+
@DiscriminatorColumn(discriminatorType = DiscriminatorType.INTEGER)
|
36
|
+
@DiscriminatorValue(value = "42" )
|
37
|
+
|
38
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw__annotations"_*/
|
39
|
+
public class BaseTransceiverStation
|
40
|
+
implements java.io.Serializable,xmda.jpa.XmdaEntity<Long>{
|
41
|
+
|
42
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw__custom_code"_*/
|
43
|
+
// ***********************************************
|
44
|
+
// This area is provided to insert special code
|
45
|
+
// that cannot be handled by generator.
|
46
|
+
// Please, don't use custom method to avoid
|
47
|
+
// keeping source models up to date.
|
48
|
+
// ***********************************************
|
49
|
+
|
50
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw__custom_code"_*/
|
51
|
+
|
52
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw__annotations"_*/
|
53
|
+
@Basic /*TPL:114*/
|
54
|
+
|
55
|
+
/*XMDA_END_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw__annotations"_*/
|
56
|
+
private java.lang.String bTSname;
|
57
|
+
|
58
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id__annotations"_*/
|
59
|
+
@Id
|
60
|
+
@GeneratedValue
|
61
|
+
|
62
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id__annotations"_*/
|
63
|
+
private Long id;
|
64
|
+
|
65
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw__annotations"_*/
|
66
|
+
@ManyToMany (cascade=CascadeType.ALL) /*TPL:105*/
|
67
|
+
@JoinTable(
|
68
|
+
name="BaseTransceiverStation_neighbours",
|
69
|
+
joinColumns={@JoinColumn( name="BaseTransceiverStation_id")},
|
70
|
+
inverseJoinColumns={@JoinColumn(name="BaseTransceiverStation_self_id")}
|
71
|
+
) /*TPL:116*/
|
72
|
+
@JoinColumn(name="neighbours_fk") /*TPL:103*/
|
73
|
+
|
74
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw__annotations"_*/
|
75
|
+
private java.util.Set<demo1GSMNetwork.BaseTransceiverStation> neighbours= new java.util.HashSet<demo1GSMNetwork.BaseTransceiverStation>();
|
76
|
+
|
77
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_version__annotations"_*/
|
78
|
+
@Version
|
79
|
+
@SuppressWarnings("unused")
|
80
|
+
|
81
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_version__annotations"_*/
|
82
|
+
private long objectVersion;
|
83
|
+
|
84
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__cejzgu6HEdyp6cGW4pi6rw__annotations"_*/
|
85
|
+
@ManyToOne (cascade=CascadeType.ALL) /*TPL:113*/
|
86
|
+
@JoinColumn(name="owner_fk") /*TPL:103*/
|
87
|
+
|
88
|
+
/*XMDA_END_uri="ukb__cejzgu6HEdyp6cGW4pi6rw__annotations"_*/
|
89
|
+
private demo1GSMNetwork.BaseStationController owner;
|
90
|
+
|
91
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw__annotations"_*/
|
92
|
+
@Basic /*TPL:114*/
|
93
|
+
@xmda.security.Secure
|
94
|
+
|
95
|
+
/*XMDA_END_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw__annotations"_*/
|
96
|
+
private java.lang.String secretInformation;
|
97
|
+
|
98
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_serialVersionUID__annotations"_*/
|
99
|
+
|
100
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_serialVersionUID__annotations"_*/
|
101
|
+
private static final transient long serialVersionUID= 1L;
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
/**
|
108
|
+
* @param ineighbours self-explanatory
|
109
|
+
*/
|
110
|
+
|
111
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_add__annotations"_*/
|
112
|
+
|
113
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_add__annotations"_*/
|
114
|
+
public void addNeighbours(final demo1GSMNetwork.BaseTransceiverStation ineighbours){
|
115
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_add__0"_*/
|
116
|
+
/* TPL:0009b */
|
117
|
+
if(ineighbours==null) { return; }
|
118
|
+
this.neighbours.add(ineighbours);
|
119
|
+
|
120
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_add__0"_*/
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* @param primaryKey self-explanatory
|
125
|
+
* @return self-explanatory
|
126
|
+
*/
|
127
|
+
|
128
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_finderop__annotations"_*/
|
129
|
+
|
130
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_finderop__annotations"_*/
|
131
|
+
public static demo1GSMNetwork.BaseTransceiverStation find(final long primaryKey){
|
132
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_finderop__0"_*/
|
133
|
+
return (demo1GSMNetwork.BaseTransceiverStation)getEntityManager().find( demo1GSMNetwork.BaseTransceiverStation.class, primaryKey);
|
134
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_finderop__0"_*/
|
135
|
+
}
|
136
|
+
|
137
|
+
/**
|
138
|
+
* @return self-explanatory
|
139
|
+
* @param nullCast self-explanatory
|
140
|
+
*/
|
141
|
+
|
142
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_findAll__annotations"_*/
|
143
|
+
@SuppressWarnings("unchecked")
|
144
|
+
|
145
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_findAll__annotations"_*/
|
146
|
+
public static java.util.List<demo1GSMNetwork.BaseTransceiverStation> findAll(final demo1GSMNetwork.BaseTransceiverStation nullCast){
|
147
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_findAll__0"_*/
|
148
|
+
return (java.util.List<demo1GSMNetwork.BaseTransceiverStation>) getEntityManager().createQuery( "select Object(c) from BaseTransceiverStation as c").getResultList();
|
149
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_findAll__0"_*/
|
150
|
+
}
|
151
|
+
|
152
|
+
/**
|
153
|
+
* @return self-explanatory
|
154
|
+
* @param user self-explanatory
|
155
|
+
*/
|
156
|
+
|
157
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_getComputedAccessControlGrant__annotations"_*/
|
158
|
+
|
159
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_getComputedAccessControlGrant__annotations"_*/
|
160
|
+
public java.util.Set<xmda.security.GlobalComputedAccessControlCriteria> getComputedAccessControlGrant(final org.acegisecurity.userdetails.UserDetails user){
|
161
|
+
/*XMDA_BEGIN_reverse="yes"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_getComputedAccessControlGrant__0"_*/
|
162
|
+
java.util.HashSet<xmda.security.GlobalComputedAccessControlCriteria> grants = new java.util.HashSet<xmda.security.GlobalComputedAccessControlCriteria>();
|
163
|
+
if (this.getOwner() == null) {
|
164
|
+
// log.warn("BTS without owner");
|
165
|
+
return grants;
|
166
|
+
}
|
167
|
+
|
168
|
+
for(administration.ApplicationUser adm:getOwner().getAdministrators()) {
|
169
|
+
if(adm.getLogin().compareTo(user.getUsername())==0) {
|
170
|
+
//user is an administrator for this BTS
|
171
|
+
grants.add(xmda.security.GlobalComputedAccessControlCriteria.UserIsAdminOfBTS);
|
172
|
+
grants.add(xmda.security.GlobalComputedAccessControlCriteria.UserIsAdminOfNeighbourBTS);
|
173
|
+
}
|
174
|
+
break;
|
175
|
+
}
|
176
|
+
|
177
|
+
// Is user an administrator of a neighbor BTS ?
|
178
|
+
BTS_lookup: for (BaseTransceiverStation n : getNeighbours()) {
|
179
|
+
for (administration.ApplicationUser u : n.getOwner()
|
180
|
+
.getAdministrators()) {
|
181
|
+
System.out
|
182
|
+
.println("?? "
|
183
|
+
+ u.getLogin()
|
184
|
+
+ "=="
|
185
|
+
+ user.getUsername()
|
186
|
+
+ ">> match="
|
187
|
+
+ (u.getLogin().compareTo(
|
188
|
+
user.getUsername()) == 0));
|
189
|
+
if (u.getLogin().compareTo(user.getUsername()) != 0) {
|
190
|
+
continue;
|
191
|
+
}
|
192
|
+
// user is an administrator of a neighbor BTS.
|
193
|
+
grants
|
194
|
+
.add(xmda.security.GlobalComputedAccessControlCriteria.UserIsAdminOfNeighbourBTS);
|
195
|
+
// one is enough
|
196
|
+
break BTS_lookup;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
for(xmda.security.GlobalComputedAccessControlCriteria gr: grants){
|
200
|
+
System.out.println("debug: grant "+gr);
|
201
|
+
}
|
202
|
+
|
203
|
+
return grants;
|
204
|
+
|
205
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_getComputedAccessControlGrant__0"_*/
|
206
|
+
}
|
207
|
+
|
208
|
+
/**
|
209
|
+
* @return self-explanatory
|
210
|
+
*/
|
211
|
+
|
212
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rwgetEntityManager__annotations"_*/
|
213
|
+
|
214
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rwgetEntityManager__annotations"_*/
|
215
|
+
public static javax.persistence.EntityManager getEntityManager(){
|
216
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rwgetEntityManager__0"_*/
|
217
|
+
return xmda.jpa.DbContext.getEntityManager();
|
218
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rwgetEntityManager__0"_*/
|
219
|
+
}
|
220
|
+
|
221
|
+
/**
|
222
|
+
* @return self-explanatory
|
223
|
+
*/
|
224
|
+
|
225
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_get__annotations"_*/
|
226
|
+
|
227
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_get__annotations"_*/
|
228
|
+
public Long getId(){
|
229
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_get__0"_*/
|
230
|
+
if(id == null) { return Long.valueOf(0);} else {return id;}
|
231
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_get__0"_*/
|
232
|
+
}
|
233
|
+
|
234
|
+
/**
|
235
|
+
* @return self-explanatory
|
236
|
+
*/
|
237
|
+
|
238
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_get__annotations"_*/
|
239
|
+
|
240
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_get__annotations"_*/
|
241
|
+
public java.util.Set<demo1GSMNetwork.BaseTransceiverStation> getNeighbours(){
|
242
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_get__0"_*/
|
243
|
+
|
244
|
+
if(neighbours!=null){ /* TPL:0013 */
|
245
|
+
return neighbours;
|
246
|
+
} else {
|
247
|
+
return new java.util.HashSet<demo1GSMNetwork.BaseTransceiverStation>();
|
248
|
+
}
|
249
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_get__0"_*/
|
250
|
+
}
|
251
|
+
|
252
|
+
/**
|
253
|
+
* @return self-explanatory
|
254
|
+
*/
|
255
|
+
|
256
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_sug__annotations"_*/
|
257
|
+
|
258
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_sug__annotations"_*/
|
259
|
+
public java.util.List<demo1GSMNetwork.BaseTransceiverStation> getNeighboursSug(){
|
260
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_sug__0"_*/
|
261
|
+
|
262
|
+
/* TPL:0001jpa_many false */
|
263
|
+
java.util.List<demo1GSMNetwork.BaseTransceiverStation> ret=demo1GSMNetwork.BaseTransceiverStation.findAll((demo1GSMNetwork.BaseTransceiverStation)null);
|
264
|
+
|
265
|
+
demo1GSMNetwork.BaseTransceiverStation item=null;
|
266
|
+
java.util.Iterator<?> iter=getNeighbours().iterator();
|
267
|
+
while(iter.hasNext()){
|
268
|
+
item=(demo1GSMNetwork.BaseTransceiverStation) iter.next();
|
269
|
+
if(!ret.contains(item)) {
|
270
|
+
ret.add(item);
|
271
|
+
}
|
272
|
+
}
|
273
|
+
return ret;
|
274
|
+
|
275
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_sug__0"_*/
|
276
|
+
}
|
277
|
+
|
278
|
+
/**
|
279
|
+
* This property is part of a bi-navigable association {@link demo1GSMNetwork.BaseStationController#getTransceivers}<br/>
|
280
|
+
* @return self-explanatory
|
281
|
+
*/
|
282
|
+
|
283
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_get__annotations"_*/
|
284
|
+
|
285
|
+
/*XMDA_END_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_get__annotations"_*/
|
286
|
+
public demo1GSMNetwork.BaseStationController getOwner(){
|
287
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_get__0"_*/
|
288
|
+
/* TPL:0012 */ return owner;
|
289
|
+
/*XMDA_END_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_get__0"_*/
|
290
|
+
}
|
291
|
+
|
292
|
+
/**
|
293
|
+
* @return self-explanatory
|
294
|
+
*/
|
295
|
+
|
296
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_sug__annotations"_*/
|
297
|
+
|
298
|
+
/*XMDA_END_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_sug__annotations"_*/
|
299
|
+
public java.util.List<demo1GSMNetwork.BaseStationController> getOwnerSug(){
|
300
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_sug__0"_*/
|
301
|
+
|
302
|
+
/* TPL:0001jpa_one true */
|
303
|
+
java.util.List<demo1GSMNetwork.BaseStationController> ret=demo1GSMNetwork.BaseStationController.findAll((demo1GSMNetwork.BaseStationController)null);
|
304
|
+
demo1GSMNetwork.BaseStationController elt=getOwner();
|
305
|
+
if(elt!=null && !ret.contains(elt)) {
|
306
|
+
ret.add(elt);
|
307
|
+
}
|
308
|
+
return ret;
|
309
|
+
|
310
|
+
/*XMDA_END_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_sug__0"_*/
|
311
|
+
}
|
312
|
+
|
313
|
+
/**
|
314
|
+
* @return self-explanatory
|
315
|
+
*/
|
316
|
+
|
317
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_get__annotations"_*/
|
318
|
+
|
319
|
+
/*XMDA_END_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_get__annotations"_*/
|
320
|
+
public java.lang.String getSchema(){
|
321
|
+
/*XMDA_BEGIN_reverse="yes"_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_get__0"_*/
|
322
|
+
StringBuffer ret = new StringBuffer();
|
323
|
+
ret.append("digraph access{\n");
|
324
|
+
ret.append("graph [ rankdir=LR ]\n");
|
325
|
+
|
326
|
+
ret.append("bts_" + getId() + "[label=\"" + getbTSname()
|
327
|
+
+ "\",shape=box,style=filled,color=\"#FF6600\"]\n");
|
328
|
+
for (BaseTransceiverStation nb : getNeighbours()) {
|
329
|
+
ret.append("bts_" + getId() + "-> bts_" + nb.getId()
|
330
|
+
+ "[label=\"neighboor\"]\n");
|
331
|
+
ret.append("bts_" + nb.getId() + "[label=\"" + nb.getbTSname()
|
332
|
+
+ "\",shape,trapezium,style=filled,color=\"#FF6600\"]\n");
|
333
|
+
}
|
334
|
+
|
335
|
+
if (getOwner() != null) {
|
336
|
+
ret.append("bsc_" + getOwner().getId() + "[label=\"BSC\\n"
|
337
|
+
+ getOwner().getbSCname() + "\"]\n");
|
338
|
+
for (BaseTransceiverStation bts : getOwner().getTransceivers()) {
|
339
|
+
ret.append("bsc_" + getOwner().getId() + "->bts_" + bts.getId()
|
340
|
+
+ "\n");
|
341
|
+
if (bts != this) {
|
342
|
+
ret.append("bts_" + bts.getId() + "[label=\""
|
343
|
+
+ bts.getbTSname()
|
344
|
+
+ "\",shape=box,color=\"#FF6600\"]\n");
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
}
|
349
|
+
|
350
|
+
ret.append("}\n");
|
351
|
+
|
352
|
+
return ret.toString();
|
353
|
+
/*XMDA_END_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_get__0"_*/
|
354
|
+
}
|
355
|
+
|
356
|
+
/**
|
357
|
+
* @return self-explanatory
|
358
|
+
*/
|
359
|
+
|
360
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_get__annotations"_*/
|
361
|
+
|
362
|
+
/*XMDA_END_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_get__annotations"_*/
|
363
|
+
public java.lang.String getSecretInformation(){
|
364
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_get__0"_*/
|
365
|
+
/* TPL:0012 */ return secretInformation;
|
366
|
+
/*XMDA_END_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_get__0"_*/
|
367
|
+
}
|
368
|
+
|
369
|
+
/**
|
370
|
+
* @return self-explanatory
|
371
|
+
*/
|
372
|
+
|
373
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_get__annotations"_*/
|
374
|
+
|
375
|
+
/*XMDA_END_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_get__annotations"_*/
|
376
|
+
public java.lang.String getbTSname(){
|
377
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_get__0"_*/
|
378
|
+
/* TPL:0012 */ return bTSname;
|
379
|
+
/*XMDA_END_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_get__0"_*/
|
380
|
+
}
|
381
|
+
|
382
|
+
/**
|
383
|
+
* @return self-explanatory
|
384
|
+
*/
|
385
|
+
|
386
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_merge__annotations"_*/
|
387
|
+
|
388
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_merge__annotations"_*/
|
389
|
+
public demo1GSMNetwork.BaseTransceiverStation merge(){
|
390
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_merge__0"_*/
|
391
|
+
return (demo1GSMNetwork.BaseTransceiverStation)getEntityManager().merge(this);
|
392
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_merge__0"_*/
|
393
|
+
}
|
394
|
+
|
395
|
+
/**
|
396
|
+
*/
|
397
|
+
|
398
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_persist__annotations"_*/
|
399
|
+
|
400
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_persist__annotations"_*/
|
401
|
+
public void persist(){
|
402
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_persist__0"_*/
|
403
|
+
getEntityManager().persist(this);
|
404
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_persist__0"_*/
|
405
|
+
}
|
406
|
+
|
407
|
+
/**
|
408
|
+
*/
|
409
|
+
|
410
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LHNj0O6gEdyp6cGW4pi6rw__annotations"_*/
|
411
|
+
@xmda.security.Secure
|
412
|
+
|
413
|
+
/*XMDA_END_uri="ukb__LHNj0O6gEdyp6cGW4pi6rw__annotations"_*/
|
414
|
+
public demo1GSMNetwork.BTSStatus queryBTSstatus(){
|
415
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__LHNj0O6gEdyp6cGW4pi6rw__0"_*/
|
416
|
+
|
417
|
+
//TODO: replace this test code by real implementation
|
418
|
+
//log.error("test method called");
|
419
|
+
|
420
|
+
return demo1GSMNetwork.BTSStatus.findAll((demo1GSMNetwork.BTSStatus)null).get(0);
|
421
|
+
/*XMDA_END_uri="ukb__LHNj0O6gEdyp6cGW4pi6rw__0"_*/
|
422
|
+
}
|
423
|
+
|
424
|
+
/**
|
425
|
+
*/
|
426
|
+
|
427
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_remove__annotations"_*/
|
428
|
+
|
429
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_remove__annotations"_*/
|
430
|
+
public void remove(){
|
431
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_remove__0"_*/
|
432
|
+
getEntityManager().remove(this);
|
433
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_remove__0"_*/
|
434
|
+
}
|
435
|
+
|
436
|
+
/**
|
437
|
+
* @param ineighbours self-explanatory
|
438
|
+
*/
|
439
|
+
|
440
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_remove__annotations"_*/
|
441
|
+
|
442
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_remove__annotations"_*/
|
443
|
+
public void removeNeighbours(final demo1GSMNetwork.BaseTransceiverStation ineighbours){
|
444
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_remove__0"_*/
|
445
|
+
/* TPL:0003 */
|
446
|
+
this.neighbours.remove(ineighbours);
|
447
|
+
|
448
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_remove__0"_*/
|
449
|
+
}
|
450
|
+
|
451
|
+
/**
|
452
|
+
* @param iid self-explanatory
|
453
|
+
* @see demo1GSMNetwork.BaseTransceiverStation#getId
|
454
|
+
*/
|
455
|
+
|
456
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_set__annotations"_*/
|
457
|
+
|
458
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_set__annotations"_*/
|
459
|
+
public void setId(final Long iid){
|
460
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_set__0"_*/
|
461
|
+
this.id=iid; /* TPL:0014d*/
|
462
|
+
/*XMDA_END_uri="ukb__mqcOIO6GEdyp6cGW4pi6rw_auto_id_set__0"_*/
|
463
|
+
}
|
464
|
+
|
465
|
+
/**
|
466
|
+
* @param ineighbours self-explanatory
|
467
|
+
* @see demo1GSMNetwork.BaseTransceiverStation#getNeighbours
|
468
|
+
*/
|
469
|
+
|
470
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_set__annotations"_*/
|
471
|
+
|
472
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_set__annotations"_*/
|
473
|
+
public void setNeighbours(final java.util.Set<demo1GSMNetwork.BaseTransceiverStation> ineighbours){
|
474
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_set__0"_*/
|
475
|
+
this.neighbours=ineighbours; /* TPL:0014d*/
|
476
|
+
/*XMDA_END_uri="ukb__o0Urwe6GEdyp6cGW4pi6rw_set__0"_*/
|
477
|
+
}
|
478
|
+
|
479
|
+
/**
|
480
|
+
* @param iowner self-explanatory
|
481
|
+
* @see demo1GSMNetwork.BaseTransceiverStation#getOwner
|
482
|
+
*/
|
483
|
+
|
484
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_set__annotations"_*/
|
485
|
+
|
486
|
+
/*XMDA_END_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_set__annotations"_*/
|
487
|
+
public void setOwner(final demo1GSMNetwork.BaseStationController iowner){
|
488
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_set__0"_*/
|
489
|
+
/* TPL:0016 */
|
490
|
+
if(owner!=null && owner.equals(iowner)) { return ;}
|
491
|
+
demo1GSMNetwork.BaseStationController previous=owner;
|
492
|
+
|
493
|
+
owner=null;
|
494
|
+
if(previous!=null) { previous.removeTransceivers(this); }
|
495
|
+
|
496
|
+
this.owner=iowner;
|
497
|
+
if(iowner!=null) { iowner.addTransceivers(this); }
|
498
|
+
|
499
|
+
/*XMDA_END_uri="ukb__cejzgu6HEdyp6cGW4pi6rw_set__0"_*/
|
500
|
+
}
|
501
|
+
|
502
|
+
/**
|
503
|
+
* @param ischema self-explanatory
|
504
|
+
* @see demo1GSMNetwork.BaseTransceiverStation#getSchema
|
505
|
+
*/
|
506
|
+
|
507
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_set__annotations"_*/
|
508
|
+
|
509
|
+
/*XMDA_END_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_set__annotations"_*/
|
510
|
+
public void setSchema(final java.lang.String ischema){
|
511
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_set__0"_*/
|
512
|
+
|
513
|
+
//TODO: replace this test code by real implementation
|
514
|
+
//log.error("test method called");
|
515
|
+
|
516
|
+
/*XMDA_END_uri="ukb__XV2HYO-yEdyh89Ta87l9qQ_set__0"_*/
|
517
|
+
}
|
518
|
+
|
519
|
+
/**
|
520
|
+
* @param isecretInformation self-explanatory
|
521
|
+
* @see demo1GSMNetwork.BaseTransceiverStation#getSecretInformation
|
522
|
+
*/
|
523
|
+
|
524
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_set__annotations"_*/
|
525
|
+
|
526
|
+
/*XMDA_END_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_set__annotations"_*/
|
527
|
+
public void setSecretInformation(final java.lang.String isecretInformation){
|
528
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_set__0"_*/
|
529
|
+
this.secretInformation=isecretInformation; /* TPL:0014d*/
|
530
|
+
/*XMDA_END_uri="ukb__KHMd0O6LEdyp6cGW4pi6rw_set__0"_*/
|
531
|
+
}
|
532
|
+
|
533
|
+
/**
|
534
|
+
* @param ibTSname self-explanatory
|
535
|
+
* @see demo1GSMNetwork.BaseTransceiverStation#getbTSname
|
536
|
+
*/
|
537
|
+
|
538
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_set__annotations"_*/
|
539
|
+
|
540
|
+
/*XMDA_END_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_set__annotations"_*/
|
541
|
+
public void setbTSname(final java.lang.String ibTSname){
|
542
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_set__0"_*/
|
543
|
+
this.bTSname=ibTSname; /* TPL:0014d*/
|
544
|
+
/*XMDA_END_uri="ukb__SaGvMO6LEdyp6cGW4pi6rw_set__0"_*/
|
545
|
+
}
|
546
|
+
|
547
|
+
/**
|
548
|
+
*/
|
549
|
+
|
550
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__Ay4PQO6KEdyp6cGW4pi6rw__annotations"_*/
|
551
|
+
@xmda.security.Secure
|
552
|
+
|
553
|
+
/*XMDA_END_uri="ukb__Ay4PQO6KEdyp6cGW4pi6rw__annotations"_*/
|
554
|
+
public void shutdown(){
|
555
|
+
/*XMDA_BEGIN_reverse="no"_uri="ukb__Ay4PQO6KEdyp6cGW4pi6rw__0"_*/
|
556
|
+
|
557
|
+
//TODO: replace this test code by real implementation
|
558
|
+
//log.error("test method called");
|
559
|
+
|
560
|
+
/*XMDA_END_uri="ukb__Ay4PQO6KEdyp6cGW4pi6rw__0"_*/
|
561
|
+
}
|
562
|
+
}
|
563
|
+
//**********************************************************************
|
564
|
+
//** This file is in REVERSE MODE. Text between tags will be saved
|
565
|
+
//** upon next generation if reverse="yes"
|
566
|
+
//** Element between tags are not stored in model, so this file should
|
567
|
+
//** manage in a version management tool.
|
568
|
+
//**********************************************************************
|
569
|
+
//** Generated with ontoMDE (ORANGE-FT/RD/BIZZ/CIL/SAM 2006-2007)
|
570
|
+
//**********************************************************************
|