Exemplo n.º 1
0
 @Override
 protected AlertDefinitionCriteria getSimpleCriteriaForAll() {
   AlertDefinitionCriteria criteria = new AlertDefinitionCriteria();
   criteria.addFilterResourceOnly(true);
   criteria.setPageControl(PageControl.getUnlimitedInstance());
   return criteria;
 }
Exemplo n.º 2
0
 @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;
 }