public static boolean isAuthorized(ResourceType resourceType, Long resourceId,
                                     Set<RoleAuthorization> requiredAuthorizations) {
    return isAuthorized(getAuthentication(), resourceType, resourceId, requiredAuthorizations);
  }
Determines if the authenticated user (from application's security context) is authorized to
perform an operation on the specific resource by matching the authenticated user's
authorizations with one from the provided set of authorizations.

@param resourceType           a resource type being acted upon
@param resourceId             the privilege resource id (or adminresource.id) of the relevant resource
@param requiredAuthorizations a set of requirements for which one match will allow authorization
@return true if authorized; otherwise false
@see #isAuthorized(Authentication, ResourceType, Long, Set)
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AuthorizationHelper.java