From 7ec9c9ca60fbfd46454e66491870223f48ed4ae4 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Jul 2006 06:42:58 +0000 Subject: [PATCH] Added acls to workstations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4187 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/class_workstationGeneric.inc | 39 ++++++--------- .../systems/class_workstationService.inc | 49 ++++++++++--------- 2 files changed, 40 insertions(+), 48 deletions(-) diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index f689de9e0..3f5d1b717 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -462,30 +462,21 @@ class workgeneric extends plugin function plInfo() { return (array( - "plDescription" => _("Workstation"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "gotoWorkstation","description"=>_("Workstation")), - - "cn" => _("Workstation name"), - - "gotoMode" => _("Goto mode"), - "gotoSyslogServer" => _("Syslog server"), - "gotoNtpServer" => _("Ntp server"), - "FAIstate" => _("Action flag"), - -// "gotoFloppyEnable" => _(""), -// "gotoCdromEnable" => _(""), -// "gotoSndModule" => _(""), - -// "ghCpuType" => _(""), -// "ghMemSize" => _(""), -// "ghUsbSupport" => _(""), -// "ghGfxAdapter" => _(""), -// "ghSoundAdapter" => _(""), -// "gotoLastUser" => _(""), -// "l" => _(""), -// "FAIscript" => _("FAI status ") - )); + "plShortName" => _("Generic"), + "plDescription" => _("Workstation generic"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("workstation" => array("description" => _("Workstation"), + "objectClass" => _("gotoWorkstation"))), + "plProvidedAcls"=> array( + "cn" => _("Workstation name"), + "gotoMode" => _("Goto mode"), + "gotoSyslogServer" => _("Syslog server"), + "gotoNtpServer" => _("Ntp server"), + "FAIstate" => _("Action flag")) + )); } } diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc index 2293bc4fb..cbf0a3224 100644 --- a/plugins/admin/systems/class_workstationService.inc +++ b/plugins/admin/systems/class_workstationService.inc @@ -422,32 +422,33 @@ class workservice extends plugin $this->handle_post_events("modify"); } - - /* Return plugin informations for acl handling */ + /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("Services"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "gotoWorkstation"), - - "gotoXMonitor" => _("Monitor"), - "gotoXDriver" => _("Driver"), - "gotoXResolution" => _("Resolution"), - "gotoXColordepth" => _("Color depth"), - "gotoXHsync" => _("H sync"), - "gotoXVsync" => _("V sync"), - - "gotoScannerEnable" => _("Enable scanner"), - "gotoScannerClients" => _("Scanner client"), - "gotoScannerBackend" => _("Scanner backend"), - - "gotoXKbModel" => _("Keyboard model"), - "gotoXKbLayout" => _("Keyboard layout"), - "gotoXKbVariant" => _("Keyboard Variant"), - "gotoXMouseType" => _("Mouse type"), - "gotoXMouseport" => _("Mouse port"), - "goFonHardware" => _("Telefon Hardware"))); + return (array( + "plShortName" => _("Service"), + "plDescription" => _("Workstation service"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("workstation"), + + "plProvidedAcls"=> array( + "gotoXMonitor" => _("Monitor"), + "gotoXDriver" => _("Gfx driver"), + "gotoXResolution" => _("Gfx resolution"), + "gotoXColordepth" => _("Gfx color depth"), + "gotoXHsync" => _("Hsync"), + "gotoXVsync" => _("Vsync"), + "gotoScannerEnable" => _("Scanner enabled"), + "gotoXKbModel" => _("Keyboard model"), + "gotoXKbLayout" => _("Keyboard layout"), + "gotoXKbVariant" => _("Keyboard variant"), + "gotoXMouseType" => _("Mouse type"), + "gotoXMouseport" => _("Mouse port"), + "goFonHardware" => _("Telephone hardware")) + )); } } -- 2.30.2