Code

Backports from trunk
[gosa.git] / gosa-plugins / systems / admin / systems / serverService-list.xml
index c179a6d415db59fc0ed108d7b434c749475bb388..fba991ec396172f3e244e70d7d4ee130db0b17d5 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <list>
   <definition>
     <departmentBrowser>false</departmentBrowser>
@@ -9,19 +8,20 @@
     <template>serverService-list.tpl</template>
     <label>List of services</label>
     <defaultSortColumn>1</defaultSortColumn>
+    <noAclChecks>true</noAclChecks>
 
     <objectType>
       <label>Service</label>
       <objectClass>FAKE_OC_ServerService</objectClass>
       <category>server</category>
       <class>ServerService</class>
-      <image>images/lits/new.png</image>
+      <image>images/lits/lists/element.png[new]</image>
     </objectType>
 
   </definition>
 
   <table>
-    <layout>|18px;c||250px|170px;r|</layout>
+    <layout>|18px;c||170px;r|</layout>
 
     <column>
       <label>!</label>
 
   <actionmenu>
 
-    <action>
-     <type>sub</type>
-     <image>images/lists/new.png</image>
-     <label>Create</label>
-
-     <action>
-      <name>new_goServer</name>
-      <type>entry</type>
-      <image>plugins/systems/images/select_server.png</image>
-      <label>Server</label>
-      <depends>servgeneric</depends>
-     </action>
-
-     <action>
-      <name>new_gotoWorkstation</name>
-      <type>entry</type>
-      <image>plugins/systems/images/select_workstation.png</image>
-      <label>Workstation</label>
-      <depends>workgeneric</depends>
-     </action>
-
-     <action>
-      <name>new_gotoTerminal</name>
-      <type>entry</type>
-      <image>plugins/systems/images/select_terminal.png</image>
-      <label>Terminal</label>
-      <depends>termgeneric</depends>
-     </action>
-
-     <action>
-      <name>new_gotoPrinter</name>
-      <type>entry</type>
-      <image>plugins/systems/images/select_printer.png</image>
-      <label>Network printer</label>
-      <depends>printgeneric</depends>
-     </action>
-
-     <action>
-      <name>new_goFonHardware</name>
-      <type>entry</type>
-      <image>plugins/systems/images/select_phone.png</image>
-      <label>Phone</label>
-      <depends>phoneGeneric</depends>
-     </action>
-
-     <action>
-      <name>new_ieee802Device</name>
-      <type>entry</type>
-      <image>plugins/systems/images/select_component.png</image>
-      <label>Network device</label>
-      <depends>componentGeneric</depends>
-     </action>
-
-     <action>
-      <name>new_FAKE_OC_OpsiHost</name>
-      <type>entry</type>
-      <image>plugins/systems/images/select_winstation.png</image>
-      <label>Opsi client</label>
-      <depends>opsi</depends>
-     </action>
-    </action>
-
-    <action>
-      <type>separator</type>
-    </action>
+    %SERVICES%
 
     <action>
-     <type>sub</type>
-     <image>images/rocket.png</image>
-     <label>Trigger action</label>
-
-      <action>
-        <name>T_DaemonEvent_halt</name>
-        <depends>DaemonEvent_halt</depends>
-        <type>entry</type>
-        <image>images/lists/reload.png</image>
-        <label>Halt </label>
-      </action>
-
-      <action>
-        <name>T_DaemonEvent_reboot</name>
-        <depends>DaemonEvent_reboot</depends>
-        <type>entry</type>
-        <image>images/lists/reload.png</image>
-        <label>Reboot</label>
-      </action>
-
-      <action>
-        <name>T_DaemonEvent_wakeup</name>
-        <depends>DaemonEvent_wakeup</depends>
-        <type>entry</type>
-        <image>images/lists/on.png</image>
-        <label>Wakeup</label>
-      </action>
-
-      <action>
-        <name>T_DaemonEvent_update</name>
-        <depends>DaemonEvent_update</depends>
-        <type>entry</type>
-        <image>plugins/goto/images/update.png</image>
-        <label>Update</label>
-      </action>
-
-      <action>
-        <name>T_DaemonEvent_lock</name>
-        <depends>DaemonEvent_lock</depends>
-        <type>entry</type>
-        <image>images/lists/locked.png</image>
-        <label>Lock</label>
-      </action>
-
-      <action>
-        <name>T_DaemonEvent_activate</name>
-        <depends>DaemonEvent_activate</depends>
-        <type>entry</type>
-        <image>images/lists/unlocked.png</image>
-        <label>Activate</label>
-      </action>
-
-      <action>
-        <name>T_DaemonEvent_reinstall</name>
-        <depends>DaemonEvent_reinstall</depends>
-        <type>entry</type>
-        <image>plugins/goto/images/reinstall.png</image>
-        <label>Reinstall</label>
-      </action>
-
-
-    </action>
-
-
-
-    <action>
-     <type>sub</type>
-     <image>plugins/systems/images/clock.png</image>
-     <label>Schedule action</label>
-
-      <action>
-        <name>S_DaemonEvent_halt</name>
-        <depends>DaemonEvent_halt</depends>
-        <type>entry</type>
-        <image>images/lists/off.png</image>
-        <label>Halt</label>
-      </action>
-
-      <action>
-        <name>S_DaemonEvent_reboot</name>
-        <depends>DaemonEvent_reboot</depends>
-        <type>entry</type>
-        <image>images/lists/reload.png</image>
-        <label>Reboot</label>
-      </action>
-
-      <action>
-        <name>S_DaemonEvent_wakeup</name>
-        <depends>DaemonEvent_wakeup</depends>
-        <type>entry</type>
-        <image>images/lists/on.png</image>
-        <label>Wakeup</label>
-      </action>
-
-      <action>
-        <name>S_DaemonEvent_update</name>
-        <depends>DaemonEvent_update</depends>
-        <type>entry</type>
-        <image>plugins/goto/images/update.png</image>
-        <label>Update</label>
-      </action>
-
-      <action>
-        <name>S_DaemonEvent_lock</name>
-        <depends>DaemonEvent_lock</depends>
-        <type>entry</type>
-        <image>images/lists/locked.png</image>
-        <label>Lock</label>
-      </action>
-
-      <action>
-        <name>S_DaemonEvent_activate</name>
-        <depends>DaemonEvent_activate</depends>
-        <type>entry</type>
-        <image>images/lists/unlocked.png</image>
-        <label>Activate</label>
-      </action>
-
-      <action>
-        <name>S_DaemonEvent_reinstall</name>
-        <depends>DaemonEvent_reinstall</depends>
-        <type>entry</type>
-        <image>plugins/goto/images/reinstall.png</image>
-        <label>Reinstall</label>
-      </action>
-
+      <name>remove</name>
+      <type>entry</type>
+      <image>images/lists/trash.png</image>
+      <label>Remove</label>
     </action>
 
     <action>
     </action>
 
     <action>
-      <name>activateMultiple</name>
-      <depends>DaemonEvent_activate</depends>
+      <name>start</name>
       <type>entry</type>
-      <image>images/lists/unlocked.png</image>
-      <label>Activate systems</label>
+      <image>images/status_start.png</image>
+      <label>Start</label>
     </action>
 
     <action>
-      <name>remove</name>
+      <name>stop</name>
       <type>entry</type>
-      <image>images/lists/trash.png</image>
-      <label>Remove</label>
+      <image>images/status_stop.png</image>
+      <label>Stop</label>
     </action>
 
     <action>
-      <type>exporter</type>
+      <name>restart</name>
+      <type>entry</type>
+      <image>images/lists/reload.png</image>
+      <label>Restart</label>
     </action>
 
     <action>
     </action>
 
     <action>
-      <type>copypaste</type>
-    </action>
-
-    <action>
-      <type>snapshot</type>
+      <type>exporter</type>
     </action>
 
   </actionmenu>
 
-  <actiontriggers snapshot="true" copypaste="true">
+  <actiontriggers snapshot="false" copypaste="false">
 
     <action>
-      <name>setPassword</name>
+      <name>start</name>
       <type>entry</type>
-      <objectclass>FAKE_OC_PWD_changeAble</objectclass>
-      <image>images/lists/key.png</image>
-      <label>Change password</label>
+      <image>images/status_start.png</image>
+      <objectclass>AllowStart</objectclass> 
+      <label>Start</label>
     </action>
 
-
     <action>
-      <name>createISO</name>
+      <name>stop</name>
       <type>entry</type>
-      <objectclass>gotoWorkstation</objectclass>
-      <objectclass>FAIobject</objectclass>
-      <image>plugins/systems/images/cdrom.png</image>
-      <acl>workstation/workgeneric[createFAICD:w]</acl>
-      <label>Create ISO</label>
+      <image>images/status_stop.png</image>
+      <objectclass>AllowStop</objectclass> 
+      <label>Stop</label>
     </action>
 
     <action>
-      <name>cp</name>
-      <type>copypaste</type>
+      <name>restart</name>
+      <type>entry</type>
+      <image>images/lists/reload.png</image>
+      <objectclass>AllowRestart</objectclass> 
+      <label>Restart</label>
     </action>
 
     <action>
       <name>edit</name>
       <type>entry</type>
       <image>images/lists/edit.png</image>
-      <label>Edit role</label>
-    </action>
-
-    <action>
-      <name>snapshot</name>
-      <type>snapshot</type>
+      <objectclass>AllowEdit</objectclass> 
+      <label>Edit service</label>
     </action>
 
     <action>
       <name>remove</name>
       <type>entry</type>
       <image>images/lists/trash.png</image>
-      <acl>%acl[d]</acl>
-      <label>Remove system</label>
+      <objectclass>AllowRemove</objectclass> 
+      <label>Remove service</label>
     </action>
 
   </actiontriggers>