Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2641

Add support for modules to register new roles

    XMLWordPrintable

Details

    • Low

    Description

      Modules should be able to easily register new roles through the config.xml file, a role tag could take the form below:

      <role>
        <name>New Role</name>
      </role>
      

      The structure above is good enough for the first pass since privileges and inherited roles could be managed from the web app otherwise the tag could allow other nested tags to specify privileges and inherited roles as below:

      <role>
        <name>New Role</name>
        <privileges>
          <privilege>privilege name1</privilege>
          <privilege>privilege name2</privilege>
        </privileges>
        <inheritedRoles>
          <inheritedRole>role name1<inheritedRole>
          <inheritedRole>role name2<inheritedRole>
        <inheritedRoles>
      </role>
      

      Gliffy Diagrams

        Attachments

          Activity

            People

              Unassigned Unassigned
              wyclif Wyclif Luyima
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: