build.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="." name="test default_db/TEST_PERMS">
  3. <description>
  4. Test 'default_db/TEST_PERMS' storage acl by Ant
  5. </description>
  6. <property name="uuid" value="${uuid}"/>
  7. <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
  8. <property name="url" value="${url}"/>
  9. <property name="php_session_id" value="${php_session_id}"/>
  10. <property name="webRootUrl" value="${webRootUrl}"/>
  11. <!-- for verifying module tasks -->
  12. <property name="test_Insert.xml" value="example_wfs_transactions/Insert.xml"/>
  13. <property name="test_Update.xml" value="example_wfs_transactions/Update.xml"/>
  14. <property name="test_InsertTransactionResponse.xml" value="example_wfs_transactions/InsertTransactionResponse.xml"/>
  15. <property name="test_GetFeature.xml" value="example_wfs_transactions/GetFeature.xml"/>
  16. <!-- for triggers handling -->
  17. <property name="Triggers_dir" location="Triggers"/>
  18. <property name="Triggers_after_dir" location="${Triggers_dir}/After"/>
  19. <property name="Triggers_before_dir" location="${Triggers_dir}/Before"/>
  20. <target name="DescribeFeatureType" description="URL_TASK Target DescribeFeatureType">
  21. <echo message="OUTPUT__TYPE__XML"/>
  22. <echo message="OUTPUT__START"/>
  23. <!-- <echo message="${wfs_output}"/> -->
  24. <echoxml>
  25. <xsd:schema
  26. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  27. xmlns:gml="http://www.opengis.net/gml"
  28. xmlns:p5="https://biuro.biall-net.pl/wfs"
  29. xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
  30. xmlns:default_objects="https://biuro.biall-net.pl/wfs/default_objects"
  31. xmlns:p5_objects="https://biuro.biall-net.pl/wfs/objects"
  32. elementFormDefault="qualified"
  33. targetNamespace="https://biuro.biall-net.pl/wfs/default_objects"
  34. version="1.0.0">
  35. <xsd:import namespace="http://www.opengis.net/gml" schemaLocation="https://biuro.biall-net.pl/dev-pl/se-master/schema/gml/2.1.2/feature.xsd"/>
  36. <!--typeName 'p5_default_db:TEST_PERMS'-->
  37. <xsd:complexType name="TEST_PERMSType">
  38. <xsd:complexContent>
  39. <xsd:extension base="gml:AbstractFeatureType">
  40. <xsd:sequence>
  41. <xsd:element minOccurs="1" maxOccurs="1" name="ID" type="xsd:integer" nillable="true"/>
  42. <xsd:element minOccurs="0" maxOccurs="1" name="L_APPOITMENT_USER" type="xsd:string" nillable="true"/>
  43. <xsd:element minOccurs="0" maxOccurs="1" name="KATALOG_LINK" type="p5:www_link" nillable="true"/>
  44. <xsd:element minOccurs="0" maxOccurs="1" name="WWW" type="p5:www_link" nillable="true"/>
  45. <xsd:element minOccurs="0" maxOccurs="1" name="ADM_ADMIN_LEVEL" type="xsd:string" nillable="true"/>
  46. <xsd:element minOccurs="0" maxOccurs="1" name="ADM_PASSWD" type="xsd:string" nillable="true"/>
  47. <xsd:element minOccurs="0" maxOccurs="1" name="A_STATUS" type="xsd:string" nillable="true"/>
  48. <xsd:element minOccurs="0" maxOccurs="1" name="EMAIL" type="xsd:string" nillable="true"/>
  49. <xsd:element minOccurs="0" maxOccurs="1" name="ADM_NAME" type="xsd:string" nillable="true"/>
  50. <xsd:element minOccurs="0" maxOccurs="1" name="PARENT_ID" type="xsd:integer" nillable="true"/>
  51. <xsd:element minOccurs="0" maxOccurs="1" name="OPIS" type="xsd:string" nillable="true"/>
  52. <xsd:element minOccurs="0" maxOccurs="1" name="the_geom" type="gml:PolygonPropertyType" nillable="true"/>
  53. <xsd:element minOccurs="0" maxOccurs="1" name="A_ADM_COMPANY" type="xsd:string" nillable="true"/>
  54. <xsd:element minOccurs="0" maxOccurs="1" name="A_CLASSIFIED" type="xsd:string" nillable="true"/>
  55. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_CREATE_AUTHOR" type="xsd:string" nillable="true"/>
  56. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_CREATE_DATE" type="xsd:string" nillable="true"/>
  57. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_UPDATE_AUTHOR" type="xsd:string" nillable="true"/>
  58. <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_UPDATE_DATE" type="xsd:string" nillable="true"/>
  59. <xsd:element minOccurs="0" maxOccurs="1" name="test_date" type="xsd:date" nillable="true"/>
  60. <xsd:element minOccurs="0" maxOccurs="1" name="test_datetime" type="xsd:dateTime" nillable="true"/>
  61. <xsd:element minOccurs="0" maxOccurs="1" name="test_price" type="p5:price" nillable="true"/>
  62. <xsd:element minOccurs="0" maxOccurs="1" name="test_time" type="xsd:string" nillable="true"/>
  63. <xsd:element minOccurs="0" maxOccurs="unbounded" name="__instance">
  64. <xsd:sequence>
  65. <xsd:element name="instance_name" type="default_objects:TestPerms__instanceType"/>
  66. <xsd:element name="instance_type" type="xsd:string"/><!-- 'instance', 'waiting', 'derived', 'matching' -->
  67. <xsd:element name="create_author" type="xsd:string"/>
  68. <xsd:element name="create_date" type="xsd:dateTime"/>
  69. <xsd:element name="update_author" type="xsd:string"/>
  70. <xsd:element name="updage_date" type="xsd:dateTime"/>
  71. <xsd:element name="verified" type="xsd:integer"/>
  72. </xs:sequence>
  73. </xsd:element>
  74. <xsd:element minOccurs="0" maxOccurs="1" name="__backRef">
  75. <xsd:sequence>
  76. <xsd:element name="default_db__x3A__CRM_PROCES" type="default_objects:TestPerms__backRefType"/>
  77. <xsd:element name="default_db__x3A__CRM_WSKAZNIK" type="default_objects:TestPerms__backRefType"/>
  78. <xsd:element name="default_db__x3A__BUILDINGS" type="default_objects:TestPerms__backRefType"/>
  79. </xsd:sequence>
  80. </xsd:element>
  81. </xsd:sequence>
  82. <xsd:attribute name="instance" type="default_objects:instanceType"/>
  83. </xsd:extension>
  84. </xsd:complexContent>
  85. </xsd:complexType>
  86. <xsd:element name="TEST_PERMS" type="default_objects:TEST_PERMSType" substitutionGroup="gml:_Feature"/>
  87. <xsd:simpleType name="TestPerms__instanceType">
  88. <xsd:restriction base="xsd:string">
  89. <xsd:enumeration value="TestPerms"/>
  90. <xsd:enumeration value="TestPermsDoUzgodnienia"/>
  91. <xsd:enumeration value="TestPermsUzgodniony"/>
  92. <xsd:enumeration value="TestPermsOdrzucony"/>
  93. <xsd:enumeration value="TestPermsAktywny"/>
  94. </xsd:restriction>
  95. </xsd:simpleType>
  96. <xsd:complexType name="TestPerms__backRefType">
  97. <xsd:sequence>
  98. <xsd:element name="primaryKey" type="xsd:string"/>
  99. <xsd:element name="create_author" type="xsd:string"/>
  100. <xsd:element name="create_date" type="xsd:dateTime"/>
  101. <xsd:element name="update_author" type="xsd:string"/>
  102. <xsd:element name="updage_date" type="xsd:dateTime"/>
  103. </xsd:sequence>
  104. </xsd:complexType>
  105. </xsd:schema>
  106. </echoxml>
  107. <echo message="OUTPUT__END"/>
  108. </target>
  109. <target name="GetFeature" description="URL_TASK Target GetFeature">
  110. <echo message="FETCHING '${url}' ..."/>
  111. <exec executable="curl" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result">
  112. <arg line="--cookie 'PHPSESSID=${php_session_id}' '${url}&amp;REQUEST=GetFeature'"/>
  113. </exec>
  114. <echo message="OUTPUT__TYPE__XML"/>
  115. <echo message="OUTPUT__START"/>
  116. <echo message="${wfs_output}"/>
  117. <echo message="webRootUrl"/>
  118. <echo message="${webRootUrl}"/>
  119. <echo message="OUTPUT__END"/>
  120. <echo message="RESULT__START"/>
  121. <echo message="${wfs_result}"/>
  122. <echo message="RESULT__END"/>
  123. <echo message="ERROR__START"/>
  124. <echo message="${wfs_error}"/>
  125. <echo message="ERROR__END"/>
  126. </target>
  127. <target name="Test_Triggers_After" description="TODO Provide After triggers">
  128. <!-- plan :
  129. 1. sprawdzamy ile jest Triggers/Before katalogow = STREAMS (INPUT)
  130. 2. dla kazdego STREAMS puszczamy output z wczesniejszego aby mozna bylo wiele akcji wykonac (TODO)
  131. a. w kazdym odpalamy Transaction.xsl ktory powinien obsluzyc Triggers.xsl
  132. b. dla kazdego stream w srodku trzeba wyslac ouptut do podkatalogu np CRM_UI_MSGS
  133. c. dla kazdego podkatalogu - powiadomienia np CRM_UI_MSGS/1_custom/default.xsl trzeba wykonac output i przetworzyc transakcje
  134. 3. triggery powinny miec opcje PREFLIGHT oraz POSTFLIGHT azeby czasami cos poscaigac przed i dac do przetworzenia
  135. -->
  136. </target>
  137. <target name="Test_Triggers_Before" description="Provide Before triggers">
  138. <!-- plan : (cos mozna stad sobie podarowac aby poszlo na after)
  139. 1. sprawdzamy ile jest Triggers/Before katalogow = STREAMS (INPUT)
  140. 2. dla kazdego STREAMS puszczamy output z wczesniejszego aby mozna bylo wiele akcji wykonac (TODO)
  141. a. w kazdym odpalamy Transaction.xsl ktory powinien obsluzyc Triggers.xsl
  142. b. dla kazdego stream w srodku trzeba wyslac ouptut do podkatalogu np CRM_UI_MSGS
  143. c. dla kazdego podkatalogu - powiadomienia np CRM_UI_MSGS/1_custom/default.xsl trzeba wykonac output i przetworzyc transakcje
  144. -->
  145. </target>
  146. <target name="__triggers_GetFeature" description="TODO Provide read about current triggers">
  147. <echo>TODO will exec child ant for known stream ant it should respond with listings</echo>
  148. </target>
  149. <target name="__triggers_Insert" description="TODO Provide new trigger install">
  150. <echo>TODO will generate build.xml with actually supporting current triggers - one build for each stream</echo>
  151. </target>
  152. <target name="__triggers_Edit" description="TODO Provide new trigger delete"/>
  153. </project>