From: hickert Date: Mon, 9 Nov 2009 14:32:45 +0000 (+0000) Subject: Updated mimetype listing. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=88a52a70b192b582b5497429863ddb8fd77cab43;p=gosa.git Updated mimetype listing. -Not yet finished git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14803 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc index 843ce1df6..bff987415 100644 --- a/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc +++ b/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc @@ -3,7 +3,7 @@ * This code is part of GOsa (http://www.gosa-project.org) * Copyright (C) 2003-2008 GONICUS GmbH * - * ID: $$Id: class_applicationManagement.inc 14766 2009-11-05 14:30:35Z hickert $$ + * ID: $$Id: class_mimetypeManagement.inc 14766 2009-11-05 14:30:35Z hickert $$ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,18 +22,18 @@ class mimetypeManagement extends management { - var $plHeadline = "Applications"; - var $plDescription = "Application management"; - var $plIcon = "plugins/goto/images/application.png"; + var $plHeadline = "Mime types"; + var $plDescription = "Manage mime types"; + var $plIcon = "plugins/goto/images/mimetypes.png"; - var $app_release = ""; // The currently selected release while in release management mode! + var $mime_release = ""; // The currently selected release while in release management mode! // Tab definition - protected $tabClass = "apptabs"; - protected $tabType = "APPSTABS"; - protected $aclCategory = "application"; - protected $aclPlugin = "application"; - protected $objectName = "application"; + protected $tabClass = "mimetabs"; + protected $tabType = "MIMETABS"; + protected $aclCategory = "mimetypes"; + protected $aclPlugin = "mimetype"; + protected $objectName = "mimetype"; function __construct($config,$ui) { @@ -41,14 +41,14 @@ class mimetypeManagement extends management $this->ui = $ui; if($this->IsReleaseManagementActivated()){ - $this->app_release = get_ou('applicationRDN').$this->config->current['BASE']; + $this->mime_release = get_ou('mimetypeRDN').$this->config->current['BASE']; $filter_xml = "mimetype-filter-release.xml"; $list_xml = "mimetype-list-release.xml"; $this->storagePoints= array(); }else{ $filter_xml = "mimetype-filter.xml"; $list_xml = "mimetype-list.xml"; - $this->storagePoints= array(get_ou("applicationRDN")); + $this->storagePoints= array(get_ou("mimetypeRDN")); } # // Build filter @@ -71,12 +71,7 @@ class mimetypeManagement extends management if($this->config->get_cfg_value("enableSnapshots") == "true"){ $this->snapHandler = new SnapshotHandler($this->config); } - parent::__construct($config, $ui, "applications", $headpage); - - $this->registerAction("edit_application","editEntry"); - $this->registerAction("edit_environment","editEntry"); - $this->registerAction("edit_appapplication","editEntry"); - $this->registerAction("edit_mailapplication","editEntry"); + parent::__construct($config, $ui, "mimetypes", $headpage); } function renderList() @@ -87,9 +82,9 @@ class mimetypeManagement extends management $filter->setComboBoxOptions("RELEASE",$this->getReleaseList()); if(isset($_POST['RELEASE'])){ - $this->app_release = get_post('RELEASE'); + $this->mime_release = get_post('RELEASE'); } - $headpage->setBase($this->app_release); + $headpage->setBase($this->mime_release); } $headpage->update(); @@ -101,7 +96,7 @@ class mimetypeManagement extends management { $list = array(); if(empty($base)){ - $base = get_ou('applicationRDN').$this->config->current['BASE']; + $base = get_ou('mimetypeRDN').$this->config->current['BASE']; $list[$base] = "/"; } @@ -117,8 +112,7 @@ class mimetypeManagement extends management function IsReleaseManagementActivated() { - return(FALSE); - + return(false); /* Check if we should enable the release selection */ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs')); if(!empty($tmp)){ diff --git a/gosa-plugins/goto/admin/mimetypes/main.inc b/gosa-plugins/goto/admin/mimetypes/main.inc index d2ec0ab87..1efd944a4 100644 --- a/gosa-plugins/goto/admin/mimetypes/main.inc +++ b/gosa-plugins/goto/admin/mimetypes/main.inc @@ -35,7 +35,7 @@ if ( $cleanup ){ session::un_set('mimetypeManagement'); }else{ - /* Create applicationmanagement object on demand */ + /* Create mimetypemanagement object on demand */ if (!session::is_set('mimetypeManagement')){ $mimetypeManagement= new mimetypeManagement ($config, $ui); session::set('mimetypeManagement',$mimetypeManagement); diff --git a/gosa-plugins/goto/admin/mimetypes/mimetype-filter-release.xml b/gosa-plugins/goto/admin/mimetypes/mimetype-filter-release.xml index ae5852514..222500930 100644 --- a/gosa-plugins/goto/admin/mimetypes/mimetype-filter-release.xml +++ b/gosa-plugins/goto/admin/mimetypes/mimetype-filter-release.xml @@ -2,7 +2,7 @@ - application + mimetype true @@ -10,13 +10,13 @@ LDAP - (&(objectClass=gosaApplication)$NAME) + (&(objectClass=gotoMimeType)$NAME) dn objectClass cn description - auto + one @@ -38,7 +38,7 @@ true LDAP - (&(objectClass=gosaApplication)(|(cn=*$NAME*)(description=*$NAME*))) + (&(objectClass=gotoMimeType)(|(cn=*$NAME*)(description=*$NAME*))) cn 0.5 3 diff --git a/gosa-plugins/goto/admin/mimetypes/mimetype-filter.xml b/gosa-plugins/goto/admin/mimetypes/mimetype-filter.xml index 7e4663f0c..cef6d4253 100644 --- a/gosa-plugins/goto/admin/mimetypes/mimetype-filter.xml +++ b/gosa-plugins/goto/admin/mimetypes/mimetype-filter.xml @@ -2,7 +2,7 @@ - application + mimetypes true @@ -10,7 +10,7 @@ LDAP - (&(objectClass=gosaApplication)$NAME) + (&(objectClass=gotoMimeType)$NAME) dn objectClass cn @@ -19,14 +19,6 @@ one - - RELEASE - combobox - Loading. - Loading.. - Loading... - - textfield NAME @@ -38,7 +30,7 @@ true LDAP - (&(objectClass=gosaApplication)(|(cn=*$NAME*)(description=*$NAME*))) + (&(objectClass=gotoMimeType)(|(cn=*$NAME*)(description=*$NAME*))) cn 0.5 3 diff --git a/gosa-plugins/goto/admin/mimetypes/mimetype-list-release.xml b/gosa-plugins/goto/admin/mimetypes/mimetype-list-release.xml index 374c843e3..7be49fc64 100644 --- a/gosa-plugins/goto/admin/mimetypes/mimetype-list-release.xml +++ b/gosa-plugins/goto/admin/mimetypes/mimetype-list-release.xml @@ -7,16 +7,16 @@ false true - application - + mimetypes + 1 - - gosaApplication - application - application - plugins/goto/images/select_application.png + + gotoMimeType + mimetypes + mimetype + plugins/goto/images/select_mimetype.png @@ -71,7 +71,7 @@ new entry images/lists/new.png - + @@ -122,7 +122,7 @@ edit entry images/lists/edit.png - + @@ -134,8 +134,8 @@ remove entry images/lists/trash.png - application/application[d] - + mimetype/mimetype[d] + diff --git a/gosa-plugins/goto/admin/mimetypes/mimetype-list.xml b/gosa-plugins/goto/admin/mimetypes/mimetype-list.xml index f322e9735..404dd21a0 100644 --- a/gosa-plugins/goto/admin/mimetypes/mimetype-list.xml +++ b/gosa-plugins/goto/admin/mimetypes/mimetype-list.xml @@ -7,16 +7,16 @@ true true - application - + mimetypes + 1 - - gosaApplication - application - application - plugins/goto/images/select_application.png + + gotoMimeType + mimetypes + mimetype + plugins/goto/images/select_mimetype.png @@ -71,7 +71,7 @@ new entry images/lists/new.png - + @@ -122,7 +122,7 @@ edit entry images/lists/edit.png - + @@ -134,8 +134,8 @@ remove entry images/lists/trash.png - application/application[d] - + mimetype/mimetype[d] +