Package org.rhq.core.domain.criteria

Examples of org.rhq.core.domain.criteria.BundleDestinationCriteria.clearPaging()


                    continue;
                }

                Bundle bundle = bundleVersion.getBundle();
                BundleDestinationCriteria destinationCriteria = new BundleDestinationCriteria();
                destinationCriteria.clearPaging(); //disable paging as the code assumes all the results will be returned.
                destinationCriteria.addFilterBundleId(bundle.getId());

                // get the viewable destinations and use to filter the deployments
                List<BundleDestination> destinations = findBundleDestinationsByCriteria(subject, destinationCriteria);
                List<BundleDeployment> filteredDeployments = new ArrayList<BundleDeployment>(numDeployments);
View Full Code Here


            for (Bundle bundle : result) {
                if (bundle.getDestinations().isEmpty()) {
                    continue;
                }
                BundleDestinationCriteria destinationCriteria = new BundleDestinationCriteria();
                destinationCriteria.clearPaging(); //disable paging as the code assumes all the results will be returned.
                destinationCriteria.addFilterBundleId(bundle.getId());
                List<BundleDestination> destinations = findBundleDestinationsByCriteria(subject, destinationCriteria);
                entityManager.detach(bundle); // make sure the narrowed set of destinations does not get persisted
                bundle.setDestinations(destinations);
            }
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.