ibm-application-bnd_1_0.xsd 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema
  3. targetNamespace="http://websphere.ibm.com/xml/ns/javaee"
  4. xmlns="http://websphere.ibm.com/xml/ns/javaee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="1.0">
  9. <!-- ******************************************************* -->
  10. <xsd:annotation>
  11. <xsd:documentation>
  12. Copyright (c) 2010 IBM Corporation and others.
  13. All rights reserved. This program and the accompanying materials
  14. are made available under the terms of the Eclipse Public License v1.0
  15. which accompanies this distribution, and is available at
  16. http://www.eclipse.org/legal/epl-v10.html
  17. Contributors:
  18. IBM Corporation - initial API and implementation
  19. </xsd:documentation>
  20. </xsd:annotation>
  21. <!-- ******************************************************* -->
  22. <xsd:element name="application-bnd" type="application-bndType">
  23. <xsd:annotation>
  24. <xsd:documentation>
  25. The root of the ibm-application-bnd deployment descriptor.
  26. </xsd:documentation>
  27. </xsd:annotation>
  28. </xsd:element>
  29. <!-- ******************************************************* -->
  30. <xsd:complexType name="application-bndType">
  31. <xsd:choice minOccurs="0" maxOccurs="unbounded" >
  32. <xsd:element name="security-role" type="security-roleType"/>
  33. <xsd:element name="profile" type="profileType"/>
  34. </xsd:choice>
  35. <xsd:attribute name="version" type="xsd:string" fixed="1.0" use="required" />
  36. <xsd:attribute name="id" type="xsd:ID"/>
  37. </xsd:complexType>
  38. <!-- ******************************************************* -->
  39. <xsd:complexType name="security-roleType">
  40. <xsd:sequence>
  41. <!-- Users, groups and special-subjects are part of the RoleAssignment for this security-role -->
  42. <xsd:element name="user" type="userType" minOccurs="0" maxOccurs="unbounded" />
  43. <xsd:element name="group" type="groupType" minOccurs="0" maxOccurs="unbounded" />
  44. <xsd:element name="special-subject" type="special-subjectType" minOccurs="0" maxOccurs="unbounded" />
  45. <!-- Run-as defines the RunAsBinding for this security-role -->
  46. <xsd:element name="run-as" type="run-asType" minOccurs="0" maxOccurs="1" />
  47. </xsd:sequence>
  48. <xsd:attribute name="name" type="xsd:string" use="required" />
  49. <xsd:attribute name="id" type="xsd:ID"/>
  50. </xsd:complexType>
  51. <!-- ******************************************************* -->
  52. <xsd:complexType name="subjectType">
  53. <xsd:attribute name="name" type="xsd:string" use="required" />
  54. <!-- Access-id is for use by WebSphere, and should not be set by users -->
  55. <xsd:attribute name="access-id" type="xsd:string" />
  56. <xsd:attribute name="id" type="xsd:ID"/>
  57. </xsd:complexType>
  58. <!-- ******************************************************* -->
  59. <xsd:complexType name="userType">
  60. <xsd:complexContent>
  61. <xsd:extension base="subjectType" />
  62. </xsd:complexContent>
  63. </xsd:complexType>
  64. <!-- ******************************************************* -->
  65. <xsd:complexType name="groupType">
  66. <xsd:complexContent>
  67. <xsd:extension base="subjectType" />
  68. </xsd:complexContent>
  69. </xsd:complexType>
  70. <!-- ******************************************************* -->
  71. <xsd:complexType name="special-subjectType">
  72. <xsd:attribute name="type" use="required">
  73. <xsd:simpleType>
  74. <xsd:restriction base="xsd:string">
  75. <xsd:enumeration value="EVERYONE" />
  76. <xsd:enumeration value="ALL_AUTHENTICATED_USERS" />
  77. <xsd:enumeration value="ALL_AUTHENTICATED_IN_TRUSTED_REALMS" />
  78. <!-- SERVER should not be used, it is for backward compatibility only -->
  79. <xsd:enumeration value="SERVER" />
  80. </xsd:restriction>
  81. </xsd:simpleType>
  82. </xsd:attribute>
  83. <xsd:attribute name="id" type="xsd:ID"/>
  84. </xsd:complexType>
  85. <!-- ******************************************************* -->
  86. <xsd:complexType name="run-asType">
  87. <xsd:attribute name="userid" type="xsd:string" use="required" />
  88. <xsd:attribute name="password" type="xsd:string" />
  89. <xsd:attribute name="id" type="xsd:ID"/>
  90. </xsd:complexType>
  91. <!-- ******************************************************* -->
  92. <xsd:complexType name="profileType">
  93. <xsd:sequence>
  94. <xsd:element name="client-profile" type="client-profileType" minOccurs="0" maxOccurs="unbounded"/>
  95. </xsd:sequence>
  96. <xsd:attribute name="name" type="xsd:string" use="required" />
  97. <xsd:attribute name="id" type="xsd:ID"/>
  98. </xsd:complexType>
  99. <!-- ******************************************************* -->
  100. <xsd:complexType name="client-profileType">
  101. <xsd:attribute name="name" type="xsd:string" use="required" />
  102. <xsd:attribute name="id" type="xsd:ID"/>
  103. </xsd:complexType>
  104. </xsd:schema>