Package org.rhq.core.domain.criteria

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


    }

    @Test(enabled = ENABLE_TESTS)
    public void testInventoryMergePerf() throws Exception {
        // remove existing packages
        InstalledPackageCriteria criteria = new InstalledPackageCriteria();
        criteria.addFilterResourceId(resource1.getId());
        criteria.clearPaging();
        List<InstalledPackage> installedPackages = contentManager.findInstalledPackagesByCriteria(
            subjectManager.getOverlord(), criteria);
        if (!installedPackages.isEmpty()) {
            int[] ids = new int[installedPackages.size()];
            int i = 0;
View Full Code Here


        ResourceType type = res.getResourceType();
        if (!ResourceCreationDataType.CONTENT.equals(type.getCreationDataType())) {
            return null;
        }

        InstalledPackageCriteria criteria = new InstalledPackageCriteria();
        criteria.addFilterResourceId(resourceId);
        PageList<InstalledPackage> ips = findInstalledPackagesByCriteria(subject, criteria);

        // should not be more than 1
        if ((null != ips) && (ips.size() > 0)) {
            int mostRecentPackageIndex = 0;
View Full Code Here

TOP

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

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.