| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project basedir="." name="test default_db/TEST_PERMS">
- <description>
- Test 'default_db/TEST_PERMS' storage acl by Ant
- </description>
- <property name="uuid" value="${uuid}"/>
- <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
- <property name="url" value="${url}"/>
- <property name="php_session_id" value="${php_session_id}"/>
- <property name="webRootUrl" value="${webRootUrl}"/>
-
-
- <!-- for verifying module tasks -->
- <property name="test_Insert.xml" value="example_wfs_transactions/Insert.xml"/>
- <property name="test_Update.xml" value="example_wfs_transactions/Update.xml"/>
- <property name="test_InsertTransactionResponse.xml" value="example_wfs_transactions/InsertTransactionResponse.xml"/>
- <property name="test_GetFeature.xml" value="example_wfs_transactions/GetFeature.xml"/>
-
- <!-- for triggers handling -->
- <property name="Triggers_dir" location="Triggers"/>
- <property name="Triggers_after_dir" location="${Triggers_dir}/After"/>
- <property name="Triggers_before_dir" location="${Triggers_dir}/Before"/>
-
- <target name="DescribeFeatureType" description="URL_TASK Target DescribeFeatureType">
- <echo message="OUTPUT__TYPE__XML"/>
- <echo message="OUTPUT__START"/>
- <!-- <echo message="${wfs_output}"/> -->
- <echoxml>
- <xsd:schema
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:gml="http://www.opengis.net/gml"
- xmlns:p5="https://biuro.biall-net.pl/wfs"
- xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
- xmlns:default_objects="https://biuro.biall-net.pl/wfs/default_objects"
- xmlns:p5_objects="https://biuro.biall-net.pl/wfs/objects"
- elementFormDefault="qualified"
- targetNamespace="https://biuro.biall-net.pl/wfs/default_objects"
- version="1.0.0">
- <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"/>
- <!--typeName 'p5_default_db:TEST_PERMS'-->
- <xsd:complexType name="TEST_PERMSType">
- <xsd:complexContent>
- <xsd:extension base="gml:AbstractFeatureType">
- <xsd:sequence>
- <xsd:element minOccurs="1" maxOccurs="1" name="ID" type="xsd:integer" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="L_APPOITMENT_USER" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="KATALOG_LINK" type="p5:www_link" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="WWW" type="p5:www_link" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="ADM_ADMIN_LEVEL" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="ADM_PASSWD" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="A_STATUS" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="EMAIL" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="ADM_NAME" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="PARENT_ID" type="xsd:integer" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="OPIS" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="the_geom" type="gml:PolygonPropertyType" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="A_ADM_COMPANY" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="A_CLASSIFIED" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_CREATE_AUTHOR" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_CREATE_DATE" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_UPDATE_AUTHOR" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="A_RECORD_UPDATE_DATE" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="test_date" type="xsd:date" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="test_datetime" type="xsd:dateTime" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="test_price" type="p5:price" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="1" name="test_time" type="xsd:string" nillable="true"/>
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="__instance">
- <xsd:sequence>
- <xsd:element name="instance_name" type="default_objects:TestPerms__instanceType"/>
- <xsd:element name="instance_type" type="xsd:string"/><!-- 'instance', 'waiting', 'derived', 'matching' -->
- <xsd:element name="create_author" type="xsd:string"/>
- <xsd:element name="create_date" type="xsd:dateTime"/>
- <xsd:element name="update_author" type="xsd:string"/>
- <xsd:element name="updage_date" type="xsd:dateTime"/>
- <xsd:element name="verified" type="xsd:integer"/>
- </xs:sequence>
- </xsd:element>
- <xsd:element minOccurs="0" maxOccurs="1" name="__backRef">
- <xsd:sequence>
- <xsd:element name="default_db__x3A__CRM_PROCES" type="default_objects:TestPerms__backRefType"/>
- <xsd:element name="default_db__x3A__CRM_WSKAZNIK" type="default_objects:TestPerms__backRefType"/>
- <xsd:element name="default_db__x3A__BUILDINGS" type="default_objects:TestPerms__backRefType"/>
- </xsd:sequence>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="instance" type="default_objects:instanceType"/>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
- <xsd:element name="TEST_PERMS" type="default_objects:TEST_PERMSType" substitutionGroup="gml:_Feature"/>
- <xsd:simpleType name="TestPerms__instanceType">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="TestPerms"/>
- <xsd:enumeration value="TestPermsDoUzgodnienia"/>
- <xsd:enumeration value="TestPermsUzgodniony"/>
- <xsd:enumeration value="TestPermsOdrzucony"/>
- <xsd:enumeration value="TestPermsAktywny"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:complexType name="TestPerms__backRefType">
- <xsd:sequence>
- <xsd:element name="primaryKey" type="xsd:string"/>
- <xsd:element name="create_author" type="xsd:string"/>
- <xsd:element name="create_date" type="xsd:dateTime"/>
- <xsd:element name="update_author" type="xsd:string"/>
- <xsd:element name="updage_date" type="xsd:dateTime"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:schema>
- </echoxml>
- <echo message="OUTPUT__END"/>
- </target>
- <target name="GetFeature" description="URL_TASK Target GetFeature">
- <echo message="FETCHING '${url}' ..."/>
- <exec executable="curl" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result">
- <arg line="--cookie 'PHPSESSID=${php_session_id}' '${url}&REQUEST=GetFeature'"/>
- </exec>
- <echo message="OUTPUT__TYPE__XML"/>
- <echo message="OUTPUT__START"/>
- <echo message="${wfs_output}"/>
- <echo message="webRootUrl"/>
- <echo message="${webRootUrl}"/>
- <echo message="OUTPUT__END"/>
- <echo message="RESULT__START"/>
- <echo message="${wfs_result}"/>
- <echo message="RESULT__END"/>
- <echo message="ERROR__START"/>
- <echo message="${wfs_error}"/>
- <echo message="ERROR__END"/>
- </target>
-
- <target name="Test_Triggers_After" description="TODO Provide After triggers">
- <!-- plan :
- 1. sprawdzamy ile jest Triggers/Before katalogow = STREAMS (INPUT)
- 2. dla kazdego STREAMS puszczamy output z wczesniejszego aby mozna bylo wiele akcji wykonac (TODO)
- a. w kazdym odpalamy Transaction.xsl ktory powinien obsluzyc Triggers.xsl
- b. dla kazdego stream w srodku trzeba wyslac ouptut do podkatalogu np CRM_UI_MSGS
- c. dla kazdego podkatalogu - powiadomienia np CRM_UI_MSGS/1_custom/default.xsl trzeba wykonac output i przetworzyc transakcje
- 3. triggery powinny miec opcje PREFLIGHT oraz POSTFLIGHT azeby czasami cos poscaigac przed i dac do przetworzenia
- -->
- </target>
-
- <target name="Test_Triggers_Before" description="Provide Before triggers">
- <!-- plan : (cos mozna stad sobie podarowac aby poszlo na after)
- 1. sprawdzamy ile jest Triggers/Before katalogow = STREAMS (INPUT)
- 2. dla kazdego STREAMS puszczamy output z wczesniejszego aby mozna bylo wiele akcji wykonac (TODO)
- a. w kazdym odpalamy Transaction.xsl ktory powinien obsluzyc Triggers.xsl
- b. dla kazdego stream w srodku trzeba wyslac ouptut do podkatalogu np CRM_UI_MSGS
- c. dla kazdego podkatalogu - powiadomienia np CRM_UI_MSGS/1_custom/default.xsl trzeba wykonac output i przetworzyc transakcje
- -->
- </target>
-
- <target name="__triggers_GetFeature" description="TODO Provide read about current triggers">
- <echo>TODO will exec child ant for known stream ant it should respond with listings</echo>
- </target>
-
- <target name="__triggers_Insert" description="TODO Provide new trigger install">
- <echo>TODO will generate build.xml with actually supporting current triggers - one build for each stream</echo>
- </target>
-
- <target name="__triggers_Edit" description="TODO Provide new trigger delete"/>
-
- </project>
|