Package org.rhq.core.domain.criteria

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


    private void fetchDefinitionWithGroupAndTemplate(final Alert alert) {
        AlertDefinitionCriteria criteria = new AlertDefinitionCriteria();
        criteria.addFilterAlertId(alert.getId());
        criteria.fetchGroupAlertDefinition(true);
        criteria.fetchResourceType(true);
        GWTServiceLookup.getAlertDefinitionService().findAlertDefinitionsByCriteria(criteria, new AsyncCallback<PageList<AlertDefinition>>() {
            public void onSuccess(PageList<AlertDefinition> result) {
                alert.getAlertDefinition().setGroupAlertDefinition(result.get(0).getGroupAlertDefinition());
                alert.getAlertDefinition().setResourceType(result.get(0).getResourceType());
                show(alert);
View Full Code Here


                    // template alert definition. I previously tried accessing the resource
                    // type id via AlertDefinition.resourceType.id, but resourceType is null
                    // even though fetchResourceType is set to true in the critera.
                    //
                    // jsanda
                    criteria.fetchResourceType(true);

                    CriteriaQueryExecutor<AlertDefinition, AlertDefinitionCriteria> queryExecutor =
                            new CriteriaQueryExecutor<AlertDefinition, AlertDefinitionCriteria>() {
                                @Override
                                public PageList<AlertDefinition> execute(AlertDefinitionCriteria criteria) {
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.