Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13814

Add (descriptive) label to permission resource and database schema

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • ambari-server, ambari-web

    Description

      Add (descriptive) label to permission resource and database schema to avoid having to hardcode a descriptive name for a permission. For example:

      Permission Name Permission Label
      VIEW.USER View User
      CLUSTER.USER Cluster User
      SERVICE.OPERATOR Service Operator
      SERVICE.ADMINISTRATOR Service Administrator
      CLUSTER.OPERATOR Cluster Operator
      CLUSTER.ADMINISTRATOR Cluster Administrator

      This descriptive label can be used in user interfaces so that a descriptive (or friendly) name does not have to be hardcoded.

      API Call Example
      GET api/v1/permissions/1
      
      200 OK
      {
        "href" : "http://your.ambari.server/api/v1/permissions/1",
        "PermissionInfo" : {
          "permission_id" : 1,
          "permission_name" : "AMBARI.ADMIN",
          "permission_label" : "Administrator",
          "resource_name" : "AMBARI"
        }
      }
      

      Attachments

        1. AMBARI-13814_trunk_03.patch
          31 kB
          Robert Levas
        2. AMBARI-13814_trunk_02.patch
          19 kB
          Robert Levas
        3. AMBARI-13814_trunk_01.patch
          21 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: