瀏覽代碼

Meta information on lifecycle actions arguments: added type restrictions, and added the method ResetStopWatch

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3503 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 年之前
父節點
當前提交
a41e38af30
共有 1 個文件被更改,包括 69 次插入0 次删除
  1. 69 0
      datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml

+ 69 - 0
datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml

@@ -746,6 +746,16 @@
               <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"/>
+                  </types>
+                </type_restrictions>
               </argument>
               <argument id="2">
                 <type>string</type>
@@ -758,6 +768,14 @@
               <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>
@@ -766,6 +784,14 @@
               <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>
@@ -774,10 +800,23 @@
               <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>
@@ -790,6 +829,28 @@
               <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>
@@ -798,6 +859,14 @@
               <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>