Examples of addFilterCategory()


Examples of org.rhq.core.domain.criteria.ResourceTypeCriteria.addFilterCategory()

        if (sawTopLevelServer) {
            // get all platform types, whether or not they are ignored
            ResourceTypeCriteria criteria = new ResourceTypeCriteria();
            criteria.addFilterIgnored(null);
            criteria.addFilterCategory(ResourceCategory.PLATFORM);
            criteria.clearPaging();//disable paging as the code assumes all the results will be returned.

            List<ResourceType> platforms = findResourceTypesByCriteria(subject, criteria);
            results.addAll(platforms);
        }
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceTypeCriteria.addFilterCategory()

    @Override
    public PageList<PlatformMetricsSummary> loadPlatformMetrics(final Subject subject) {
        final ResourceTypeCriteria typeCriteria = new ResourceTypeCriteria();
        typeCriteria.addFilterIgnored(false); // don't load metrics for ignored types
        typeCriteria.addFilterCategory(PLATFORM);
        typeCriteria.fetchMetricDefinitions(true);

        //Use CriteriaQuery to automatically chunk/page through criteria query results
        CriteriaQueryExecutor<ResourceType, ResourceTypeCriteria> queryExecutor = new CriteriaQueryExecutor<ResourceType, ResourceTypeCriteria>() {
            @Override
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.