Code

Udpated fai acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 03:36:03 +0000 (03:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 03:36:03 +0000 (03:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4182 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiManagement.inc
plugins/admin/fai/class_faiPackage.inc
plugins/admin/fai/class_faiPartitionTable.inc
plugins/admin/fai/class_faiProfile.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiTemplate.inc
plugins/admin/fai/class_faiVariable.inc

index 5d370753518651d23227629f3fdd398edf4f4f2e..9eae05cb44ceb89b6228e31d29e8d94dbf97f40a 100644 (file)
@@ -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"))
+          ));
   }
 }
 
index ed479f75f706b06018ba398114b1d8eaabcbe0ac..30659151b34c89540d88a7d4283cf1ced0fd1f97 100644 (file)
@@ -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:
 ?>
index a07c24240f40e50219970b4cf2a89e494eb67661..c91282532bf8c2fbeb9251b61fc629022e843f04 100644 (file)
@@ -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"))
+          ));
   }
 }
 
index 3acf00d825b5909edaf8097e1c6a269422a89cf3..59a1cc5d390304dffc56cebd1ee777b891aaefd1 100644 (file)
@@ -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"))
+          ));
   }
 }
 
index ee863431416191c0c2efb2b1182c6e4a82f7bc60..e9c646ecb38a96a9893d599298b774aa11473fdb 100644 (file)
@@ -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:
index 2610db8aeb7f11680549e9a240681fedd28c07a6..360ed01f34aa72a5395f431baf87f3cfa38fff23 100644 (file)
@@ -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"))
+          ));
   }
 }
 
index b0fb680a86ded18912afc5046af2faf1b727d56e..7ebcc1b373be3e089de60b938fab70e3e1bebf10 100644 (file)
@@ -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"))
+          ));
   }
 }
 
index 09e1fb6f62d6d9258016805774a28831b78975b6..eb2c71c0562278b3b7d1a4cebcef3278cdd01326 100644 (file)
@@ -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"))
+          ));
   }
 }