-
Notifications
You must be signed in to change notification settings - Fork 2
/
datamodel.jb-sim.xml
275 lines (271 loc) · 7 KB
/
datamodel.jb-sim.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.6">
<!--
* @copyright Copyright (C) 2020 Jeffrey Bostoen
* @license https://www.gnu.org/licenses/gpl-3.0.en.html
* @details 1:1 relationship is supposed to come in iTop 2.8. Then it might be useful to add a field to MobilePhone, Tablet, maybe PC to link the SimCard there too.
Currently not bothering about workarounds.
-->
<classes>
<class id="SimCard" _delta="define">
<!-- Inherits too many attributes, but most logical place -->
<parent>PhysicalDevice</parent>
<properties>
<category>bizmodel,searchable,structure</category>
<abstract>false</abstract>
<key_type>autoincrement</key_type>
<db_table>simcard</db_table>
<db_key_field>id</db_key_field>
<naming>
<attributes>
<attribute id="name"/>
</attributes>
</naming>
<order>
<columns>
<column id="name" ascending="true"/>
</columns>
</order>
<reconciliation>
<attributes>
<attribute id="name"/>
</attributes>
</reconciliation>
<icon>images/sim.png</icon>
</properties>
<fields>
<field id="sim" xsi:type="AttributeString">
<sql>sim</sql>
<is_null_allowed>false</is_null_allowed>
<default_value/>
</field>
<field id="contact_id" xsi:type="AttributeExternalKey">
<sql>contact_id</sql>
<is_null_allowed>true</is_null_allowed>
<allow_target_creation>true</allow_target_creation>
<on_target_delete>DEL_AUTO</on_target_delete>
<target_class>Contact</target_class>
</field>
<field id="functionalci_id" xsi:type="AttributeExternalKey">
<sql>functionalci_id</sql>
<is_null_allowed>true</is_null_allowed>
<allow_target_creation>true</allow_target_creation>
<on_target_delete>DEL_AUTO</on_target_delete>
<target_class>FunctionalCI</target_class>
<filter>SELECT FunctionalCI WHERE finalclass IN ('MobilePhone', 'PC', 'Tablet')</filter>
</field>
<field id="phone_number" xsi:type="AttributeString">
<sql>phone_number</sql>
<is_null_allowed>true</is_null_allowed>
<default_value/>
</field>
<field id="pin" xsi:type="AttributeString">
<sql>pin</sql>
<is_null_allowed>true</is_null_allowed>
<default_value/>
</field>
<field id="puk" xsi:type="AttributeString">
<sql>puk</sql>
<is_null_allowed>true</is_null_allowed>
<default_value/>
</field>
<field id="pin2" xsi:type="AttributeString">
<sql>pin2</sql>
<is_null_allowed>true</is_null_allowed>
<default_value/>
</field>
<field id="puk2" xsi:type="AttributeString">
<sql>puk2</sql>
<is_null_allowed>true</is_null_allowed>
<default_value/>
</field>
<field id="type" xsi:type="AttributeEnum">
<sql>type</sql>
<is_null_allowed>true</is_null_allowed>
<default_value/>
<values>
<value id="regular">regular</value>
<value id="regular_to_micro">regular_to_micro</value>
<value id="regular_to_nano">regular_to_nano</value>
<value id="micro">micro</value>
<value id="micro_to_nano">micro_to_nano</value>
<value id="nano">nano</value>
</values>
</field>
</fields>
<methods/>
<presentation>
<details>
<items>
<item id="fieldset:SimCard:info">
<rank>1</rank>
<items>
<item id="name">
<rank>1</rank>
</item>
<item id="org_id">
<rank>2</rank>
</item>
<item id="sim">
<rank>3</rank>
</item>
<item id="status">
<rank>31</rank>
</item>
<item id="location_id">
<rank>32</rank>
</item>
<item id="contact_id">
<rank>33</rank>
</item>
<item id="functionalci_id">
<rank>34</rank>
</item>
<item id="description">
<rank>41</rank>
</item>
<item id="phone_number">
<rank>50</rank>
</item>
<item id="pin">
<rank>51</rank>
</item>
<item id="pin2">
<rank>51</rank>
</item>
<item id="puk">
<rank>52</rank>
</item>
<item id="puk2">
<rank>52</rank>
</item>
<item id="type">
<rank>53</rank>
</item>
<item id="move2production">
<rank>61</rank>
</item>
<item id="contacts_list">
<rank>170</rank>
</item>
<item id="documents_list">
<rank>180</rank>
</item>
<item id="providercontracts_list">
<rank>200</rank>
</item>
<item id="services_list">
<rank>210</rank>
</item>
</items>
</item>
</items>
</details>
<search>
<items>
<item id="name">
<rank>1</rank>
</item>
<item id="org_id">
<rank>2</rank>
</item>
<item id="sim">
<rank>3</rank>
</item>
<item id="status">
<rank>31</rank>
</item>
<item id="location_id">
<rank>32</rank>
</item>
<item id="contact_id">
<rank>33</rank>
</item>
<item id="functionalci_id">
<rank>34</rank>
</item>
</items>
</search>
<default_search>
<items>
<item id="name">
<rank>1</rank>
</item>
<item id="org_id">
<rank>2</rank>
</item>
<item id="sim">
<rank>3</rank>
</item>
<item id="status">
<rank>31</rank>
</item>
<item id="location">
<rank>32</rank>
</item>
</items>
</default_search>
<list>
<items>
<item id="name">
<rank>1</rank>
</item>
<item id="org_id">
<rank>2</rank>
</item>
<item id="sim">
<rank>3</rank>
</item>
<item id="phone_number">
<rank>4</rank>
</item>
<item id="status">
<rank>31</rank>
</item>
<item id="location_id">
<rank>32</rank>
</item>
<item id="description">
<rank>33</rank>
</item>
</items>
</list>
</presentation>
</class>
<class id="MobilePhone">
<fields>
<field id="sim_card_type" xsi:type="AttributeEnum" _delta="define">
<sql>sim_card_type</sql>
<is_null_allowed>true</is_null_allowed>
<default_value/>
<values>
<value id="regular">regular</value>
<value id="micro">micro</value>
<value id="nano">nano</value>
</values>
</field>
</fields>
</class>
</classes>
<menus>
<menu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="ConfigManagementOverview" xsi:type="DashboardMenuNode">
<definition>
<cells>
<cell id="2">
<dashlets>
<dashlet id="SimCard" xsi:type="DashletBadge" _delta="define">
<rank>101</rank>
<class>SimCard</class>
</dashlet>
</dashlets>
</cell>
</cells>
</definition>
</menu>
</menus>
<group id="Configuration">
<classes>
<class id="SimCard" _delta="define"/>
</classes>
</group>
</itop_design>