system-list.xml 11 KB
Newer Older
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>

<list>
  <definition>
    <departmentBrowser>true</departmentBrowser>
    <departmentRootVisible>false</departmentRootVisible>
    <baseMode>true</baseMode>
    <multiSelect>true</multiSelect>
9
    <template>simple-list.tpl</template>
10 11 12 13 14 15 16
    <label>List of systems</label>
    <defaultSortColumn>1</defaultSortColumn>

    <objectType>
      <label>New workstation</label>
      <objectClass>FAKE_OC_NewWorkstation</objectClass>
      <category>workstation</category>
17
      <class>workstationGeneric</class>
18 19 20 21 22 23 24
      <image>plugins/systems/images/select_new_workstation.png</image>
    </objectType>

    <objectType>
      <label>Locked server</label>
      <objectClass>goServer__IS_LOCKED</objectClass>
      <category>server</category>
25
      <class>serverGeneric</class>
26 27 28 29 30 31 32
      <image>plugins/systems/images/server_locked.png</image>
    </objectType>

    <objectType>
      <label>Locked workstation</label>
      <objectClass>gotoWorkstation__IS_LOCKED</objectClass>
      <category>workstation</category>
33
      <class>workstationGeneric</class>
34 35 36 37 38 39 40
      <image>plugins/systems/images/workstation_locked.png</image>
    </objectType>

    <objectType>
      <label>Locked terminal</label>
      <objectClass>gotoTerminal__IS_LOCKED</objectClass>
      <category>terminal</category>
41
      <class>terminalGeneric</class>
42 43 44 45 46 47 48 49
      <image>plugins/systems/images/terminal_locked.png</image>
    </objectType>


    <objectType>
      <label>New terminal</label>
      <objectClass>FAKE_OC_NewTerminal</objectClass>
      <category>terminal</category>
50
      <class>terminalGeneric</class>
51 52 53 54 55 56 57
      <image>plugins/systems/images/select_new_terminal.png</image>
    </objectType>

    <objectType>
      <label>New device</label>
      <objectClass>FAKE_OC_NewDevice</objectClass>
      <category>terminal</category>
58
      <class>terminalGeneric</class>
59 60 61 62 63 64 65
      <image>plugins/systems/images/select_newsystem.png</image>
    </objectType>

    <objectType>
      <label>Workstation template</label>
      <objectClass>FAKE_OC_WorkstationTemplate</objectClass>
      <category>workstation</category>
66
      <class>workstationGeneric</class>
67 68 69 70 71 72 73
      <image>plugins/systems/images/select_default.png</image>
    </objectType>

    <objectType>
      <label>Terminal template</label>
      <objectClass>FAKE_OC_TerminalTemplate</objectClass>
      <category>terminal</category>
74
      <class>terminalGeneric</class>
75 76 77 78 79 80
      <image>plugins/systems/images/select_default.png</image>
    </objectType>

    <objectType>
      <label>Winstation</label>
      <objectClass>sambaSamAccount</objectClass>
81 82
      <category>winstation</category>
      <class>winstationGeneric</class>
83
      <image>geticon.php?context=devices&amp;icon=computer-windows&amp;size=16</image>
84 85 86 87 88 89
    </objectType>

    <objectType>
      <label>Server</label>
      <objectClass>goServer</objectClass>
      <category>server</category>
90
      <class>serverGeneric</class>
91
      <image>geticon.php?context=devices&amp;icon=server&amp;size=16</image>
92 93 94 95 96 97
    </objectType>

    <objectType>
      <label>Workstation</label>
      <objectClass>gotoWorkstation</objectClass>
      <category>workstation</category>
98
      <class>workstationGeneric</class>
99
      <image>geticon.php?context=devices&amp;icon=computer&amp;size=16</image>
100 101 102 103 104 105
    </objectType>

    <objectType>
      <label>Terminal</label>
      <objectClass>gotoTerminal</objectClass>
      <category>terminal</category>
106
      <class>terminalGeneric</class>
107
      <image>geticon.php?context=devices&amp;icon=terminal&amp;size=16</image>
108 109 110 111 112 113 114
    </objectType>

    <objectType>
      <label>Printer</label>
      <objectClass>gotoPrinter</objectClass>
      <category>printer</category>
      <class>printgeneric</class>
115
      <image>geticon.php?context=devices&amp;icon=printer&amp;size=16</image>
116 117 118 119 120 121 122
    </objectType>

    <objectType>
      <label>Phone</label>
      <objectClass>goFonHardware</objectClass>
      <category>phone</category>
      <class>phoneGeneric</class>
123
      <image>geticon.php?context=devices&amp;icon=telephone&amp;size=16</image>
124 125
    </objectType>

126 127 128 129 130
    <objectType>
      <label>Mobile phone</label>
      <objectClass>fdMobilePhone</objectClass>
      <category>mobilePhone</category>
      <class>mobilePhoneGeneric</class>
131
      <image>geticon.php?context=devices&amp;icon=phone&amp;size=16</image>
132 133
    </objectType>

134 135 136 137 138
    <objectType>
      <label>Component</label>
      <objectClass>ieee802Device</objectClass>
      <category>component</category>
      <class>componentGeneric</class>
139
      <image>geticon.php?context=devices&amp;icon=network-device&amp;size=16</image>
140 141
    </objectType>

142 143 144 145 146
    <objectType>
      <label>IPMI</label>
      <objectClass>ipmiInterface</objectClass>
      <category>ipmi</category>
      <class>ipmiGeneric</class>
147
      <image>geticon.php?context=devices&amp;icon=server&amp;size=16</image>
148 149
    </objectType>

150 151 152
  </definition>

  <table>
153
    <layout>|20px;c||90px-d|110px|100px;o||60px;o|170px-d;r|</layout>
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175

    <department>
      <value>%{filter:objectType(dn,objectClass)}</value>
    </department>

    <department>
      <value>%{filter:departmentLink(row,dn,description)}</value>
      <span>2</span>
    </department>

    <column>
      <value>%{filter:objectType(dn,objectClass)}</value>
    </column>

    <column>
      <label>Name</label>
      <sortAttribute>cn</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:link(row,dn,"%s",cn)}</value>
      <export>true</export>
    </column>

176 177 178 179
    <column>
      <label>IP</label>
      <sortAttribute>ip</sortAttribute>
      <sortType>string</sortType>
180
      <value>%{ipHostNumber}</value>
181 182 183
      <export>true</export>
    </column>

184 185 186 187
    <column>
      <label>MAC</label>
      <sortAttribute>mac</sortAttribute>
      <sortType>string</sortType>
188
      <value>%{macAddress}</value>
189 190 191
      <export>true</export>
    </column>

192 193 194 195 196 197 198 199
    <column>
      <label>Description</label>
      <sortAttribute>description</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:link(row,dn,"%s",description)}</value>
      <export>true</export>
    </column>

200 201 202 203
    <column>
      <label>Services</label>
      <sortAttribute>services</sortAttribute>
      <sortType>string</sortType>
204
      <value>%{filter:listServices(row,dn)}</value>
205 206 207
      <export>true</export>
    </column>

208 209 210 211 212
    <column>
      <label>Release</label>
      <sortAttribute>description</sortAttribute>
      <sortType>string</sortType>
      <value>%{filter:systemRelease(row,dn,"%s",objectClass,FAIclass)}</value>
213 214 215
      <export>true</export>
    </column>

216 217 218 219 220 221 222 223 224 225 226
    <column>
      <label>Actions</label>
      <value>%{filter:actions(dn,row,objectClass)}</value>
    </column>

  </table>

  <actionmenu>

    <action>
     <type>sub</type>
227
     <image>geticon.php?context=actions&amp;icon=document-new&amp;size=16</image>
228 229 230 231 232
     <label>Create</label>

     <action>
      <name>new_goServer</name>
      <type>entry</type>
233
      <image>geticon.php?context=devices&amp;icon=server&amp;size=16</image>
234
      <label>Server</label>
235
      <depends>serverGeneric</depends>
236 237 238 239 240
     </action>

     <action>
      <name>new_gotoWorkstation</name>
      <type>entry</type>
241
      <image>geticon.php?context=devices&amp;icon=computer&amp;size=16</image>
242
      <label>Workstation</label>
243
      <depends>workstationGeneric</depends>
244 245 246 247 248
     </action>

     <action>
      <name>new_gotoTerminal</name>
      <type>entry</type>
249
      <image>geticon.php?context=devices&amp;icon=terminal&amp;size=16</image>
250
      <label>Terminal</label>
251
      <depends>terminalGeneric</depends>
252 253
     </action>

254 255 256
    <action>
      <name>new_sambaSamAccount</name>
      <type>entry</type>
257
      <image>geticon.php?context=devices&amp;icon=computer-windows&amp;size=16</image>
258
      <label>winStation</label>
259
      <depends>winstationGeneric</depends>
260 261
    </action>

262 263 264
     <action>
      <name>new_gotoPrinter</name>
      <type>entry</type>
265
      <image>geticon.php?context=devices&amp;icon=printer&amp;size=16</image>
266 267 268 269 270 271 272
      <label>Network printer</label>
      <depends>printgeneric</depends>
     </action>

     <action>
      <name>new_goFonHardware</name>
      <type>entry</type>
273
      <image>geticon.php?context=devices&amp;icon=telephone&amp;size=16</image>
274 275 276 277 278 279 280
      <label>Phone</label>
      <depends>phoneGeneric</depends>
     </action>

     <action>
      <name>new_ieee802Device</name>
      <type>entry</type>
281
      <image>geticon.php?context=devices&amp;icon=network-device&amp;size=16</image>
282 283 284
      <label>Network device</label>
      <depends>componentGeneric</depends>
     </action>
285 286 287 288

     <action>
      <name>new_fdMobilePhone</name>
      <type>entry</type>
289
      <image>geticon.php?context=devices&amp;icon=phone&amp;size=16</image>
290 291 292
      <label>Mobile Phone</label>
      <depends>mobilePhoneGeneric</depends>
     </action>
293 294 295 296

     <action>
      <name>new_ipmiInterface</name>
      <type>entry</type>
297
      <image>geticon.php?context=devices&amp;icon=server&amp;size=16</image>
298 299 300
      <label>IPMI</label>
      <depends>ipmiGeneric</depends>
     </action>
301 302 303 304 305 306 307
    </action>

    <action>
      <type>separator</type>
    </action>

    <action>
308 309 310 311
      <type>sub</type>
      <image>images/rocket.png</image>
      <label>Trigger action</label>
      <depends>DaemonEvent</depends>
312 313 314 315 316 317
    </action>

    <action>
     <type>sub</type>
     <image>plugins/systems/images/clock.png</image>
     <label>Schedule action</label>
318
      <depends>DaemonEvent</depends>
319 320 321 322 323 324 325 326
    </action>

    <action>
      <type>separator</type>
    </action>

    <action>
      <name>activateMultiple</name>
327
      <depends>DaemonEvent</depends>
328
      <type>entry</type>
329
      <image>geticon.php?context=status&amp;icon=object-unlocked&amp;size=16</image>
330 331 332 333 334 335
      <label>Activate systems</label>
    </action>

    <action>
      <name>remove</name>
      <type>entry</type>
336
      <image>geticon.php?context=actions&amp;icon=edit-delete&amp;size=16</image>
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
      <label>Remove</label>
    </action>

    <action>
      <type>exporter</type>
    </action>

    <action>
      <type>separator</type>
    </action>

    <action>
      <type>copypaste</type>
    </action>

    <action>
      <type>snapshot</type>
    </action>

  </actionmenu>

  <actiontriggers snapshot="true" copypaste="true">

    <action>
      <name>createISO</name>
      <type>entry</type>
      <objectclass>gotoWorkstation</objectclass>
      <objectclass>FAIobject</objectclass>
365
      <image>geticon.php?context=devices&amp;icon=media-cdrom&amp;size=16</image>
366
      <acl>workstation/workstationGeneric[createFAICD:w]</acl>
367 368 369 370 371 372 373 374 375 376 377
      <label>Create ISO</label>
    </action>

    <action>
      <name>cp</name>
      <type>copypaste</type>
    </action>

    <action>
      <name>edit</name>
      <type>entry</type>
378
      <image>geticon.php?context=actions&amp;icon=document-edit&amp;size=16</image>
379 380 381 382 383 384 385 386 387 388 389
      <label>Edit role</label>
    </action>

    <action>
      <name>snapshot</name>
      <type>snapshot</type>
    </action>

    <action>
      <name>remove</name>
      <type>entry</type>
390
      <image>geticon.php?context=actions&amp;icon=edit-delete&amp;size=16</image>
391 392 393 394 395 396 397
      <acl>%acl[d]</acl>
      <label>Remove system</label>
    </action>

  </actiontriggers>

</list>