Skip to content

Commit

Permalink
Move messaging-related schema to a separate file
Browse files Browse the repository at this point in the history
Also added some types to it.
  • Loading branch information
mederly committed Mar 6, 2019
1 parent b8c0ca2 commit a989e3d
Show file tree
Hide file tree
Showing 7 changed files with 303 additions and 105 deletions.
1 change: 1 addition & 0 deletions infra/schema-pure-jaxb/src/compile/resources/catalog.xml
Expand Up @@ -32,6 +32,7 @@ Used when building via xjc.
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-core-3" uri="../../../target/midpoint-schema/xml/ns/public/common/common-core-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-model-context-3" uri="../../../target/midpoint-schema/xml/ns/public/common/common-model-context-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-notifications-3" uri="../../../target/midpoint-schema/xml/ns/public/common/common-notifications-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-messaging-3" uri="../../../target/midpoint-schema/xml/ns/public/common/common-messaging-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-workflows-3" uri="../../../target/midpoint-schema/xml/ns/public/common/common-workflows-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-policy-3" uri="../../../target/midpoint-schema/xml/ns/public/common/common-policy-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-case-management-3" uri="../../../target/midpoint-schema/xml/ns/public/common/common-case-management-3.xsd" />
Expand Down
Expand Up @@ -49,6 +49,7 @@ Notes:
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-core-3" uri="../xml/ns/public/common/common-core-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-model-context-3" uri="../xml/ns/public/common/common-model-context-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-notifications-3" uri="../xml/ns/public/common/common-notifications-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-messaging-3" uri="../xml/ns/public/common/common-messaging-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-workflows-3" uri="../xml/ns/public/common/common-workflows-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-policy-3" uri="../xml/ns/public/common/common-policy-3.xsd" />
<system systemId="http://midpoint.evolveum.com/xml/ns/public/common/common-case-management-3" uri="../xml/ns/public/common/common-case-management-3.xsd" />
Expand Down
Expand Up @@ -100,6 +100,7 @@
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-certification-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-model-context-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-notifications-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-messaging-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-workflows-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-policy-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-case-management-3"/>
Expand Down
Expand Up @@ -38,6 +38,7 @@
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-model-context-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-certification-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-notifications-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-messaging-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-workflows-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-policy-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-case-management-3" />
Expand Down Expand Up @@ -24132,110 +24133,5 @@
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="MessageSourceConfigurationType">
<xsd:annotation>
<xsd:documentation>
Messaging client configuration
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9.1</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="uri" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Connection URI.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="username" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
User name used to authenticate to AMQP server.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="password" type="t:ProtectedStringType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Password used to authenticate to AMQP server.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="messageSourceConfigurationType" type="tns:MessageSourceConfigurationType"/>

<xsd:complexType name="AmqpSourceConfigurationType">
<xsd:annotation>
<xsd:documentation>
AMQP client configuration
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9.1</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:MessageSourceConfigurationType">
<xsd:sequence>
<xsd:element name="virtualHost" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
AMQP virtual host; the default value is "/".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="queue" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Name of the queue to receive messages from.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="amqpSourceConfigurationType" type="tns:AmqpSourceConfigurationType"/>

<xsd:complexType name="MessageProcessingConfigurationType">
<xsd:annotation>
<xsd:documentation>
Message processing configuration.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9.1</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="source" type="tns:MessageSourceConfigurationType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Source of messages.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="consumerExpression" type="tns:ExpressionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Expression that receives a message and consumes it. Returns true if the message is to be acknowledged;
null, false or exception otherwise.
Mutually exclusive with transformerExpression.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="transformerExpression" type="tns:ExpressionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Expression that transforms a message into a set of ResourceObjectShadowChangeDescriptionType,
to be processed as a change. Returns null or an empty set if the message is to be simply discarded.
Mutually exclusive with consumerExpression.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

</xsd:schema>

0 comments on commit a989e3d

Please sign in to comment.