Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

Commit

Permalink
[MODULES-157] Schema modifications for security permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Feb 20, 2013
1 parent dc534ef commit f397109
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/main/resources/schema/module-1_2.xsd
Expand Up @@ -102,6 +102,14 @@
</documentation>
</annotation>
</xsd:element>
<xsd:element name="permissions" type="permissionsType" minOccurs="0">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
Lists the requested permission set for this module. If the requested permissions cannot
be assigned, the module cannot be loaded.
</documentation>
</annotation>
</xsd:element>
</xsd:all>
<xsd:attribute name="name" type="moduleNameType" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
Expand Down Expand Up @@ -543,4 +551,54 @@
</annotation>
</xsd:attribute>
</xsd:complexType>

<xsd:complexType name="permissionsType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A list of permissions that this module requires.
</documentation>
</annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="grant" type="permissionType">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The permission to grant.
</documentation>
</annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>

<xsd:complexType name="permissionType">
<xsd:attribute name="permission" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The qualified class name of the permission to grant.
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="name" type="xsd:string" use="required">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The permission name to provide to the permission class constructor.
</documentation>
</annotation>
</xsd:attribute>
<xsd:attribute name="actions" type="actionList" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The (optional) list of actions, required by some permission types.
</documentation>
</annotation>
</xsd:attribute>
</xsd:complexType>

<xsd:simpleType name="actionList">
<xsd:list itemType="xsd:string"/>
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A list of actions. As per XML standard, each item is separated by whitespace.
</documentation>
</annotation>
</xsd:simpleType>
</xsd:schema>

0 comments on commit f397109

Please sign in to comment.