Package org.rhq.core.domain.criteria

Examples of org.rhq.core.domain.criteria.PartitionEventCriteria


    }

    @Override
    protected void onInit() {
        super.onInit();
        PartitionEventCriteria criteria = new PartitionEventCriteria();
        criteria.addFilterId(partitionEventId);
        final TopologyGWTServiceAsync service = GWTServiceLookup.getTopologyService();
        service.findPartitionEventsByCriteria(criteria, new AsyncCallback<PageList<PartitionEvent>>() {
            public void onSuccess(final PageList<PartitionEvent> events) {
                if (events == null || events.size() != 1) {
                    CoreGUI.getErrorHandler().handleError(
View Full Code Here


        PartitionEventType[] typesFilter = getArrayFilter(request, FILTER_EVENT_TYPE, PartitionEventType.class);
        if (statusesFilter == null || statusesFilter.length == 0 || typesFilter == null || typesFilter.length == 0) {
            return null; // user didn't select any ex. status or event type - return null to indicate no data should
                         // be displayed
        }
        PartitionEventCriteria criteria = new PartitionEventCriteria();
        //        printRequestCriteria(request);
        criteria.addFilterId(getFilter(request, FIELD_ID.propertyName(), Integer.class));
        criteria.addFilterEventDetail(getFilter(request, FIELD_EVENT_DETAIL.propertyName(), String.class));
        criteria.addFilterExecutionStatus(statusesFilter);
        criteria.addFilterEventType(typesFilter);

        //@todo: Remove me when finished debugging search expression
        Log.debug(" *** PartitionEventCriteria Search String: " + getFilter(request, "search", String.class));
        criteria.setSearchExpression(getFilter(request, "search", String.class));

        return criteria;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.criteria.PartitionEventCriteria

Copyright © 2018 www.massapicom. 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.