Examples of fetchAlertNotifications()


Examples of org.rhq.core.domain.criteria.AlertDefinitionCriteria.fetchAlertNotifications()

        AlertDefinitionManagerLocal adm = LookupUtil.getAlertDefinitionManager();

        AlertDefinitionCriteria crit = new AlertDefinitionCriteria();
        crit.addFilterId(groupLevelAlertDefinitionId);
        crit.fetchAlertNotifications(true);
        crit.fetchConditions(true);

        List<AlertDefinition> foundDefs = adm.findAlertDefinitionsByCriteria(subject, crit);

        assertEquals("Failed to find the previously created group level alert definition.", 1, foundDefs.size());
View Full Code Here

Examples of org.rhq.core.domain.criteria.AlertDefinitionCriteria.fetchAlertNotifications()

        AlertDefinitionManagerLocal adm = LookupUtil.getAlertDefinitionManager();

        AlertDefinitionCriteria crit = new AlertDefinitionCriteria();
        crit.addFilterId(templateLevelAlertDefinitionId);
        crit.fetchAlertNotifications(true);
        crit.fetchConditions(true);

        List<AlertDefinition> foundDefs = adm.findAlertDefinitionsByCriteria(subject, crit);

        assertEquals("Failed to find the previously created template level alert definition.", 1, foundDefs.size());
View Full Code Here

Examples of org.rhq.core.domain.criteria.AlertDefinitionCriteria.fetchAlertNotifications()

    }

    private void testMainAlertDefinition(int id) {
        AlertDefinitionCriteria crit = new AlertDefinitionCriteria();
        crit.addFilterId(id);
        crit.fetchAlertNotifications(true);

        List<AlertDefinition> checkList = LookupUtil.getAlertDefinitionManager().findAlertDefinitionsByCriteria(
            subject, crit);

        assertNotNull("Failed to retrieve the save alert definition", checkList);
View Full Code Here

Examples of org.rhq.core.domain.criteria.AlertDefinitionCriteria.fetchAlertNotifications()

            crit.addFilterAlertTemplateParentId(expectedParentId);
        } else if (parentType == ParentType.GROUP) {
            crit.addFilterGroupAlertDefinitionId(expectedParentId);
        }

        crit.fetchAlertNotifications(true);

        List<AlertDefinition> checkList = LookupUtil.getAlertDefinitionManager().findAlertDefinitionsByCriteria(
            subject, crit);

        assertNotNull("Failed to retrieve the save alert definition", checkList);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.