public static boolean isAuthorized(Authentication authentication, ResourceType resourceType,
                                     Long resourceId, RoleAuthorization requiredAuthorization) {
    return isAuthorized(authentication, resourceType, resourceId, EnumSet.of(requiredAuthorization));
  }
Determines if the specified authenticated user is authorized to perform an operation on the
specific resource by matching the authenticated user's authorizations with the one indicated.

@param authentication        the authenticated user and associated access privileges
@param resourceType          a resource type being acted upon
@param resourceId            the privilege resource id (or adminresource.id) of the relevant resource
@param requiredAuthorization the required 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