protected boolean isAuthorizedToDeleteResources(Authentication authentication, Predicate predicate)
      throws SystemException {
    return AuthorizationHelper.isAuthorized(authentication, getResourceType(null, predicate),
        getResourceId(null, predicate), requiredDeleteAuthorizations);
  }
Tests authorization to delete resources.
<p/>
Implementations should override this method to perform a more sophisticated authorization routine.

@param authentication the authenticated user and associated access privileges
@param predicate      the predicate object which can be used to filter which resources are deleted
@return true if authorized; otherwise false
@throws SystemException if an internal system exception occurred
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractAuthorizedResourceProvider.java