protected void addAuthorizationToRole(String roleName, String resourceType, String roleAuthorizationID) {
    if (!StringUtils.isEmpty(roleAuthorizationID)) {
      RoleAuthorizationDAO roleAuthorizationDAO = injector.getInstance(RoleAuthorizationDAO.class);
      RoleAuthorizationEntity roleAuthorization = roleAuthorizationDAO.findById(roleAuthorizationID);

      if (roleAuthorization != null) {
        addAuthorizationToRole(roleName, resourceType, roleAuthorization);
      }
    }
  }
Add a new authorization to the set of authorizations for a role

@param roleName            the name of the role
@param resourceType        the resource type of the role (AMBARI, CLUSTER, VIEW, etc...)
@param roleAuthorizationID the ID of the authorization
@see #addAuthorizationToRole(String, String, RoleAuthorizationEntity)
ambari-server/src/main/java/org/apache/ambari/server/upgrade/AbstractUpgradeCatalog.java