@Override
 protected AlertDefinitionCriteria getSimpleCriteriaForAll() {
   AlertDefinitionCriteria criteria = new AlertDefinitionCriteria();
   criteria.addFilterResourceOnly(true);
   criteria.setPageControl(PageControl.getUnlimitedInstance());
   return criteria;
 }
 @Override
 protected AlertDefinitionCriteria getFetchCriteria(DSRequest request) {
   AlertDefinitionCriteria criteria = new AlertDefinitionCriteria();
   criteria.addFilterResourceOnly(
       true); // guarantees that all alert defs we get will have a non-null Resource object
   criteria.setPageControl(getPageControl(request));
   criteria.fetchResource(true);
   criteria.fetchGroupAlertDefinition(true);
   return criteria;
 }