From: hickert Date: Fri, 22 Jan 2010 16:23:16 +0000 (+0000) Subject: Updated server service X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e39f1743f65159d75b1e153a1a393fe636e36ab7;p=gosa.git Updated server service -Service looks like it looked before -Just have to add actions again git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15270 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_filterServerService.inc b/gosa-plugins/systems/admin/systems/class_filterServerService.inc index dd5e0da91..b388570d6 100644 --- a/gosa-plugins/systems/admin/systems/class_filterServerService.inc +++ b/gosa-plugins/systems/admin/systems/class_filterServerService.inc @@ -11,6 +11,11 @@ class filterServerService { $data = $plugins[$name]->getListEntry(); $data['objectClass'] = array('FAKE_OC_ServerService'); $data['name'] = $name; + if($data['AllowStart']) $data['objectClass'][] = "AllowStart"; + if($data['AllowStop']) $data['objectClass'][] = "AllowStop"; + if($data['AllowRestart']) $data['objectClass'][] = "AllowRestart"; + if($data['AllowRemove']) $data['objectClass'][] = "AllowRemove"; + if($data['AllowEdit']) $data['objectClass'][] = "AllowEdit"; foreach($data as $key => $value){ if(!is_array($data[$key])) $data[$key] = array($data[$key]); $list[$name][] = $key; diff --git a/gosa-plugins/systems/admin/systems/serverService-list.tpl b/gosa-plugins/systems/admin/systems/serverService-list.tpl index b233c5874..0b2cc7960 100644 --- a/gosa-plugins/systems/admin/systems/serverService-list.tpl +++ b/gosa-plugins/systems/admin/systems/serverService-list.tpl @@ -10,7 +10,7 @@
- +
{$ROOT} {$BACK} {$HOME} {$RELOAD} {$SEPARATOR} {t}Base{/t} {$BASE}  {$SEPARATOR}  {$ACTIONS}{$ROOT} {$BACK} {$HOME} {$RELOAD} {$SEPARATOR}  {$ACTIONS}
diff --git a/gosa-plugins/systems/admin/systems/serverService-list.xml b/gosa-plugins/systems/admin/systems/serverService-list.xml index c179a6d41..e92f659e5 100644 --- a/gosa-plugins/systems/admin/systems/serverService-list.xml +++ b/gosa-plugins/systems/admin/systems/serverService-list.xml @@ -21,7 +21,7 @@ - |18px;c||250px|170px;r| + |18px;c||170px;r| @@ -54,59 +54,10 @@ - new_goServer + new entry - plugins/systems/images/select_server.png - - servgeneric - - - - new_gotoWorkstation - entry - plugins/systems/images/select_workstation.png - - workgeneric - - - - new_gotoTerminal - entry - plugins/systems/images/select_terminal.png - - termgeneric - - - - new_gotoPrinter - entry - plugins/systems/images/select_printer.png - - printgeneric - - - - new_goFonHardware - entry - plugins/systems/images/select_phone.png - - phoneGeneric - - - - new_ieee802Device - entry - plugins/systems/images/select_component.png - - componentGeneric - - - - new_FAKE_OC_OpsiHost - entry - plugins/systems/images/select_winstation.png - - opsi + images/lists/new.png + @@ -114,147 +65,6 @@ separator - - sub - images/rocket.png - - - - T_DaemonEvent_halt - DaemonEvent_halt - entry - images/lists/reload.png - - - - - T_DaemonEvent_reboot - DaemonEvent_reboot - entry - images/lists/reload.png - - - - - T_DaemonEvent_wakeup - DaemonEvent_wakeup - entry - images/lists/on.png - - - - - T_DaemonEvent_update - DaemonEvent_update - entry - plugins/goto/images/update.png - - - - - T_DaemonEvent_lock - DaemonEvent_lock - entry - images/lists/locked.png - - - - - T_DaemonEvent_activate - DaemonEvent_activate - entry - images/lists/unlocked.png - - - - - T_DaemonEvent_reinstall - DaemonEvent_reinstall - entry - plugins/goto/images/reinstall.png - - - - - - - - - - sub - plugins/systems/images/clock.png - - - - S_DaemonEvent_halt - DaemonEvent_halt - entry - images/lists/off.png - - - - - S_DaemonEvent_reboot - DaemonEvent_reboot - entry - images/lists/reload.png - - - - - S_DaemonEvent_wakeup - DaemonEvent_wakeup - entry - images/lists/on.png - - - - - S_DaemonEvent_update - DaemonEvent_update - entry - plugins/goto/images/update.png - - - - - S_DaemonEvent_lock - DaemonEvent_lock - entry - images/lists/locked.png - - - - - S_DaemonEvent_activate - DaemonEvent_activate - entry - images/lists/unlocked.png - - - - - S_DaemonEvent_reinstall - DaemonEvent_reinstall - entry - plugins/goto/images/reinstall.png - - - - - - - separator - - - - activateMultiple - DaemonEvent_activate - entry - images/lists/unlocked.png - - - remove entry @@ -266,63 +76,47 @@ exporter - - separator - - - - copypaste - - - - snapshot - - - + - setPassword + start entry - FAKE_OC_PWD_changeAble - images/lists/key.png - + images/status_start.png + AllowStart + - - createISO + stop entry - gotoWorkstation - FAIobject - plugins/systems/images/cdrom.png - workstation/workgeneric[createFAICD:w] - + images/status_stop.png + AllowStop + - cp - copypaste + restart + entry + images/lists/reload.png + AllowRestart + edit entry images/lists/edit.png + AllowEdit - - snapshot - snapshot - - remove entry images/lists/trash.png - %acl[d] + AllowRemove