Code

Added posts to service tabs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jun 2006 10:30:40 +0000 (10:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jun 2006 10:30:40 +0000 (10:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3712 594d385d-05f5-0310-b6e9-bd551577e9d8

13 files changed:
plugins/admin/systems/class_goCupsServer.inc
plugins/admin/systems/class_goFaxServer.inc
plugins/admin/systems/class_goFonServer.inc
plugins/admin/systems/class_goGlpiServer.inc
plugins/admin/systems/class_goImapServer.inc
plugins/admin/systems/class_goKrbServer.inc
plugins/admin/systems/class_goLdapServer.inc
plugins/admin/systems/class_goLogDBServer.inc
plugins/admin/systems/class_goMailServer.inc
plugins/admin/systems/class_goNtpServer.inc
plugins/admin/systems/class_goShareServer.inc
plugins/admin/systems/class_goSyslogServer.inc
plugins/admin/systems/class_goTerminalServer.inc

index 924519abf698f7090e5134a91017b7c70afd36b4..47fc45dbc75b71820e5dadc8262b3b6874fde8db 100644 (file)
@@ -66,6 +66,7 @@ class goCupsServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -82,6 +83,12 @@ class goCupsServer extends plugin{
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
     }
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
+
     show_ldap_error($ldap->get_error());
   }
 
index d8333160679e534dafafb2a591e593375ad288c9..934bc6c095282c17d01f125fdc955ae0c5e065b5 100644 (file)
@@ -68,6 +68,7 @@ class goFaxServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -84,6 +85,11 @@ class goFaxServer extends plugin{
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
     }
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
     show_ldap_error($ldap->get_error());
   }
 
index e420801791c7637859c105c0c0e190139b35bd6a..4d0fca755371dbb77d4f5f08509c920509a1c754 100644 (file)
@@ -71,6 +71,7 @@ class goFonServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -88,6 +89,11 @@ class goFonServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }
 
 
index 7491ea64097012399af6df4a1b301aedc8f89657..14938f41d7d3b04022a8da9f4535169e7ab2719d 100644 (file)
@@ -70,6 +70,7 @@ class goGlpiServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -87,6 +88,11 @@ class goGlpiServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }
 
 
index 8ad0d12dacf1c381b97b36cbdfef7d87c27ca084..1ae6556b9ebff97b2895ef02a8f850cdd6d1be22 100644 (file)
@@ -103,6 +103,7 @@ class goImapServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
   function save()
@@ -120,6 +121,12 @@ class goImapServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
+
   }
 
 
index e5beef1250719eacbd6e3f06888602a497b57cce..5c96c33629586ec8a08a29e62a7b34789cf4c7b6 100644 (file)
@@ -69,6 +69,7 @@ class goKrbServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -86,6 +87,11 @@ class goKrbServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }
 
 
index ce2e2c77b77fd1d1699d8d21aeef9c294b8cd375..888483dfbc5b87881b64f79d087c1cf4f7feffe5 100644 (file)
@@ -67,6 +67,7 @@ class goLdapServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -84,6 +85,12 @@ class goLdapServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
+
   }
 
 
index 6c0ab3a567b1cf42597b74f1451d436c36620b62..254abe369660ae282d0d7b9475f1ee49f55dce00 100644 (file)
@@ -69,6 +69,7 @@ class goLogDBServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -86,6 +87,11 @@ class goLogDBServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }
 
 
index bb0a9347a27d93745c08fc59998de6b18f5c6dd4..c8007515121b5548def92c9778e57766ce466dea 100644 (file)
@@ -503,6 +503,7 @@ class goMailServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -570,6 +571,12 @@ class goMailServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
+
   }
 
 
index 3f423dea7a7b84b892ccd4581c34957f7b7252f5..21bab42762ab4def6e20dde441f7dab6632511a2 100644 (file)
@@ -90,6 +90,7 @@ class goNtpServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -111,6 +112,11 @@ class goNtpServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }
 
 
index ac6c5408b14e6a273e57a7cbd18b58bae3c96b0b..010c18cadbe3c5e9e2fb408e01c1af4c8b45aabc 100644 (file)
@@ -168,6 +168,7 @@ class goShareServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -201,6 +202,11 @@ class goShareServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }
 
 
index 8011baff64aef4d837c836156f6e625e9a808e87..3ef9c860f4eb8737df08c21de6c496f6968121c5 100644 (file)
@@ -66,6 +66,7 @@ class goSyslogServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -83,6 +84,11 @@ class goSyslogServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }
 
 
index 3ddc52c8e41359f55fbec7d51acf9a24b40df1d8..86e2bd8205fe09ccba9ae4861d6108bf1fd61c21 100644 (file)
@@ -69,6 +69,7 @@ class goTerminalServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    $this->handle_post_events("remove");
   }
 
 
@@ -91,6 +92,11 @@ class goTerminalServer extends plugin{
       $ldap->add($this->attrs);
     }
     show_ldap_error($ldap->get_error());
+    if($this->initially_was_account){
+      $this->handle_post_events("modify");
+    }else{
+      $this->handle_post_events("add");
+    }
   }