From: hickert Date: Thu, 19 Jun 2008 08:51:16 +0000 (+0000) Subject: Updated DAK classes. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=216fe6b8bd41afbe9689f2501078670682bc4174;p=gosa.git Updated DAK classes. -Added ACL infos. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11363 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dak/addons/dak/class_DAK.inc b/gosa-plugins/dak/addons/dak/class_DAK.inc index 8c7500391..085bad7ad 100644 --- a/gosa-plugins/dak/addons/dak/class_DAK.inc +++ b/gosa-plugins/dak/addons/dak/class_DAK.inc @@ -75,7 +75,6 @@ class DAK { $o_queue = new gosaSupportDaemon(); $data = $o_queue->DAK_keyring_entries($server); - print_a($data); if($o_queue->is_error()){ msg_dialog::display(_("Error"), $o_queue->get_error(), ERROR_DIALOG); } diff --git a/gosa-plugins/dak/addons/dak/class_dak_keyring.inc b/gosa-plugins/dak/addons/dak/class_dak_keyring.inc index c7506c100..89956be6a 100644 --- a/gosa-plugins/dak/addons/dak/class_dak_keyring.inc +++ b/gosa-plugins/dak/addons/dak/class_dak_keyring.inc @@ -249,6 +249,25 @@ class dak_keyring extends plugin $mac = $this->Servers[$this->selected_Server]['MAC']; return(DAK::import_key($mac,$key)); } + + + /*! \brief ACL plugin information + */ + static function plInfo() + { + return (array( + "plShortName" => _("DAK keyring")." ("._("Addon").")", + "plDescription" => _("DAK keyring management")." ("._("Addon").")", + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 98, + "plSection" => array("addon"), + "plCategory" => array("server"), + "plProvidedAcls" => + array( + ) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/gosa-plugins/dak/addons/dak/class_dak_queue.inc b/gosa-plugins/dak/addons/dak/class_dak_queue.inc index ff4a55fda..3b23e0bcf 100644 --- a/gosa-plugins/dak/addons/dak/class_dak_queue.inc +++ b/gosa-plugins/dak/addons/dak/class_dak_queue.inc @@ -48,6 +48,24 @@ class dak_queue extends plugin } } } + + /*! \brief ACL plugin information + */ + static function plInfo() + { + return (array( + "plShortName" => _("DAK queue")." ("._("Addon").")", + "plDescription" => _("DAK queue management")." ("._("Addon").")", + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 98, + "plSection" => array("addon"), + "plCategory" => array("server"), + "plProvidedAcls" => + array( + ) + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/gosa-plugins/dak/addons/dak/class_dak_repository.inc b/gosa-plugins/dak/addons/dak/class_dak_repository.inc index 614fff3c6..cad356b8f 100644 --- a/gosa-plugins/dak/addons/dak/class_dak_repository.inc +++ b/gosa-plugins/dak/addons/dak/class_dak_repository.inc @@ -30,21 +30,26 @@ class dak_repository extends plugin public function execute() { $smarty= get_smarty(); - return($smarty->fetch (get_template_path('dak_queue.tpl', TRUE, dirname(__FILE__)))); + return($smarty->fetch (get_template_path('dak_repository.tpl', TRUE, dirname(__FILE__)))); } + + /*! \brief ACL plugin information + */ static function plInfo() { return (array( - "plShortName" => _("Repository"), - "plDescription" => _("DAK repository"), + "plShortName" => _("DAK repository")." ("._("Addon").")", + "plDescription" => _("DAK repository management")." ("._("Addon").")", "plSelfModify" => FALSE, "plDepends" => array(), - "plPriority" => 0, + "plPriority" => 98, "plSection" => array("addon"), - "plCategory" => array("dak" => array("objectClass" => "none", "description" => _("DAK"))), - "plProvidedAcls" => array("Comment" => _("Description")) + "plCategory" => array("server"), + "plProvidedAcls" => + array( + ) )); } }