mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
1155 lines
44 KiB
XML
1155 lines
44 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="https://www.combodo.com/itop-schema/3.3"
|
|
version="3.3">
|
|
<classes>
|
|
<class id="AbstractResource" _delta="define">
|
|
<parent>cmdbAbstractObject</parent>
|
|
<properties>
|
|
<comment>/* Resource access control abstraction. Can be inherited by abstract resource access control classes. Generally controlled using UR_ACTION_MODIFY access right. */</comment>
|
|
<abstract>true</abstract>
|
|
</properties>
|
|
<presentation/>
|
|
<methods/>
|
|
</class>
|
|
<class id="ResourceAdminMenu" _delta="define">
|
|
<parent>AbstractResource</parent>
|
|
<properties>
|
|
<comment>/* AdminTools menu access control. */</comment>
|
|
<abstract>true</abstract>
|
|
<category>grant_by_profile</category>
|
|
</properties>
|
|
<presentation/>
|
|
<methods/>
|
|
</class>
|
|
<class id="ResourceRunQueriesMenu" _delta="define">
|
|
<parent>AbstractResource</parent>
|
|
<properties>
|
|
<comment>/* RunQueriesMenu menu access control. */</comment>
|
|
<abstract>true</abstract>
|
|
<category>grant_by_profile</category>
|
|
</properties>
|
|
<presentation/>
|
|
<methods/>
|
|
</class>
|
|
<class id="ResourceSystemMenu" _delta="define">
|
|
<parent>AbstractResource</parent>
|
|
<properties>
|
|
<comment>/* System menu access control. */</comment>
|
|
<abstract>true</abstract>
|
|
<category>grant_by_profile</category>
|
|
</properties>
|
|
<presentation/>
|
|
<methods/>
|
|
</class>
|
|
<class id="WelcomePopupAcknowledge" _delta="define">
|
|
<parent>DBObject</parent>
|
|
<properties>
|
|
<comment>/** Acknowledge welcome popup messages */</comment>
|
|
<abstract>false</abstract>
|
|
<category/>
|
|
<key_type>autoincrement</key_type>
|
|
<db_table>priv_welcome_popup_acknowledge</db_table>
|
|
</properties>
|
|
<fields>
|
|
<field id="message_uuid" xsi:type="AttributeString">
|
|
<sql>message_uuid</sql>
|
|
<default_value/>
|
|
<is_null_allowed>false</is_null_allowed>
|
|
</field>
|
|
<field id="user_id" xsi:type="AttributeExternalKey">
|
|
<sql>user_id</sql>
|
|
<target_class>User</target_class>
|
|
<is_null_allowed>false</is_null_allowed>
|
|
<on_target_delete>DEL_SILENT</on_target_delete>
|
|
</field>
|
|
<field id="acknowledge_date" xsi:type="AttributeDateTime">
|
|
<sql>acknowledge_date</sql>
|
|
<default_value/>
|
|
<is_null_allowed>false</is_null_allowed>
|
|
</field>
|
|
</fields>
|
|
<presentation/>
|
|
<methods/>
|
|
</class>
|
|
</classes>
|
|
<portals>
|
|
<portal id="backoffice" _delta="define">
|
|
<url>pages/UI.php</url>
|
|
<rank>2.0</rank>
|
|
<handler/>
|
|
<allow/>
|
|
<deny>
|
|
<profile id="Portal user"/>
|
|
</deny>
|
|
</portal>
|
|
</portals>
|
|
<menus>
|
|
<menu id="WelcomeMenu" xsi:type="MenuGroup" _delta="define">
|
|
<rank>10</rank>
|
|
<style>
|
|
<decoration_classes>fas fa-home</decoration_classes>
|
|
</style>
|
|
</menu>
|
|
<menu id="WelcomeMenuPage" xsi:type="DashboardMenuNode" _delta="define">
|
|
<rank>10</rank>
|
|
<parent>WelcomeMenu</parent>
|
|
<definition>
|
|
<layout>DashboardLayoutOneCol</layout>
|
|
<title>Menu:WelcomeMenuPage</title>
|
|
<cells>
|
|
<cell id="0">
|
|
<rank>0</rank>
|
|
<dashlets>
|
|
</dashlets>
|
|
</cell>
|
|
</cells>
|
|
</definition>
|
|
</menu>
|
|
<menu id="MyShortcuts" xsi:type="ShortcutContainerMenuNode" _delta="define">
|
|
<rank>20</rank>
|
|
<parent>WelcomeMenu</parent>
|
|
</menu>
|
|
<menu id="UserManagement" xsi:type="TemplateMenuNode" _delta="define">
|
|
<rank>10</rank>
|
|
<parent>AdminTools</parent>
|
|
</menu>
|
|
<menu id="UserAccountsMenu" xsi:type="OQLMenuNode" _delta="define">
|
|
<rank>11</rank>
|
|
<parent>UserManagement</parent>
|
|
<oql><![CDATA[SELECT User]]></oql>
|
|
<do_search>1</do_search>
|
|
<search_form_open>1</search_form_open>
|
|
<enable_class>User</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="ProfilesMenu" xsi:type="OQLMenuNode" _delta="define">
|
|
<rank>12</rank>
|
|
<parent>UserManagement</parent>
|
|
<oql><![CDATA[SELECT URP_Profiles]]></oql>
|
|
<do_search>1</do_search>
|
|
<enable_class>URP_Profiles</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="AuditCategories" xsi:type="OQLMenuNode" _delta="define">
|
|
<rank>20</rank>
|
|
<parent>AdminTools</parent>
|
|
<oql><![CDATA[SELECT AuditCategory]]></oql>
|
|
<do_search>1</do_search>
|
|
<enable_class>AuditCategory</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="Queries" xsi:type="TemplateMenuNode" _delta="define">
|
|
<rank>30</rank>
|
|
<parent>AdminTools</parent>
|
|
</menu>
|
|
<menu id="RunQueriesMenu" xsi:type="WebPageMenuNode" _delta="define">
|
|
<rank>31</rank>
|
|
<parent>Queries</parent>
|
|
<url>$pages/run_query.php</url>
|
|
<enable_class>ResourceRunQueriesMenu</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="QueryMenu" xsi:type="OQLMenuNode" _delta="define">
|
|
<rank>32</rank>
|
|
<parent>Queries</parent>
|
|
<oql><![CDATA[SELECT Query]]></oql>
|
|
<do_search>1</do_search>
|
|
<enable_class>Query</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="ExportMenu" xsi:type="WebPageMenuNode" _delta="define">
|
|
<rank>33</rank>
|
|
<parent>Queries</parent>
|
|
<url>$webservices/export-v2.php?interactive=1</url>
|
|
<enable_class>ResourceAdminMenu</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="DataModelMenu" xsi:type="WebPageMenuNode" _delta="define">
|
|
<rank>40</rank>
|
|
<parent>AdminTools</parent>
|
|
<url>$pages/schema.php</url>
|
|
<enable_class>ResourceRunQueriesMenu</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="UniversalSearchMenu" xsi:type="WebPageMenuNode" _delta="define">
|
|
<rank>35</rank>
|
|
<parent>Queries</parent>
|
|
<url>$pages/UniversalSearch.php</url>
|
|
<enable_class>ResourceAdminMenu</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="ConfigurationTools" xsi:type="MenuGroup" _delta="define_if_not_exists">
|
|
<rank>90</rank>
|
|
<style>
|
|
<decoration_classes>fas fa-cog</decoration_classes>
|
|
</style>
|
|
</menu>
|
|
<menu id="Integrations" xsi:type="TemplateMenuNode" _delta="define">
|
|
<rank>50</rank>
|
|
<parent>ConfigurationTools</parent>
|
|
</menu>
|
|
<menu id="DataSources" xsi:type="OQLMenuNode" _delta="define">
|
|
<rank>20</rank>
|
|
<parent>ConfigurationTools</parent>
|
|
<oql><![CDATA[SELECT SynchroDataSource]]></oql>
|
|
<do_search>1</do_search>
|
|
<enable_class>SynchroDataSource</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="NotificationsMenu" xsi:type="WebPageMenuNode" _delta="define">
|
|
<rank>40</rank>
|
|
<parent>ConfigurationTools</parent>
|
|
<url>$pages/notifications.php</url>
|
|
<enable_class>Trigger</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
</menu>
|
|
<menu id="AdminTools" xsi:type="MenuGroup" _delta="define">
|
|
<rank>80</rank>
|
|
<style>
|
|
<decoration_classes>fas fa-tools</decoration_classes>
|
|
</style>
|
|
</menu>
|
|
<menu id="SystemTools" xsi:type="MenuGroup" _delta="define">
|
|
<rank>100</rank>
|
|
<enable_class>ResourceSystemMenu</enable_class>
|
|
<enable_action>UR_ACTION_MODIFY</enable_action>
|
|
<style>
|
|
<decoration_classes>fas fa-terminal</decoration_classes>
|
|
</style>
|
|
</menu>
|
|
</menus>
|
|
<events>
|
|
<event id="EVENT_DB_BEFORE_WRITE" _delta="define">
|
|
<name>Before create or update</name>
|
|
<description><![CDATA[An object is about to be written into the database.
|
|
The object can be modified.]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<replaces>DBObject::OnInsert</replaces>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object inserted</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="is_new">
|
|
<description>Creation flag</description>
|
|
<type>boolean</type>
|
|
</event_datum>
|
|
<event_datum id="stimulus_applied">
|
|
<description>Life cycle stimulus applied (null if not within a transition)</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_CHECK_TO_WRITE" _delta="define">
|
|
<name>Check to write</name>
|
|
<description><![CDATA[Check an object before it is written into the database (no change possible).
|
|
Call $this->AddCheckIssue($sErrorMessage) to report a blocking issue.
|
|
Call $this->AddCheckWarning($sWarningMessage) to display a warning.
|
|
]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<replaces>cmdbAbstractObject::DoCheckToWrite</replaces>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object to check</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="is_new">
|
|
<description>Creation flag</description>
|
|
<type>boolean</type>
|
|
</event_datum>
|
|
<event_datum id="stimulus_applied">
|
|
<description>Life cycle stimulus applied (null if not within a transition)</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_AFTER_WRITE" _delta="define">
|
|
<name>After create or update</name>
|
|
<description><![CDATA[An object has been written into the database.
|
|
The modifications can be propagated to other objects.]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<replaces>DBObject::AfterInsert</replaces>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object inserted</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="is_new">
|
|
<description>Creation flag</description>
|
|
<type>boolean</type>
|
|
</event_datum>
|
|
<event_datum id="changes">
|
|
<description><![CDATA[For updates, the list of changes done during this operation]]></description>
|
|
<type>array</type>
|
|
</event_datum>
|
|
<event_datum id="stimulus_applied">
|
|
<description>Life cycle stimulus applied (null if not within a transition)</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_CHECK_TO_DELETE" _delta="define">
|
|
<name>Check to delete</name>
|
|
<description><![CDATA[Check an object before it is deleted from the database.
|
|
Call $this->AddDeleteIssue($sIssueMessage) to signal an issue.]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<replaces>cmdbAbstractObject::DoCheckToDelete</replaces>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object to check</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_ABOUT_TO_DELETE" _delta="define">
|
|
<name>Before delete</name>
|
|
<description><![CDATA[An object is about to be deleted from the database]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<replaces>cmdbAbstractObject::OnDelete</replaces>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object about to be deleted</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_AFTER_DELETE" _delta="define">
|
|
<name>After delete</name>
|
|
<description><![CDATA[An object has been deleted into the database]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<replaces>DBObject::AfterDelete</replaces>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object deleted</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_ENUM_TRANSITIONS" _delta="define">
|
|
<name>Enum transitions</name>
|
|
<description><![CDATA[Manage the allowed transitions in current object state.
|
|
The only action allowed is to deny transitions with $this->DenyTransition($sTransitionCode)]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object where the stimulus is targeted</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="allowed_stimuli">
|
|
<description>The list of available stimuli in the current state</description>
|
|
<type>array</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_LINKS_CHANGED" _delta="define">
|
|
<name>Links on object have changed</name>
|
|
<description><![CDATA[At least one link class was changed]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object where the link is or was pointing to</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_OBJECT_RELOAD" _delta="define">
|
|
<name>Object reload</name>
|
|
<internal>true</internal>
|
|
<description><![CDATA[An object has been re-loaded from the database]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object re-loaded</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_COMPUTE_VALUES" _delta="define">
|
|
<name>Recompute object values</name>
|
|
<description><![CDATA[An object needs to be recomputed after changes]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<replaces>DBObject::ComputeValues</replaces>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object inserted</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="is_new">
|
|
<description>Creation flag</description>
|
|
<type>boolean</type>
|
|
</event_datum>
|
|
<event_datum id="stimulus_applied">
|
|
<description>Life cycle stimulus applied (null if not within a transition)</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_ARCHIVE" _delta="define">
|
|
<name>Object archived</name>
|
|
<description><![CDATA[An object has been archived]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object archived</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_UNARCHIVE" _delta="define">
|
|
<name>Object unarchived</name>
|
|
<description><![CDATA[An object has been unarchived]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object unarchived</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_SET_ATTRIBUTES_FLAGS" _delta="define">
|
|
<name>Set attributes flags</name>
|
|
<description><![CDATA[Set object attributes flags.
|
|
Call $this->AddAttributeFlags($sAttCode, $iFlags) for all the attributes to be set for this target state.]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The current object</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="target_state">
|
|
<description>The target state in which to evaluate the flags</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DB_SET_INITIAL_ATTRIBUTES_FLAGS" _delta="define">
|
|
<name>Set initial attributes flags</name>
|
|
<description><![CDATA[Set object initial attributes flags.
|
|
Call $this->AddInitialAttributeFlags($sAttCode, $iFlags) for all the initial attributes to be set initially.]]></description>
|
|
<sources>
|
|
<source id="cmdbAbstractObject">cmdbAbstractObject</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The current object</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_DOWNLOAD_DOCUMENT" _delta="define">
|
|
<name>Document downloaded</name>
|
|
<description><![CDATA[A document has been downloaded from the GUI]]></description>
|
|
<sources>
|
|
<source id="Document">Document</source>
|
|
</sources>
|
|
<event_data>
|
|
<event_datum id="object">
|
|
<description>The object containing the document</description>
|
|
<type>DBObject</type>
|
|
</event_datum>
|
|
<event_datum id="att_code">
|
|
<description>The optional object attribute code hosting the document</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
<event_datum id="document">
|
|
<description>The document downloaded</description>
|
|
<type>ormDocument</type>
|
|
</event_datum>
|
|
<event_datum id="content_disposition">
|
|
<description>The content disposition of the document ("inline" or "attachment")</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
<event_datum id="debug_info">
|
|
<description>Debug string</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
<event id="EVENT_LOGIN" _delta="define">
|
|
<name>Login</name>
|
|
<internal>true</internal>
|
|
<description><![CDATA[Inform the listeners about the connection states]]></description>
|
|
<event_data>
|
|
<event_datum id="code">
|
|
<description>The login step result code (LoginWebPage::EXIT_CODE_...)</description>
|
|
<type>integer</type>
|
|
</event_datum>
|
|
<event_datum id="state">
|
|
<description>Current login state (LoginWebPage::LOGIN_STATE_CONNECTED...)</description>
|
|
<type>string</type>
|
|
</event_datum>
|
|
</event_data>
|
|
</event>
|
|
</events>
|
|
<meta>
|
|
<classes>
|
|
<class id="cmdbAbstractObject" _delta="define">
|
|
<methods>
|
|
<method id="Set">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>deny</operation>
|
|
<types>
|
|
<type id="AttributeStopWatch"/>
|
|
<type id="AttributeSubItem"/>
|
|
<type id="AttributeExternalField"/>
|
|
<type id="AttributeLinkedSetIndirect"/>
|
|
<type id="AttributeLinkedSet"/>
|
|
<type id="AttributeImage"/>
|
|
<type id="AttributeBlob"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="2">
|
|
<type>string</type>
|
|
<mandatory>true</mandatory>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetIfNull">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>deny</operation>
|
|
<types>
|
|
<type id="AttributeStopWatch"/>
|
|
<type id="AttributeSubItem"/>
|
|
<type id="AttributeExternalField"/>
|
|
<type id="AttributeLinkedSetIndirect"/>
|
|
<type id="AttributeLinkedSet"/>
|
|
<type id="AttributeImage"/>
|
|
<type id="AttributeBlob"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="2">
|
|
<type>string</type>
|
|
<mandatory>true</mandatory>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="AddValue">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeInteger"/>
|
|
<type id="AttributeDecimal"/>
|
|
<type id="AttributePercentage"/>
|
|
<type id="AttributeDuration"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="2">
|
|
<type>string</type>
|
|
<mandatory>false</mandatory>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetComputedDate">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDate"/>
|
|
<type id="AttributeDateTime"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="2">
|
|
<type>string</type>
|
|
<mandatory>false</mandatory>
|
|
</argument>
|
|
<argument id="3">
|
|
<type>attcode</type>
|
|
<mandatory>false</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDate"/>
|
|
<type id="AttributeDateTime"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetComputedDateIfNull">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDate"/>
|
|
<type id="AttributeDateTime"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="2">
|
|
<type>string</type>
|
|
<mandatory>false</mandatory>
|
|
</argument>
|
|
<argument id="3">
|
|
<type>attcode</type>
|
|
<mandatory>false</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDate"/>
|
|
<type id="AttributeDateTime"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetCurrentDate">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDate"/>
|
|
<type id="AttributeDateTime"/>
|
|
<type id="AttributeString"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetCurrentDateIfNull">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDate"/>
|
|
<type id="AttributeDateTime"/>
|
|
<type id="AttributeString"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetCurrentUser">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeExternalKey"/>
|
|
<type id="AttributeInteger"/>
|
|
<type id="AttributeString"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetCurrentPerson">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeExternalKey"/>
|
|
<type id="AttributeInteger"/>
|
|
<type id="AttributeString"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="SetElapsedTime">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDuration"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="2">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeDate"/>
|
|
<type id="AttributeDateTime"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="3">
|
|
<type>string</type>
|
|
<mandatory>false</mandatory>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="Reset">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>deny</operation>
|
|
<types>
|
|
<type id="AttributeStopWatch"/>
|
|
<type id="AttributeSubItem"/>
|
|
<type id="AttributeExternalField"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="ResetStopWatch">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>allow</operation>
|
|
<types>
|
|
<type id="AttributeStopWatch"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="Copy">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
<type_restrictions>
|
|
<operation>deny</operation>
|
|
<types>
|
|
<type id="AttributeStopWatch"/>
|
|
<type id="AttributeSubItem"/>
|
|
<type id="AttributeExternalField"/>
|
|
</types>
|
|
</type_restrictions>
|
|
</argument>
|
|
<argument id="2">
|
|
<type>attcode</type>
|
|
<mandatory>true</mandatory>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
<method id="ApplyStimulus">
|
|
<arguments>
|
|
<argument id="1">
|
|
<type>string</type>
|
|
<mandatory>true</mandatory>
|
|
</argument>
|
|
</arguments>
|
|
</method>
|
|
</methods>
|
|
</class>
|
|
</classes>
|
|
<property_types _delta="define">
|
|
<property_type id="Dashlet" xsi:type="Combodo-AbstractPropertyType"/>
|
|
<property_type id="DashletGroupByTable" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<label>UI:DashletGroupBy:Title</label>
|
|
<nodes>
|
|
<node id="title" xsi:type="Combodo-ValueType-Label">
|
|
<label>UI:DashletGroupBy:Prop-Title</label>
|
|
</node>
|
|
<node id="query" xsi:type="Combodo-ValueType-OQL">
|
|
<label>UI:DashletGroupBy:Prop-Query</label>
|
|
</node>
|
|
<node id="group_by" xsi:type="Combodo-ValueType-ClassAttributeGroupBy">
|
|
<label>UI:DashletGroupBy:Prop-GroupBy</label>
|
|
<class>{{query.selected_class}}</class>
|
|
</node>
|
|
<node id="style" xsi:type="Combodo-ValueType-Choice"> <!-- Possible de le cacher, etc celui-ci nous met dedans -->
|
|
<label>UI:DashletGroupBy:Prop-Style</label>
|
|
<values>
|
|
<value id="bars">
|
|
<label>UI:DashletGroupByBars:Label</label>
|
|
</value>
|
|
<value id="pie">
|
|
<label>UI:DashletGroupByPie:Label</label>
|
|
</value>
|
|
<value id="table">
|
|
<label>UI:DashletGroupByTable:Label</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
<node id="aggregation_function" xsi:type="Combodo-ValueType-AggregateFunction">
|
|
<label>UI:DashletGroupBy:Prop-Function</label>
|
|
<class>{{query.selected_class}}</class> <!-- pour savoir si il y a des attributs additionnables -->
|
|
</node>
|
|
<node id="aggregation_attribute" xsi:type="Combodo-ValueType-ClassAttribute">
|
|
<label>UI:DashletGroupBy:Prop-FunctionAttribute</label>
|
|
<relevance-condition>{{aggregation_function.value != 'count'}}</relevance-condition>
|
|
<class>{{query.selected_class}}</class>
|
|
<category>numeric</category>
|
|
</node>
|
|
<node id="order_by" xsi:type="Combodo-ValueType-ChoiceFromInput">
|
|
<label>UI:DashletGroupBy:Prop-OrderField</label>
|
|
<values>
|
|
<value id="attribute">
|
|
<label>{{aggregation_attribute.label}}</label>
|
|
</value>
|
|
<value id="function">
|
|
<label>{{aggregation_function.label}}</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
<node id="limit" xsi:type="Combodo-ValueType-Integer">
|
|
<label>UI:DashletGroupBy:Prop-Limit</label>
|
|
<relevance-condition>{{order_by.value = 'function'}}</relevance-condition>
|
|
</node>
|
|
<node id="order_direction" xsi:type="Combodo-ValueType-Choice">
|
|
<label>UI:DashletGroupBy:Prop-OrderDirection</label>
|
|
<values>
|
|
<value id="asc">
|
|
<label>UI:DashletGroupBy:Order:asc</label>
|
|
</value>
|
|
<value id="desc">
|
|
<label>UI:DashletGroupBy:Order:desc</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
<property_type id="DashletGroupByBars" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<label>UI:DashletGroupBy:Title</label>
|
|
<nodes>
|
|
<node id="title" xsi:type="Combodo-ValueType-Label">
|
|
<label>UI:DashletGroupBy:Prop-Title</label>
|
|
</node>
|
|
<node id="query" xsi:type="Combodo-ValueType-OQL">
|
|
<label>UI:DashletGroupBy:Prop-Query</label>
|
|
</node>
|
|
<node id="group_by" xsi:type="Combodo-ValueType-ClassAttributeGroupBy">
|
|
<label>UI:DashletGroupBy:Prop-GroupBy</label>
|
|
<class>{{query.selected_class}}</class>
|
|
</node>
|
|
<node id="style" xsi:type="Combodo-ValueType-Choice"> <!-- Possible de le cacher, etc celui-ci nous met dedans -->
|
|
<label>UI:DashletGroupBy:Prop-Style</label>
|
|
<values>
|
|
<value id="bars">
|
|
<label>UI:DashletGroupByBars:Label</label>
|
|
</value>
|
|
<value id="pie">
|
|
<label>UI:DashletGroupByPie:Label</label>
|
|
</value>
|
|
<value id="table">
|
|
<label>UI:DashletGroupByTable:Label</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
<node id="aggregation_function" xsi:type="Combodo-ValueType-AggregateFunction">
|
|
<label>UI:DashletGroupBy:Prop-Function</label>
|
|
<class>{{query.selected_class}}</class> <!-- pour savoir si il y a des attributs additionnables -->
|
|
</node>
|
|
<node id="aggregation_attribute" xsi:type="Combodo-ValueType-ClassAttribute">
|
|
<label>UI:DashletGroupBy:Prop-FunctionAttribute</label>
|
|
<relevance-condition>{{aggregation_function.value != 'count'}}</relevance-condition>
|
|
<class>{{query.selected_class}}</class>
|
|
<category>numeric</category>
|
|
</node>
|
|
<node id="order_by" xsi:type="Combodo-ValueType-ChoiceFromInput">
|
|
<label>UI:DashletGroupBy:Prop-OrderField</label>
|
|
<values>
|
|
<value id="attribute">
|
|
<label>{{aggregation_attribute.label}}</label>
|
|
</value>
|
|
<value id="function">
|
|
<label>{{aggregation_function.label}}</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
<node id="limit" xsi:type="Combodo-ValueType-Integer">
|
|
<label>UI:DashletGroupBy:Prop-Limit</label>
|
|
<relevance-condition>{{order_by.value = 'function'}}</relevance-condition>
|
|
</node>
|
|
<node id="order_direction" xsi:type="Combodo-ValueType-Choice">
|
|
<label>UI:DashletGroupBy:Prop-OrderDirection</label>
|
|
<values>
|
|
<value id="asc">
|
|
<label>UI:DashletGroupBy:Order:asc</label>
|
|
</value>
|
|
<value id="desc">
|
|
<label>UI:DashletGroupBy:Order:desc</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
<property_type id="DashletGroupByPie" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<label>UI:DashletGroupBy:Title</label>
|
|
<nodes>
|
|
<node id="title" xsi:type="Combodo-ValueType-Label">
|
|
<label>UI:DashletGroupBy:Prop-Title</label>
|
|
</node>
|
|
<node id="query" xsi:type="Combodo-ValueType-OQL">
|
|
<label>UI:DashletGroupBy:Prop-Query</label>
|
|
</node>
|
|
<node id="group_by" xsi:type="Combodo-ValueType-ClassAttributeGroupBy">
|
|
<label>UI:DashletGroupBy:Prop-GroupBy</label>
|
|
<class>{{query.selected_class}}</class>
|
|
</node>
|
|
<node id="style" xsi:type="Combodo-ValueType-Choice"> <!-- Possible de le cacher, etc celui-ci nous met dedans -->
|
|
<label>UI:DashletGroupBy:Prop-Style</label>
|
|
<values>
|
|
<value id="bars">
|
|
<label>UI:DashletGroupByBars:Label</label>
|
|
</value>
|
|
<value id="pie">
|
|
<label>UI:DashletGroupByPie:Label</label>
|
|
</value>
|
|
<value id="table">
|
|
<label>UI:DashletGroupByTable:Label</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
<node id="aggregation_function" xsi:type="Combodo-ValueType-AggregateFunction">
|
|
<label>UI:DashletGroupBy:Prop-Function</label>
|
|
<class>{{query.selected_class}}</class> <!-- pour savoir si il y a des attributs additionnables -->
|
|
</node>
|
|
<node id="aggregation_attribute" xsi:type="Combodo-ValueType-ClassAttribute">
|
|
<label>UI:DashletGroupBy:Prop-FunctionAttribute</label>
|
|
<relevance-condition>{{aggregation_function.value != 'count'}}</relevance-condition>
|
|
<class>{{query.selected_class}}</class>
|
|
<category>numeric</category>
|
|
</node>
|
|
<node id="order_by" xsi:type="Combodo-ValueType-ChoiceFromInput">
|
|
<label>UI:DashletGroupBy:Prop-OrderField</label>
|
|
<values>
|
|
<value id="attribute">
|
|
<label>{{aggregation_attribute.label}}</label>
|
|
</value>
|
|
<value id="function">
|
|
<label>{{aggregation_function.label}}</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
<node id="limit" xsi:type="Combodo-ValueType-Integer">
|
|
<label>UI:DashletGroupBy:Prop-Limit</label>
|
|
<relevance-condition>{{order_by.value = 'function'}}</relevance-condition>
|
|
</node>
|
|
<node id="order_direction" xsi:type="Combodo-ValueType-Choice">
|
|
<label>UI:DashletGroupBy:Prop-OrderDirection</label>
|
|
<values>
|
|
<value id="asc">
|
|
<label>UI:DashletGroupBy:Order:asc</label>
|
|
</value>
|
|
<value id="desc">
|
|
<label>UI:DashletGroupBy:Order:desc</label>
|
|
</value>
|
|
</values>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
<property_type id="DashletBadge" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<nodes>
|
|
<node id="class" xsi:type="Combodo-ValueType-Class">
|
|
<label>UI:DashletBadge:Prop-Class</label>
|
|
<categories-csv>bizmodel</categories-csv>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
<property_type id="DashletHeaderDynamic" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<label>UI:DashletHeaderDynamic:Title</label>
|
|
<nodes>
|
|
<node id="title" xsi:type="Combodo-ValueType-Label">
|
|
<label>UI:DashletHeaderDynamic:Prop-Title</label>
|
|
</node>
|
|
<node id="icon" xsi:type="Combodo-ValueType-Icon">
|
|
<label>UI:DashletHeaderDynamic:Prop-Icon</label>
|
|
</node>
|
|
<node id="subtitle" xsi:type="Combodo-ValueType-Label">
|
|
<label>UI:DashletHeaderDynamic:Prop-Subtitle</label>
|
|
</node>
|
|
<node id="query" xsi:type="Combodo-ValueType-OQL">
|
|
<label>UI:DashletHeaderDynamic:Prop-Query</label>
|
|
</node>
|
|
<node id="group_by" xsi:type="Combodo-ValueType-ClassAttribute">
|
|
<label>UI:DashletHeaderDynamic:Prop-GroupBy</label>
|
|
<class>{{query.selected_class}}</class>
|
|
<category>enum</category>
|
|
</node>
|
|
<node id="values" xsi:type="Combodo-ValueType-CollectionOfValues">
|
|
<label>UI:DashletHeaderDynamic:Prop-Values</label>
|
|
<xml-format xsi:type="Combodo-XMLFormat-CSV"/>
|
|
<value-type xsi:type="Combodo-ValueType-ClassAttributeValue">
|
|
<class>{{query.selected_class}}</class>
|
|
<attribute>{{group_by.attribute}}</attribute>
|
|
</value-type>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
<property_type id="DashletHeaderStatic" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<nodes>
|
|
<node id="title" xsi:type="Combodo-ValueType-Label">
|
|
<label>UI:DashletHeaderStatic:Prop-Title</label>
|
|
</node>
|
|
<node id="icon" xsi:type="Combodo-ValueType-Icon">
|
|
<label>UI:DashletHeaderStatic:Prop-Icon</label>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
<property_type id="DashletObjectList" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<nodes>
|
|
<node id="title" xsi:type="Combodo-ValueType-Label">
|
|
<label>UI:DashletObjectList:Prop-Title</label>
|
|
</node>
|
|
<node id="query" xsi:type="Combodo-ValueType-OQL">
|
|
<label>UI:DashletObjectList:Prop-Query</label>
|
|
</node>
|
|
<node id="menu" xsi:type="Combodo-ValueType-Boolean">
|
|
<label>UI:DashletObjectList:Prop-Menu</label>
|
|
<on>
|
|
<!-- not so cute, but matches exactly 3.2 implementation of boolean fields -->
|
|
<label>UI:UserManagement:ActionAllowed:Yes</label>
|
|
<value>true</value>
|
|
</on>
|
|
<off>
|
|
<label>UI:UserManagement:ActionAllowed:No</label>
|
|
<value>false</value>
|
|
</off>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
<property_type id="DashletPlainText" xsi:type="Combodo-PropertyType">
|
|
<extends>Dashlet</extends>
|
|
<definition xsi:type="Combodo-ValueType-PropertyTree">
|
|
<nodes>
|
|
<node id="text" xsi:type="Combodo-ValueType-Text">
|
|
<label>UI:DashletPlainText:Prop-Text</label>
|
|
</node>
|
|
</nodes>
|
|
</definition>
|
|
</property_type>
|
|
</property_types>
|
|
</meta>
|
|
</itop_design>
|