コード例 #1
0
 @Override
 protected AlertDefinitionCriteria getSimpleCriteriaForAll() {
   AlertDefinitionCriteria criteria = new AlertDefinitionCriteria();
   criteria.addFilterResourceOnly(true);
   criteria.setPageControl(PageControl.getUnlimitedInstance());
   return criteria;
 }
コード例 #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;
 }