Role Module
Overview
This module is used for defining new role.
Module's schema is defined in security.xsd.
Attributes
name | type | required | description |
---|---|---|---|
identifier | string | yes | Identifier of the role. |
description | string | no | Description of the role. |
Example
Please find below an example of plugin defining one role module. Lines 8 contains a module which defines new role ADMIN.
<?xml version="1.0" encoding="UTF-8"?> <plugin plugin="samplePlugin" version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schema.qcadoo.org/plugin" xmlns:security="http://schema.qcadoo.org/modules/security" xsi:schemaLocation="http://schema.qcadoo.org/plugin http://schema.qcadoo.org/plugin.xsd http://schema.qcadoo.org/modules/security http://schema.qcadoo.org/modules/security.xsd"> <security:role identifier="ROLE_ADMIN" description="Some description"/> </plugin>