class AlertResourceProvider extends ReadOnlyResourceProvider implements
    ExtendedResourceProvider {

  @Override
  public QueryResponse queryForResources(Request request, Predicate predicate)
      throws SystemException, UnsupportedPropertyException, NoSuchResourceException,
      NoSuchParentResourceException {

    return new QueryResponseImpl(getResources(request, predicate),
        request.getSortRequest() != null, request.getPageRequest() != null,
        alertsDAO.getCount(predicate));
  }

    AlertResourceProvider(AmbariManagementController controller);

}