Code

Upated gotomasses target list.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Feb 2008 07:49:55 +0000 (07:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Feb 2008 07:49:55 +0000 (07:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9092 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/gotomasses/class_target_list.inc

index 2cf1a24e17865d4098dcda558b23d711006507e0..f6685dd665f90eebbe1503772ccd935d89714d4c 100644 (file)
@@ -19,6 +19,7 @@ class target_list extends MultiSelectWindow
   var $ogroups        ;
   var $servers        ;
   var $workstations   ;
+  var $incoming       ;
 
 
   /* Subsearch checkbox */
@@ -30,7 +31,7 @@ class target_list extends MultiSelectWindow
  
   function target_list(&$config,$Targets_used)
   {
-    MultiSelectWindow::MultiSelectWindow($config, "Targetselection", array("ogroup","gotomasses"));
+    MultiSelectWindow::MultiSelectWindow($config, "Targetselection", array("ogroup","server","incoming","workstation","gotomasses"));
 
     $this->Targets_used = $Targets_used;
     
@@ -51,6 +52,7 @@ class target_list extends MultiSelectWindow
     $this->AddCheckBox("ogroups",       _("Select to see object groups"),  _("Show object groups"), true);
     $this->AddCheckBox("servers",       _("Select to see servers")  ,   _("Show servers"), true);
     $this->AddCheckBox("workstations",  _("Select to see workstations"),_("Show workstations"), true);
+    $this->AddCheckBox("incoming",      _("Select to see incoming objects")  , _("Show new objects"), true);
 
     /* Add SubSearch checkbox */
     $this->AddCheckBox(SEPERATOR);
@@ -239,6 +241,7 @@ class target_list extends MultiSelectWindow
     $chk = array(
         "ogroups"       => "(&(objectClass=gosaGroupOfNames)(|(gosaGroupObjects=*S*)(gosaGroupObjects=*W*)))" ,
         "servers"       => "(objectClass=goServer)" ,
+        "incoming"      => "(objectClass=GOhard)" ,
         "workstations"  => "(objectClass=gotoWorkstation)");
 
     /* Create filter */
@@ -259,6 +262,15 @@ class target_list extends MultiSelectWindow
             array("cn","objectClass","ipHostNumber","description"), GL_SIZELIMIT ));
       $res= array_merge($res,get_list($filter, "server", get_ou('serverou').$base, 
             array("cn","objectClass","ipHostNumber","description"), GL_SIZELIMIT ));
+
+      $deps_a = array(
+          get_ou("workstationou"),
+          get_ou("incominou"),
+          get_ou("serverou"),
+          get_ou("ogroupou"));
+
+      $res = get_sub_list($filter,array("server","incoming","workstation","ogroup"), 
+                  $deps_a,get_ou("systemsou").$base,array("cn","objectClass","ipHostNumber","description"),GL_SIZELIMIT);
     }
 
     $this->list= $res;