From f04423770b34dda393d2ba33a9d8721540e3f57b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Jul 2006 03:36:03 +0000 Subject: [PATCH] Udpated fai acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4182 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 22 +++++++----- plugins/admin/fai/class_faiManagement.inc | 15 ++++++++ plugins/admin/fai/class_faiPackage.inc | 26 ++++++++------ plugins/admin/fai/class_faiPartitionTable.inc | 34 +++++++++++-------- plugins/admin/fai/class_faiProfile.inc | 21 +++++++----- plugins/admin/fai/class_faiScript.inc | 23 ++++++++----- plugins/admin/fai/class_faiTemplate.inc | 27 +++++++++------ plugins/admin/fai/class_faiVariable.inc | 21 ++++++++---- 8 files changed, 124 insertions(+), 65 deletions(-) diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 5d3707535..9eae05cb4 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -470,14 +470,20 @@ class faiHook extends plugin /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("FAI hook"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "FAIclass"), - "cn" => _("Name"), - "description" => _("Description"), - "FAItast" => _("Task"), - "FAIscript" => _("FAI script"))); + return (array( + "plShortName" => _("Hook"), + "plDescription" => _("FAI hook"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"), + "plProvidedAcls" => array( + "cn" => _("Name"), + "description" => _("Description"), + "FAItast" => _("Task"), + "FAIscript" => _("FAI script")) + )); } } diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index ed479f75f..30659151b 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -800,6 +800,21 @@ class faiManagement extends plugin $this->DivListFai->save_object(); } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Management"), + "plDescription" => _("FAI management"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"=> array("description" => _("FAI"), + "objectClass" => "FAIclass")), + "plProvidedAcls"=> array()); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index a07c24240..c91282532 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -536,16 +536,22 @@ class faiPackage extends plugin /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("FAI Package list"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "FAIclass"), - "cn" => _("Name"), - "description" => _("Description"), - "FAIpackage" => _("Packages"), - "FAIdebianSection" => _("Section"), - "FAIinstallMethod" => _("Install Method"), - "FAIdebianRelease" => _("Release"))); + return (array( + "plShortName" => _("Package"), + "plDescription" => _("FAI Package list"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"), + "plProvidedAcls" => array( + "cn" => _("Name"), + "description" => _("Description"), + "FAIpackage" => _("Packages"), + "FAIdebianSection" => _("Section"), + "FAIinstallMethod" => _("Install Method"), + "FAIdebianRelease" => _("Release")) + )); } } diff --git a/plugins/admin/fai/class_faiPartitionTable.inc b/plugins/admin/fai/class_faiPartitionTable.inc index 3acf00d82..59a1cc5d3 100644 --- a/plugins/admin/fai/class_faiPartitionTable.inc +++ b/plugins/admin/fai/class_faiPartitionTable.inc @@ -479,23 +479,29 @@ class faiPartitionTable extends plugin $this->handle_post_events("add"); } - + /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("FAI partition table"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "FAIclass"), - "cn" => _("Name"), - "FAIpartitionType" => _("Partition type"), - "FAIpartitionNr" => _("Partition no."), - "FAIfsType" => _("File system type"), - "FAImountPoint" => _("Mount point"), - "FAIpartitionSize" => _("Partition size"), - "FAImountOptions" => _("Mount options"), - "FAIfsOptions" => _("File system options"), - "FAIpartitionFlags" => _("Partition flags"))); + return (array( + "plShortName" => _("Partition table"), + "plDescription" => _("FAI partition table"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"), + "plProvidedAcls" => array( + "cn" => _("Name"), + "FAIpartitionType" => _("Partition type"), + "FAIpartitionNr" => _("Partition no."), + "FAIfsType" => _("File system type"), + "FAImountPoint" => _("Mount point"), + "FAIpartitionSize" => _("Partition size"), + "FAImountOptions" => _("Mount options"), + "FAIfsOptions" => _("File system options"), + "FAIpartitionFlags" => _("Partition flags")) + )); } } diff --git a/plugins/admin/fai/class_faiProfile.inc b/plugins/admin/fai/class_faiProfile.inc index ee8634314..e9c646ecb 100644 --- a/plugins/admin/fai/class_faiProfile.inc +++ b/plugins/admin/fai/class_faiProfile.inc @@ -428,15 +428,20 @@ class faiProfile extends plugin /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("FAI profile"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "FAIclass"), - "cn" => _("Name"), - "description" => _("Description"), - "FAIclass" => _("FAI classes"))); + return (array( + "plShortName" => _("Profile"), + "plDescription" => _("FAI profile"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"), + "plProvidedAcls" => array( + "cn" => _("Name"), + "description" => _("Description"), + "FAIclass" => _("FAI classes")) + )); } - } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 2610db8ae..360ed01f3 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -442,17 +442,24 @@ class faiScript extends plugin } } + /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("FAI script"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "FAIclass"), - "cn" => _("Name"), - "description" => _("Description"), - "FAIpriority" => _("Script priority"), - "FAIscript" => _("FAI script"))); + return (array( + "plShortName" => _("Script"), + "plDescription" => _("FAI script"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"), + "plProvidedAcls" => array( + "cn" => _("Name"), + "description" => _("Description"), + "FAIpriority" => _("Script priority"), + "FAIscript" => _("FAI script")) + )); } } diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index b0fb680a8..7ebcc1b37 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -406,19 +406,26 @@ class faiTemplate extends plugin } } + /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("FAI template"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "FAIclass"), - "cn" => _("Name"), - "description" => _("Description"), - "FAItemplateFile" => _("Template file"), - "FAItemplatePath" => _("Template path"), - "FAIowner" => _("File owner"), - "FAImode" => _("File permissions"))); + return (array( + "plShortName" => _("Template"), + "plDescription" => _("FAI template"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"), + "plProvidedAcls" => array( + "cn" => _("Name"), + "description" => _("Description"), + "FAItemplateFile" => _("Template file"), + "FAItemplatePath" => _("Template path"), + "FAIowner" => _("File owner"), + "FAImode" => _("File permissions")) + )); } } diff --git a/plugins/admin/fai/class_faiVariable.inc b/plugins/admin/fai/class_faiVariable.inc index 09e1fb6f6..eb2c71c05 100644 --- a/plugins/admin/fai/class_faiVariable.inc +++ b/plugins/admin/fai/class_faiVariable.inc @@ -373,17 +373,24 @@ class faiVariable extends plugin $this->handle_object_tagging($sub_dn, $this->gosaUnitTag); } } + /* Return plugin informations for acl handling */ function plInfo() { - return (array( - "plDescription" => _("FAI variable"), - "plSelfModify" => FALSE, - "plDepends" => array("objectClass" => "FAIclass"), - "cn" => _("Name"), - "description" => _("Description"), - "FAIvariableContent"=> _("Variable content"))); + return (array( + "plShortName" => _("Variable"), + "plDescription" => _("FAI variable"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("fai"), + "plProvidedAcls" => array( + "cn" => _("Name"), + "description" => _("Description"), + "FAIvariableContent"=> _("Variable content")) + )); } } -- 2.30.2