|
|
@@ -0,0 +1,217 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
|
|
+ xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
|
|
|
+ vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
|
|
|
+ targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
|
|
|
+ <xs:attribute name="exherit_ref" type="xs:NCName">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To exherit some options (name of complexType)</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute name="heritage_acl" type="xs:boolean">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>Attributes for inherit/exherit acl/sort controll. For minimise PROCESS/Resources handling problems</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute name="heritage_sort" type="xs:boolean">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>Attributes for inherit/exherit acl/sort controll. For minimise PROCESS/Resources handling problems</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute name="inherit_ref" type="xs:NCName">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>to inherit from some object name - type element with prefix or if base table use default_db prefix. e.g. default_db:CRM_PROCES or default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:element name="heritage">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>Attributes for inherit/exherit acl/sort controll. For minimise PROCESS/Resources handling problems - to be set in xs:appinfo</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:choice>
|
|
|
+ <xs:element ref="system_cache__appinfo:exherit_all"/>
|
|
|
+ <xs:element maxOccurs="unbounded" ref="system_cache__appinfo:exherit"/>
|
|
|
+ <xs:element ref="system_cache__appinfo:inherit"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+ <xs:complexType name="heritage-child">
|
|
|
+ <xs:choice maxOccurs="unbounded" minOccurs="1">
|
|
|
+ <xs:element name="acl_rule_inherit_to_all_same_name_elements_and_refs">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>we are on complexType default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW
|
|
|
+ to set all perms to local elements and references by primary key of related reference from @system_cache__appinfo:inherit_ref element (names should be mapped)
|
|
|
+(mapped from) eg.:default_db:CRM_LISTA_ZASOBOW/A_STATUS has perms R,W,X - so local elements related fields names in element default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW: e.g. A_STATUS, A_STATUS_INFO gets the same perms C,R</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_rule_inherit_to_all_elements_and_refs_by_primary">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>We are on complexType CRM_LISTA_ZASOBOW
|
|
|
+to set all perms to local elements and references by primary key of related reference from @system_cache__appinfo:inherit_ref element - eg. CRM_PROCES/ID has perms C,R - so all local elements related fields in element CRM_LISTA_ZASOBOW: e.g. A_STATUS, A_STATUS_INFO gets the same perms C,R</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_rule_inherit_to_all_refs_by_primary">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To make aviable ref e.g. in CRM_PROCES to CRM_IMAGE_PROCES to be associated by rule of e.g. somebody has access to primary key to READ or CREATE
|
|
|
+
|
|
|
+but for task of editing references to delete refs use another ruleset task</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_rule_inherit_to_single_refs_by_primary">
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:attribute name="acl_rule_exherit_local_element_name" type="xs:string">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_rule_local_inherit">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To control single local acl settings </xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_exherit_local_element_name">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_rule_inherit_to_all_refs_by_local_element">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To allow simply inherit acl from field to all references. Useful when inherit acl from base table objects, where are not aviable refs in ACL GUI system.</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_rule_inherit_to_single_refs_by_local_element">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To allow simply inherit acl from field to some references. Useful when inherit acl from base table objects, where are not aviable refs in ACL GUI system.</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_exherit_local_element_name">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:complexType>
|
|
|
+ <xs:complexType name="exherit_all">
|
|
|
+ <xs:complexContent>
|
|
|
+ <xs:extension base="system_cache__appinfo:heritage-child">
|
|
|
+ <xs:attribute ref="system_cache__appinfo:heritage_acl"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:heritage_sort"/>
|
|
|
+ </xs:extension>
|
|
|
+ </xs:complexContent>
|
|
|
+ </xs:complexType>
|
|
|
+ <xs:element name="exherit_all" type="system_cache__appinfo:exherit_all">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To exherit all properties to all child elements/complexTypes</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:complexType name="exherit">
|
|
|
+ <xs:complexContent>
|
|
|
+ <xs:extension base="system_cache__appinfo:heritage-child">
|
|
|
+ <xs:attribute ref="system_cache__appinfo:exherit_ref" use="required"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:heritage_sort"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:heritage_acl"/>
|
|
|
+ </xs:extension>
|
|
|
+ </xs:complexContent>
|
|
|
+ </xs:complexType>
|
|
|
+ <xs:element name="exherit" type="system_cache__appinfo:exherit">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To exherit to selected by attributes elements/complexTypes</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:complexType name="inherit">
|
|
|
+ <xs:complexContent>
|
|
|
+ <xs:extension base="system_cache__appinfo:heritage-child">
|
|
|
+ <xs:attribute ref="system_cache__appinfo:inherit_ref" use="required"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:heritage_sort"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:heritage_acl"/>
|
|
|
+ </xs:extension>
|
|
|
+ </xs:complexContent>
|
|
|
+ </xs:complexType>
|
|
|
+ <xs:element name="inherit" type="system_cache__appinfo:inherit">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To exherit to selected by attributes elements/complexTypes.
|
|
|
+Use acl_ruleset for controll single elements</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_ruleset" type="system_cache__appinfo:acl_ruleset">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To set in appinfo what are default acl for object rules.
|
|
|
+Inherit is for all fields - this is for single fields rules</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+ <xs:simpleType id="default_d___appinfo-1_CRM_PRZYPA" name="CRM_PRZYPADEK__FORM_TREAT">
|
|
|
+ <xs:restriction base="xs:string">
|
|
|
+ <xs:enumeration value=""/>
|
|
|
+ <xs:enumeration value="R"/>
|
|
|
+ <xs:enumeration value="W"/>
|
|
|
+ <xs:enumeration value="X"/>
|
|
|
+ <xs:enumeration value="C"/>
|
|
|
+ <xs:enumeration value="S"/>
|
|
|
+ <xs:enumeration value="O"/>
|
|
|
+ <xs:enumeration value="V"/>
|
|
|
+ <xs:enumeration value="E"/>
|
|
|
+ </xs:restriction>
|
|
|
+ </xs:simpleType>
|
|
|
+ <xs:attribute name="acl_rule_inherit_acl_set"
|
|
|
+ type="system_cache__appinfo:CRM_PRZYPADEK__FORM_TREAT"/>
|
|
|
+ <xs:attribute name="acl_rule_inherit_local_element_name" type="xs:string">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To describe from which local element to inherit - e.g. ID or another. Subject is to describe which element is subject to edit to share acl to allow edit/delete references from this object</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute name="acl_rule_exherit_local_element_name" type="xs:string">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:complexType abstract="true" name="acl_ruleset_by_associated_process_owner">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>@2018-01 this is nonsense - process should associate object not opposite!!!</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:sequence maxOccurs="unbounded">
|
|
|
+ <!--<xs:element ref="wsbpel:process"/>-->
|
|
|
+ <xs:element name="acl_rule_local_set">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To control single local acl settings based on process owner association. It acts like CRM_WSKAZNIK</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_exherit_local_element_name">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+ </xs:sequence>
|
|
|
+ </xs:complexType>
|
|
|
+ <xs:complexType name="acl_ruleset"> </xs:complexType>
|
|
|
+ <xs:element name="local_element_inherit">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>Options to use in local complexType/sequence/element configurations to allow config for single element to be set in schema and be inherited ACL</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:complexType>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
|
|
|
+ <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+ <xs:element name="acl_rule_inherit_by_primary">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>To be used in local element to inherit ACL from primary key to current local element</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:element>
|
|
|
+</xs:schema>
|