public static void verifyViewAuthorization(AlertDefinitionEntity entity) throws AuthorizationException {
    verifyAuthorization(entity, AUTHORIZATIONS_VIEW_CLUSTER_ALERTS, AUTHORIZATIONS_VIEW_SERVICE_ALERTS, "view");
  }
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
An authorization failure results in a thrown {@link AuthorizationException}.

@param entity an AlertDefinitionEntity
@throws AuthorizationException if the authenticated user is not authorized
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProviderUtils.java