diff --git a/datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml b/datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml new file mode 100755 index 000000000..341eb1016 --- /dev/null +++ b/datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml @@ -0,0 +1,952 @@ + + + + + PhysicalDevice + + bizmodel,searchable + false + autoincrement + rack + id + + + %1$s + + + + + + images/rack.png + + + + + + + + + nb_u + + true + + + DatacenterDevice + rack_id + add_only + 0 + 0 + + + Enclosure + rack_id + add_only + 0 + 0 + + + + +
+ + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + 130 + + + 140 + + + 150 + + + 160 + + + 170 + + + 180 + + + 190 + + + 200 + + + 210 + + +
+ + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + 130 + + + + + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + +
+
+ + PhysicalDevice + + bizmodel,searchable + false + autoincrement + enclosure + id + + + %1$s + + + + + + images/enclosure.png + + + + + + + + + + + rack_id + Rack + false + DEL_MANUAL + + + rack_id + name + + + nb_u + + true + + + DatacenterDevice + enclosure_id + add_only + 0 + 0 + + + + + true + public + Overload-DBObject + array("sQuery"=>"SELECT DatacenterDevice WHERE enclosure_id = :this->id", "bPropagate"=>true, "iDistance"=>10), + ); + return array_merge($aRels, parent::GetRelationQueries($sRelCode)); + break; + default: + return parent::GetRelationQueries($sRelCode); + } + }]]> + + + +
+ + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + 130 + + + 140 + + + 150 + + + 160 + + + 170 + + + 180 + + + 190 + + + 200 + + + 210 + + +
+ + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + + + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + +
+
+ + PhysicalDevice + + bizmodel,searchable + true + autoincrement + electricalconnection + id + + + %1$s + + + + + + images/powersource.png + + + + + + + + + + + + true + public + Overload-DBObject + array("sQuery"=>"SELECT DatacenterDevice WHERE powerA_id = :this->id OR powerB_id = :this->id", "bPropagate"=>true, "iDistance"=>10), + "pdu" => array("sQuery"=>"SELECT PDU WHERE powerstart_id = :this->id", "bPropagate"=>true, "iDistance"=>10), + + ); + return array_merge($aRels, parent::GetRelationQueries($sRelCode)); + break; + + case 'depends on': + + $aRels = array( + + ); + return array_merge($aRels, parent::GetRelationQueries($sRelCode)); + break; + + default: + return parent::GetRelationQueries($sRelCode); + } + }]]> + + + +
+ + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + 130 + + + 140 + + + 150 + + + 160 + + + 170 + + +
+ + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + + + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + +
+
+ + ElectricalConnection + + bizmodel,searchable + false + autoincrement + arrival + id + + + %1$s + + + + + + images/powerstart.png + + + + + + + + + + + PDU + powerstart_id + add_only + 0 + 0 + + + + +
+ + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + 130 + + + 140 + + + 150 + + + 160 + + + 170 + + + 180 + + + 190 + + +
+ + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + + + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + +
+
+ + ElectricalConnection + + bizmodel,searchable + false + autoincrement + pdu + id + + + %1$s + + + + + + images/pdu.png + + + + + + + + + + + rack_id + Rack + false + DEL_MANUAL + + + rack_id + name + + + id AND location_id = :this->location_id]]> + + + + powerstart_id + ElectricalConnection + true + DEL_MANUAL + + + powerstart_id + name + + + + +
+ + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + 130 + + + 140 + + + 150 + + + 160 + + + 170 + + + 180 + + + 190 + + + 200 + + +
+ + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + 80 + + + 90 + + + 100 + + + 110 + + + 120 + + + 130 + + + + + + + 10 + + + 20 + + + 30 + + + 40 + + + 50 + + + 60 + + + 70 + + + +
+
+
+ + + + + + + + 1 + Rack + + + 2 + Enclosure + + + 9 + ElectricalConnection + + + + + + + +
diff --git a/datamodels/2.x/itop-datacenter-mgmt/en.dict.itop-datacenter-mgmt.php b/datamodels/2.x/itop-datacenter-mgmt/en.dict.itop-datacenter-mgmt.php new file mode 100755 index 000000000..fab2ba01f --- /dev/null +++ b/datamodels/2.x/itop-datacenter-mgmt/en.dict.itop-datacenter-mgmt.php @@ -0,0 +1,29 @@ + + +/** + * Localized data + * + * @copyright Copyright (C) 2010-2012 Combodo SARL + * @license http://opensource.org/licenses/AGPL-3.0 + */ + +Dict::Add('EN US', 'English', 'English', array( + // Dictionary entries go here +)); +?> diff --git a/datamodels/2.x/itop-datacenter-mgmt/images/enclosure.png b/datamodels/2.x/itop-datacenter-mgmt/images/enclosure.png new file mode 100755 index 000000000..e92ca2bee Binary files /dev/null and b/datamodels/2.x/itop-datacenter-mgmt/images/enclosure.png differ diff --git a/datamodels/2.x/itop-datacenter-mgmt/images/pdu.png b/datamodels/2.x/itop-datacenter-mgmt/images/pdu.png new file mode 100755 index 000000000..c3255bc4e Binary files /dev/null and b/datamodels/2.x/itop-datacenter-mgmt/images/pdu.png differ diff --git a/datamodels/2.x/itop-datacenter-mgmt/images/powersource.png b/datamodels/2.x/itop-datacenter-mgmt/images/powersource.png new file mode 100755 index 000000000..0bcae204d Binary files /dev/null and b/datamodels/2.x/itop-datacenter-mgmt/images/powersource.png differ diff --git a/datamodels/2.x/itop-datacenter-mgmt/images/powerstart.png b/datamodels/2.x/itop-datacenter-mgmt/images/powerstart.png new file mode 100755 index 000000000..733b645ae Binary files /dev/null and b/datamodels/2.x/itop-datacenter-mgmt/images/powerstart.png differ diff --git a/datamodels/2.x/itop-datacenter-mgmt/images/rack.png b/datamodels/2.x/itop-datacenter-mgmt/images/rack.png new file mode 100755 index 000000000..8d55ca7d3 Binary files /dev/null and b/datamodels/2.x/itop-datacenter-mgmt/images/rack.png differ diff --git a/datamodels/2.x/itop-datacenter-mgmt/module.itop-datacenter-mgmt.php b/datamodels/2.x/itop-datacenter-mgmt/module.itop-datacenter-mgmt.php new file mode 100755 index 000000000..43b1451f7 --- /dev/null +++ b/datamodels/2.x/itop-datacenter-mgmt/module.itop-datacenter-mgmt.php @@ -0,0 +1,66 @@ + + +SetupWebPage::AddModule( + __FILE__, // Path to the current file, all other file names are relative to the directory containing this file + 'itop-datacenter-mgmt/2.0.0', + array( + // Identification + // + 'label' => 'Datacenter Management', + 'category' => 'business', + + // Setup + // + 'dependencies' => array( + 'itop-config-mgmt/2.0.0' + ), + 'mandatory' => false, + 'visible' => true, + + // Components + // + 'datamodel' => array( + 'model.itop-datacenter-mgmt.php', + + ), + 'webservice' => array( + + ), + 'data.struct' => array( + // add your 'structure' definition XML files here, + ), + 'data.sample' => array( + // add your sample data XML files here, + ), + + // Documentation + // + 'doc.manual_setup' => '', // hyperlink to manual setup documentation, if any + 'doc.more_information' => '', // hyperlink to more information, if any + + // Default settings + // + 'settings' => array( + // Module specific settings go here, if any + ), + ) +); + + +?>