modifiable attribute is now a string rather than a boolean. See 'locks' type document...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 14 Dec 2006 12:26:59 +0000 (12:26 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 14 Dec 2006 12:26:59 +0000 (12:26 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@256 be28352e-c001-0410-b1a7-c7978e42abec

schemas/vamsas.xsd

index 284879f..5eb52d1 100644 (file)
                                        <xs:documentation> Primary Key for vamsas object referencing </xs:documentation>
                                </xs:annotation>
                        </xs:attribute>
-                       <xs:attribute name="modifiable" type="xs:boolean" use="optional" default="true">
-                               <xs:annotation>
-                                       <xs:documentation> objects with modifiable=false will not be modified by a
-                                               vamsas client update </xs:documentation>
-                               </xs:annotation>
+                       <xs:attribute name="modifiable" type="vamsas:locks" use="optional">
                        </xs:attribute>
                </xs:complexType>
        </xs:element>
                                                                                </xs:documentation>
                                                                        </xs:annotation>
                                                                </xs:attribute>
-                                                               <xs:attribute name="modifiable" type="xs:boolean" use="optional"
-                                                                       default="true">
-                                                                       <xs:annotation>
-                                                                               <xs:documentation> objects with modifiable=false will not be
-                                                                                       modified by a vamsas client update </xs:documentation>
-                                                                       </xs:annotation>
+                                                               <xs:attribute name="modifiable" type="vamsas:locks" use="optional">
                                                                </xs:attribute>
                                                        </xs:extension>
                                                </xs:simpleContent>
                                        <xs:documentation> Primary Key for vamsas object referencing </xs:documentation>
                                </xs:annotation>
                        </xs:attribute>
-                       <xs:attribute name="modifiable" type="xs:boolean" use="optional" default="true">
-                               <xs:annotation>
-                                       <xs:documentation> objects with modifiable=false will not be modified by a
-                                               vamsas client update </xs:documentation>
-                               </xs:annotation>
+                       <xs:attribute name="modifiable" type="vamsas:locks" use="optional">
                        </xs:attribute>
                </xs:complexType>
        </xs:element>
                                                </xs:documentation>
                                        </xs:annotation>
                                </xs:attribute>
-                               <xs:attribute name="modifiable" type="xs:boolean" use="optional" default="true">
-                                       <xs:annotation>
-                                               <xs:documentation> objects with modifiable=false will not be modified by a
-                                                       vamsas client update </xs:documentation>
-                                       </xs:annotation>
+                               <xs:attribute name="modifiable" type="vamsas:locks" use="optional">
                                </xs:attribute>
                                <xs:attribute name="group" type="xs:string" use="optional" default="">
                                        <xs:annotation>
                                                                </xs:documentation>
                                                        </xs:annotation>
                                                </xs:attribute>
-                                               <xs:attribute name="modifiable" type="xs:boolean" use="optional"
-                                                       default="true">
-                                                       <xs:annotation>
-                                                               <xs:documentation> objects with modifiable=false will not be
-                                                                       modified by a vamsas client update </xs:documentation>
-                                                       </xs:annotation>
+                                               <xs:attribute name="modifiable" type="vamsas:locks" use="optional">
                                                </xs:attribute>
+                                               
                                        </xs:complexType>
                                </xs:element>
                                <xs:element ref="vamsas:Tree" minOccurs="0" maxOccurs="unbounded"/>
                        </xs:annotation>
                </xs:attribute>
        </xs:complexType>
+       <xs:simpleType name="locks">
+               <xs:annotation>
+                       <xs:documentation>
+                               Contains lock information:
+                               locktype:ApplicationHandle
+                               locktype is 'local' or 'full'
+                               A lock is only valid if the ApplicationHandle resolves to a living application in the vamsas session.
+                               A local lock means that the application has locked changes to all local properties on the object.
+                               A full lock means that the application has locked changes to all properties on the object, and any objects that it holds references to.
+                       </xs:documentation>
+               </xs:annotation>
+               <xs:restriction base="xs:string"/>
+       </xs:simpleType>
 </xs:schema>