@Path("{permissionId}/authorizations")
  public RoleAuthorizationService getRoleAuthorizations(
      @Context jakarta.ws.rs.core.Request request, @PathParam("permissionId") String permissionId) {
    return new RoleAuthorizationService(permissionId);
  }
Gets the role (permission) authorization service.

@param request      the request
@param permissionId the permission id
@return the RoleAuthorizationService
ambari-server/src/main/java/org/apache/ambari/server/api/services/PermissionService.java