mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 17:14:20 +01:00
Started to create sample data (quick fix in the setup)
SVN:trunk[536]
This commit is contained in:
11
modules/itop-config-mgmt-1.0.0/data.sample.location.xml
Normal file
11
modules/itop-config-mgmt-1.0.0/data.sample.location.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<Location alias="Location" id="1">
|
||||
<name>Headquarters</name>
|
||||
<status>active</status>
|
||||
<org_id>1</org_id>
|
||||
<address></address>
|
||||
<country></country>
|
||||
<parent_id>0</parent_id>
|
||||
</Location>
|
||||
</Set>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<Organization alias="Organization" id="1">
|
||||
<name>Demo company</name>
|
||||
<code></code>
|
||||
<status>active</status>
|
||||
<parent_id>0</parent_id>
|
||||
</Organization>
|
||||
</Set>
|
||||
11
modules/itop-config-mgmt-1.0.0/data.sample.team.xml
Normal file
11
modules/itop-config-mgmt-1.0.0/data.sample.team.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<Team alias="Team" id="1">
|
||||
<name>My team</name>
|
||||
<status>active</status>
|
||||
<org_id>1</org_id>
|
||||
<email>myteam@combodo.com</email>
|
||||
<phone></phone>
|
||||
<location_id>1</location_id>
|
||||
</Team>
|
||||
</Set>
|
||||
@@ -29,7 +29,9 @@ SetupWebPage::AddModule(
|
||||
//'data.struct.itop-config-mgmt.xml',
|
||||
),
|
||||
'data.sample' => array(
|
||||
//'data.sample.itop-config-mgmt.xml',
|
||||
'data.sample.organization.xml',
|
||||
'data.sample.location.xml',
|
||||
'data.sample.team.xml',
|
||||
),
|
||||
|
||||
// Documentation
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<lnkContractToSLA alias="lnkContractToSLA" id="1">
|
||||
<contract_id>1</contract_id>
|
||||
<sla_id>1</sla_id>
|
||||
<coverage>8h-18h, business days</coverage>
|
||||
</lnkContractToSLA>
|
||||
</Set>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<CustomerContract alias="CustomerContract" id="1">
|
||||
<name>Support for MyCust</name>
|
||||
<description>PC support and SW support</description>
|
||||
<start_date>2010-07-01</start_date>
|
||||
<end_date>0000-00-00</end_date>
|
||||
<cost>10000</cost>
|
||||
<cost_currency>euros</cost_currency>
|
||||
<cost_unit></cost_unit>
|
||||
<billing_frequency>per month</billing_frequency>
|
||||
<customer_id>1</customer_id>
|
||||
<support_team_id>1</support_team_id>
|
||||
</CustomerContract>
|
||||
</Set>
|
||||
21
modules/itop-service-mgmt-1.0.0/data.sample.service.xml
Normal file
21
modules/itop-service-mgmt-1.0.0/data.sample.service.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<Service alias="Service" id="4">
|
||||
<name>NW Support</name>
|
||||
<description>Network infrastructure support</description>
|
||||
<type>IncidentManagement</type>
|
||||
<status>production</status>
|
||||
</Service>
|
||||
<Service alias="Service" id="2">
|
||||
<name>PC Support</name>
|
||||
<description>Hardware support for end-user PC</description>
|
||||
<type>RequestManagement</type>
|
||||
<status>production</status>
|
||||
</Service>
|
||||
<Service alias="Service" id="3">
|
||||
<name>SW Support</name>
|
||||
<description>Software support for end-user applications</description>
|
||||
<type>RequestManagement</type>
|
||||
<status>production</status>
|
||||
</Service>
|
||||
</Set>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="8">
|
||||
<name>Configuration</name>
|
||||
<description>Request application configuration</description>
|
||||
<service_id>3</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="6">
|
||||
<name>DataRestore</name>
|
||||
<description>Restore data from backup</description>
|
||||
<service_id>2</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="12">
|
||||
<name>Equipment down</name>
|
||||
<description>Network equipment</description>
|
||||
<service_id>4</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="4">
|
||||
<name>Failure</name>
|
||||
<description>PC not working</description>
|
||||
<service_id>2</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="14">
|
||||
<name>Installation</name>
|
||||
<description>Request PC setup</description>
|
||||
<service_id>2</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="3">
|
||||
<name>Installation</name>
|
||||
<description>Request application installation</description>
|
||||
<service_id>3</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="13">
|
||||
<name>Intrusion</name>
|
||||
<description>An intrusion has been detected</description>
|
||||
<service_id>4</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="11">
|
||||
<name>Performance</name>
|
||||
<description>Slow traffic</description>
|
||||
<service_id>4</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="7">
|
||||
<name>Renew</name>
|
||||
<description>Order a replacement PC</description>
|
||||
<service_id>2</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="9">
|
||||
<name>Training</name>
|
||||
<description>Request application training</description>
|
||||
<service_id>3</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="10">
|
||||
<name>Troubleshooting</name>
|
||||
<description>Request help for troubleshooting</description>
|
||||
<service_id>3</service_id>
|
||||
</ServiceSubcategory>
|
||||
<ServiceSubcategory alias="ServiceSubcategory" id="5">
|
||||
<name>Virus</name>
|
||||
<description>Suspecting a virus infection</description>
|
||||
<service_id>2</service_id>
|
||||
</ServiceSubcategory>
|
||||
</Set>
|
||||
39
modules/itop-service-mgmt-1.0.0/data.sample.sla.xml
Normal file
39
modules/itop-service-mgmt-1.0.0/data.sample.sla.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<SLA alias="SLA" id="10">
|
||||
<name>NW support - Bronze</name>
|
||||
<service_id>4</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="8">
|
||||
<name>NW support - Gold</name>
|
||||
<service_id>4</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="9">
|
||||
<name>NW support - Silver</name>
|
||||
<service_id>4</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="4">
|
||||
<name>PC support - Bronze</name>
|
||||
<service_id>2</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="2">
|
||||
<name>PC support - Gold</name>
|
||||
<service_id>2</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="3">
|
||||
<name>PC support - Silver</name>
|
||||
<service_id>2</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="7">
|
||||
<name>SW support - Bronze</name>
|
||||
<service_id>3</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="5">
|
||||
<name>SW support - Gold</name>
|
||||
<service_id>3</service_id>
|
||||
</SLA>
|
||||
<SLA alias="SLA" id="6">
|
||||
<name>SW support - Silver</name>
|
||||
<service_id>3</service_id>
|
||||
</SLA>
|
||||
</Set>
|
||||
129
modules/itop-service-mgmt-1.0.0/data.sample.slt.xml
Normal file
129
modules/itop-service-mgmt-1.0.0/data.sample.slt.xml
Normal file
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<SLT alias="SLT" id="13">
|
||||
<name>Bronze-TTO prio1</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>1</ticket_priority>
|
||||
<value>2</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="15">
|
||||
<name>Bronze-TTO prio2</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>2</ticket_priority>
|
||||
<value>4</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="17">
|
||||
<name>Bronze-TTO prio3</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>3</ticket_priority>
|
||||
<value>8</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="14">
|
||||
<name>Bronze-TTR prio1</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>1</ticket_priority>
|
||||
<value>1</value>
|
||||
<value_unit>days</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="16">
|
||||
<name>Bronze-TTR prio2</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>2</ticket_priority>
|
||||
<value>2</value>
|
||||
<value_unit>days</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="18">
|
||||
<name>Bronze-TTR prio3</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>3</ticket_priority>
|
||||
<value>3</value>
|
||||
<value_unit>days</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="1">
|
||||
<name>Gold-TTO prio1</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>1</ticket_priority>
|
||||
<value>30</value>
|
||||
<value_unit>minutes</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="3">
|
||||
<name>Gold-TTO prio2</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>2</ticket_priority>
|
||||
<value>1</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="5">
|
||||
<name>Gold-TTO prio3</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>3</ticket_priority>
|
||||
<value>2</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="2">
|
||||
<name>Gold-TTR prio1</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>1</ticket_priority>
|
||||
<value>2</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="4">
|
||||
<name>Gold-TTR prio2</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>2</ticket_priority>
|
||||
<value>4</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="6">
|
||||
<name>Gold-TTR prio3</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>3</ticket_priority>
|
||||
<value>1</value>
|
||||
<value_unit>days</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="7">
|
||||
<name>Silver-TTO prio1</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>1</ticket_priority>
|
||||
<value>1</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="9">
|
||||
<name>Silver-TTO prio2</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>2</ticket_priority>
|
||||
<value>2</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="11">
|
||||
<name>Silver-TTO prio3</name>
|
||||
<metric>TTO</metric>
|
||||
<ticket_priority>3</ticket_priority>
|
||||
<value>4</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="8">
|
||||
<name>Silver-TTR prio1</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>1</ticket_priority>
|
||||
<value>4</value>
|
||||
<value_unit>hours</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="10">
|
||||
<name>Silver-TTR prio2</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>2</ticket_priority>
|
||||
<value>1</value>
|
||||
<value_unit>days</value_unit>
|
||||
</SLT>
|
||||
<SLT alias="SLT" id="12">
|
||||
<name>Silver-TTR prio3</name>
|
||||
<metric>TTR</metric>
|
||||
<ticket_priority>3</ticket_priority>
|
||||
<value>2</value>
|
||||
<value_unit>days</value_unit>
|
||||
</SLT>
|
||||
</Set>
|
||||
83
modules/itop-service-mgmt-1.0.0/data.sample.slttosla.xml
Normal file
83
modules/itop-service-mgmt-1.0.0/data.sample.slttosla.xml
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Set>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="2">
|
||||
<sla_id>1</sla_id>
|
||||
<slt_id>1</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="3">
|
||||
<sla_id>1</sla_id>
|
||||
<slt_id>1</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="15">
|
||||
<sla_id>2</sla_id>
|
||||
<slt_id>1</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="12">
|
||||
<sla_id>2</sla_id>
|
||||
<slt_id>2</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="14">
|
||||
<sla_id>2</sla_id>
|
||||
<slt_id>3</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="11">
|
||||
<sla_id>2</sla_id>
|
||||
<slt_id>4</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="13">
|
||||
<sla_id>2</sla_id>
|
||||
<slt_id>5</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="10">
|
||||
<sla_id>2</sla_id>
|
||||
<slt_id>6</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="16">
|
||||
<sla_id>3</sla_id>
|
||||
<slt_id>12</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="21">
|
||||
<sla_id>3</sla_id>
|
||||
<slt_id>7</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="18">
|
||||
<sla_id>3</sla_id>
|
||||
<slt_id>8</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="20">
|
||||
<sla_id>3</sla_id>
|
||||
<slt_id>9</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="17">
|
||||
<sla_id>3</sla_id>
|
||||
<slt_id>10</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="19">
|
||||
<sla_id>3</sla_id>
|
||||
<slt_id>11</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="9">
|
||||
<sla_id>4</sla_id>
|
||||
<slt_id>13</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="6">
|
||||
<sla_id>4</sla_id>
|
||||
<slt_id>14</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="8">
|
||||
<sla_id>4</sla_id>
|
||||
<slt_id>15</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="5">
|
||||
<sla_id>4</sla_id>
|
||||
<slt_id>16</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="7">
|
||||
<sla_id>4</sla_id>
|
||||
<slt_id>17</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
<lnkSLTToSLA alias="lnkSLTToSLA" id="4">
|
||||
<sla_id>4</sla_id>
|
||||
<slt_id>18</slt_id>
|
||||
</lnkSLTToSLA>
|
||||
</Set>
|
||||
@@ -29,7 +29,13 @@ SetupWebPage::AddModule(
|
||||
//'data.struct.itop-service-mgmt.xml',
|
||||
),
|
||||
'data.sample' => array(
|
||||
//'data.sample.itop-service-mgmt.xml',
|
||||
'data.sample.service.xml',
|
||||
'data.sample.servicesubcategory.xml',
|
||||
'data.sample.sla.xml',
|
||||
'data.sample.slt.xml',
|
||||
'data.sample.slttosla.xml',
|
||||
'data.sample.customercontract.xml',
|
||||
'data.sample.contracttosla.xml',
|
||||
),
|
||||
|
||||
// Documentation
|
||||
|
||||
@@ -480,6 +480,8 @@ function PopulateDataFilesList(SetupWebPage $oP, $aParamValues)
|
||||
//
|
||||
foreach($aStructureDataFiles as $sFile)
|
||||
{
|
||||
// Under Windows, it is a must to escape backslashes (not an issue until a folder name starts with t or n, etc...)
|
||||
$sFile = str_replace('\\', '\\\\', $sFile);
|
||||
$oP->add("aFilesToLoad[aFilesToLoad.length] = '$sFile';\n");
|
||||
}
|
||||
|
||||
@@ -489,6 +491,8 @@ function PopulateDataFilesList(SetupWebPage $oP, $aParamValues)
|
||||
$oP->add("{");
|
||||
foreach($aSampleDataFiles as $sFile)
|
||||
{
|
||||
// Under Windows, it is a must to escape backslashes (not an issue until a folder name starts with t or n, etc...)
|
||||
$sFile = str_replace('\\', '\\\\', $sFile);
|
||||
$oP->add("aFilesToLoad[aFilesToLoad.length] = '$sFile';\n");
|
||||
}
|
||||
$oP->add("}\n");
|
||||
|
||||
Reference in New Issue
Block a user