summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2671e72)
raw | patch | inline | side by side (parent: 2671e72)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Jun 2008 08:03:19 +0000 (08:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Jun 2008 08:03:19 +0000 (08:03 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11362 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dak/addons/dak/class_DAK.inc | patch | blob | history | |
gosa-plugins/dak/addons/dak/class_dak_keyring.inc | patch | blob | history |
index fdeff60f6595cd8a6f9820099c2a5821a90d5725..8c7500391121279eb3fed3afbd94ef5fc5295912 100644 (file)
class DAK
{
+
+ /* Unused ... */
public static function get_repositories($config)
{
if(!$config instanceOf config){
}
+ /*! \brief Returns all configured repository server and some
+ informations about release/sections/parent.
+ @param Object The GOsa configuration object.
+ @return Array Repository infromations.
+ */
public static function get_repositories_by_server($config)
{
if(!$config instanceOf config){
}
- /*! \brief Returns all */
+ /*! \brief Returns all keyring entries for the specified server
+ @param String The servers mac address.
+ @return Array All keyring entries.
+ */
public static function list_keys($server)
{
$o_queue = new gosaSupportDaemon();
- $data = $o_queue->DAK_get_queue_entries($server);
+ $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 b400a5f26911eb66076b013397f364e83687264e..c7506c100f1b2c829abab0c6d808abbf0f1c6513 100644 (file)
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+/*! \brief The DAK keyring class used to manage DAK keyrings.
+ It provides remove/add key mehtods and lists all keys for a selected server.
+ */
class dak_keyring extends plugin
{
-
private $Servers = array();
private $selected_Server = array();
+ private $list = array();
+ public $attributes = array("selected_Server");
- private $list = array();
- public $attributes = array("selected_Server");
+ /*! \brief Creates a dak_keyring class.
+ @param The GOsa configuration object.
+ */
public function __construct($config)
{
plugin::plugin($config,NULL);
}
}
+
+ /*! \brief Create HTML output for this plugin.
+ @return String HTML output.
+ */
public function execute()
{
if(isset($_POST['search'])){
}
+ /*! \brief Refresh the list of keys for the currently selected server
+ This function is automatically called when a key was added and removed.
+ */
private function refresh_list()
{
$this->list = DAK::list_keys($this->Servers[$this->selected_Server]['MAC']);
}
+
+ /*! \brief Creates the HTML output representing the keylist
+ for this currently selected server
+ @return String HTML list containig all keys for the selected server.
+ */
private function CreateList()
{
$divlist = new divlist("DAK_keyring");
$divlist->SetWidth("100%");
$divlist->SetHeight("450px");
$divlist->SetEntriesPerPage(0);
-# $divlist->SetPluginMode(TRUE) ;
/* Set default col styles
*/
}
+ /*! \brief Act on the HTML posts for this plugin
+ */
public function save_object()
{
plugin::save_object();
}
}
-
+
+ /*! \brief Removes the given key from the keyring server.
+ @return Boolean TRUE in case of success else FALSE.
+ */
private function remove_key($key)
{
if($this->list[$key]){
}
+ /*! \brief Imports a new key into the keyring for the currently selected server
+ @return Boolean TRUE in case of success else FALSE.
+ */
private function import_key($key)
{
$mac = $this->Servers[$this->selected_Server]['MAC'];