From: hickert Date: Fri, 15 Aug 2008 13:28:00 +0000 (+0000) Subject: Added opsi base class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a93629939c1400cb8e7fe3de7eeaab250a840b42;p=gosa.git Added opsi base class - It includes all necessary functionality to use gosa with opsi. Not yet finished git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12222 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsi/class_opsi.inc b/gosa-plugins/opsi/admin/opsi/class_opsi.inc new file mode 100644 index 000000000..442539138 --- /dev/null +++ b/gosa-plugins/opsi/admin/opsi/class_opsi.inc @@ -0,0 +1,264 @@ +. + */ + + + +/*! \brief This is the opsi base class, it handles + . gosa daemon requests and prepares data for opsi plugins. + */ +class opsi +{ + + + /*! \brief Returns a list of netboot products. + @param + @return + */ + public static function opsi_get_netboot_products() + { + /* +
gosa_opsi_get_netboot_products
+ GOSA + 00:01:6c:9d:b9:fa +
+ +
gosa_opsi_get_netboot_products
+ GOSA + GOSA + limux-cl-2.intranet.gonicus.de +
*/ + + } + + + /*! \brief Returns a list of all local products. + @param + @return + */ + public static function gosa_opsi_get_local_products() + { + /* +
gosa_opsi_get_local_products
+ GOSA + GOSA +
+ +
gosa_opsi_get_local_products
+ GOSA + GOSA + limux-cl-2.intranet.gonicus.de +
*/ + + } + + + /*! \brief Returns a list of all product properties. \ + . Additionally you can specify the host parameter to \ + . get host specific product properties + @param + @return + */ + public static function gosa_opsi_get_product_properties() + { + /* +
gosa_opsi_get_product_properties
+ GOSA + GOSA + firefox +
+ +
gosa_opsi_get_product_properties
+ GOSA + GOSA + firefox + limux-cl-2.intranet.gonicus.de +
+ */ + } + + + /*! \brief Set product properties, globally or per host. + @param + @return + */ + public static function gosa_opsi_set_product_properties() + { + /* +
gosa_opsi_set_product_properties
+ GOSA + 00:01:6c:9d:b9:fa + firefox + + askbeforeinst + false + +
+ +
gosa_opsi_set_product_properties
+ GOSA + 00:01:6c:9d:b9:fa + limux-cl-2.intranet.gonicus.de + firefox + + askbeforeinst + false + +
+ */ + } + + + /*! \brief Returns the clients hardware setup. + @param + @return + */ + public static function gosa_opsi_get_client_hardware() + { + /* +
gosa_opsi_get_client_hardware
+ GOSA + GOSA + limux-cl-2.intranet.gonicus.de +
+ */ + } + + + /*! \brief Returns the clients software setup. + @param + @return + */ + public static function gosa_opsi_get_client_software() + { + /* +
gosa_opsi_get_client_software
+ GOSA + GOSA + limux-cl-2.intranet.gonicus.de +
i + */ + } + + + /*! \brief Returns a list of all opsi clients. + @param + @return + */ + public static function gosa_opsi_list_clients() + { + /* +
gosa_opsi_list_clients
+ GOSA + 00:01:6c:9d:b9:fa +
+ */ + } + + + /*! \brief Deletes the given opsi client. + @param + @return + */ + public static function gosa_opsi_del_client() + { + /* +
gosa_opsi_del_client
+ GOSA + 00:01:6c:9d:b9:fa + limux-cl-2.intranet.gonicus.de +
+ */ + } + + + /*! \brief Triggers install/reinstall of an opsi client. + @param + @return + */ + public static function job_opsi_install_client() + { + /* +
job_opsi_install_client
+ GOSA + 00:01:6c:9d:b9:fa + limux-cl-2.intranet.gonicus.de + 00:11:25:4b:8c:e5 +
+ */ + } + + + /*! \brief Adds a new opsi client. + @param + @return + */ + public static function gosa_opsi_add_client() + { + /* +
gosa_opsi_add_client
+ GOSA + 00:01:6c:9d:b9:fa + limux-cl-2.intranet.gonicus.de + 00:11:25:4b:8c:e5 + Test halt + 1.2.3.4 + Im a note +
+ */ + } + + + /*! \brief Adds a given product to a client. + @param + @return + */ + public static function gosa_opsi_add_product_to_client() + { + /* +
gosa_opsi_add_product_to_client
+ GOSA + 00:01:6c:9d:b9:fa + 00:11:25:4b:8c:e5 + limux-cl-2.intranet.gonicus.de + winxppro +
+ */ + } + + + /*! \brief Removes a given product from a client. + @param + @return + */ + public static function gosa_opsi_del_product_from_client() + { + /* +
gosa_opsi_del_product_from_client
+ GOSA + 00:01:6c:9d:b9:fa + limux-cl-1.intranet.gonicus.de + 00:11:25:4b:8c:e5 + softprod +
+ */ + } +} + +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?>