From b08bd4dd4b0d4d17d4907c605dba11020cf11922 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 28 Sep 2007 15:47:50 +0000
Subject: [PATCH] Add support for specifying arbitrary constraints in managed object definitions and use it within the LDAP and JMX connection handlers to enforce their SSL/StartTLS settings. This feature will be re-used for other managed object definitions as the need arises.

---
 opends/resource/admin/admin.xsd |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/opends/resource/admin/admin.xsd b/opends/resource/admin/admin.xsd
index ba3fd5c..679e827 100644
--- a/opends/resource/admin/admin.xsd
+++ b/opends/resource/admin/admin.xsd
@@ -120,6 +120,49 @@
           </xsd:attribute>
         </xsd:complexType>
       </xsd:element>
+      <xsd:element name="constraint" minOccurs="0"
+        maxOccurs="unbounded">
+        <xsd:annotation>
+          <xsd:documentation>
+            A constraint on the properties of this managed object. A
+            constraint comprises of a condition which must always
+            evaluate to true before a modification is permitted.
+          </xsd:documentation>
+        </xsd:annotation>
+        <xsd:complexType>
+          <xsd:sequence>
+            <xsd:element name="synopsis"
+              type="tns:rich-description-type">
+              <xsd:annotation>
+                <xsd:documentation>
+                  A brief description of this constraint. The
+                  description should describe, preferably in one
+                  sentence, the purpose the condition associated with
+                  this constraint. The synopsis should be suitable for
+                  use in applications such as tool-tips, CLI help, and
+                  the summary description in Javadoc. It is possible to
+                  embed rich content including XHTML markup (this will
+                  only be used where supported).
+                </xsd:documentation>
+              </xsd:annotation>
+            </xsd:element>
+            <xsd:element name="condition">
+              <xsd:annotation>
+                <xsd:documentation>
+                  The condition associated with this constraint. The
+                  condition must evaluate to true before modifications
+                  are permitted.
+                </xsd:documentation>
+              </xsd:annotation>
+              <xsd:complexType>
+                <xsd:sequence>
+                  <xsd:group ref="tns:condition-group" />
+                </xsd:sequence>
+              </xsd:complexType>
+            </xsd:element>
+          </xsd:sequence>
+        </xsd:complexType>
+      </xsd:element>
       <xsd:element name="profile" type="tns:profile-type" minOccurs="0"
         maxOccurs="unbounded">
         <xsd:annotation>

--
Gitblit v1.10.0