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

Add support for modules to register new roles

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Ready for Work
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Module Engine
    • Labels:
      None
    • Complexity:
      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>
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            wyclif Wyclif Luyima
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: