ibm-application-bnd_1_1.xsd 5.0 KB

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