user-roles_1_0.xsd 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- $Id: user-roles_1_0.xsd 36257 2005-09-22 23:41:22Z starksm $ -->
  3. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. elementFormDefault="qualified"
  5. targetNamespace="urn:jboss:user-roles:1.0"
  6. xmlns:jbxb="http://www.jboss.org/xml/ns/jbxb"
  7. xmlns:ur="urn:jboss:user-roles:1.0">
  8. <xsd:element name="users">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. This is the jbossxb annotated schema for the embedded users content
  12. for the org.jboss.security.auth.spi.XMLLoginModule
  13. </xsd:documentation>
  14. <xsd:appinfo>
  15. <jbxb:class impl="org.jboss.security.auth.spi.Users"/>
  16. </xsd:appinfo>
  17. </xsd:annotation>
  18. <xsd:complexType>
  19. <xsd:sequence>
  20. <xsd:element minOccurs="1" maxOccurs="unbounded" ref="ur:user"/>
  21. </xsd:sequence>
  22. </xsd:complexType>
  23. </xsd:element>
  24. <xsd:element name="user">
  25. <xsd:annotation>
  26. <xsd:appinfo>
  27. <jbxb:class impl="org.jboss.security.auth.spi.Users$User"/>
  28. <jbxb:addMethod name="addUser" valueType="child"/>
  29. </xsd:appinfo>
  30. </xsd:annotation>
  31. <xsd:complexType>
  32. <xsd:sequence>
  33. <xsd:element minOccurs="0" maxOccurs="unbounded" ref="ur:role"/>
  34. </xsd:sequence>
  35. <xsd:attribute name="name" use="required" type="xsd:NCName"/>
  36. <xsd:attribute name="password" use="required" type="xsd:NCName"/>
  37. </xsd:complexType>
  38. </xsd:element>
  39. <xsd:element name="role">
  40. <xsd:annotation>
  41. <xsd:appinfo>
  42. <jbxb:mapEntry/>
  43. <jbxb:putMethod name="addRole"
  44. keyType="java.lang.String" valueType="java.lang.String" />
  45. </xsd:appinfo>
  46. </xsd:annotation>
  47. <xsd:complexType>
  48. <xsd:attribute name="group" use="optional" type="xsd:NCName" default="Roles">
  49. <xsd:annotation>
  50. <xsd:appinfo>
  51. <jbxb:mapEntryValue/>
  52. </xsd:appinfo>
  53. </xsd:annotation>
  54. </xsd:attribute>
  55. <xsd:attribute name="name" use="required" type="xsd:NCName">
  56. <xsd:annotation>
  57. <xsd:appinfo>
  58. <jbxb:mapEntryKey/>
  59. </xsd:appinfo>
  60. </xsd:annotation>
  61. </xsd:attribute>
  62. </xsd:complexType>
  63. </xsd:element>
  64. </xsd:schema>