Examples of addFilterCandidate()


Examples of org.rhq.core.domain.criteria.RepoCriteria.addFilterCandidate()

                candidateRepo.addContentSource(contentSource);
                candidateRepo = repoManager.createRepo(overlord, candidateRepo);

                // Test
                RepoCriteria criteria = new RepoCriteria();
                criteria.addFilterCandidate(true);
                criteria.addFilterContentSourceIds(contentSource.getId());
                criteria.fetchRepoContentSources(true);

                PageList<Repo> foundRepos = repoManager.findReposByCriteria(overlord, criteria);
View Full Code Here

Examples of org.rhq.core.domain.criteria.RepoCriteria.addFilterCandidate()

    private void syncImportedRepos(ContentSource contentSource) throws InterruptedException {
        SubjectManagerLocal subjectManager = LookupUtil.getSubjectManager();
        final Subject overlord = subjectManager.getOverlord();
        final RepoCriteria repoCriteria = new RepoCriteria();
        repoCriteria.addFilterContentSourceIds(contentSource.getId());
        repoCriteria.addFilterCandidate(false);

        final RepoManagerLocal repoManager = LookupUtil.getRepoManagerLocal();

        //Use CriteriaQuery to automatically chunk/page through criteria query results
        CriteriaQueryExecutor<Repo, RepoCriteria> queryExecutor = new CriteriaQueryExecutor<Repo, RepoCriteria>() {
View Full Code Here

Examples of org.rhq.core.domain.criteria.RepoCriteria.addFilterCandidate()

            // Following same sort of workaround done in ContentProviderManager for synchronizeContentProvider
            // Assume this will need to be updated when we place syncing in repo layer
            //
            final RepoCriteria reposForContentSource = new RepoCriteria();
            reposForContentSource.addFilterContentSourceIds(contentSourceId);
            reposForContentSource.addFilterCandidate(false); // Don't sync distributions for candidates

            final Subject overlord = LookupUtil.getSubjectManager().getOverlord();
            //Use CriteriaQuery to automatically chunk/page through criteria query results
            CriteriaQueryExecutor<Repo, RepoCriteria> queryExecutor = new CriteriaQueryExecutor<Repo, RepoCriteria>() {
                @Override
View Full Code Here

Examples of org.rhq.core.domain.criteria.RepoCriteria.addFilterCandidate()

        // Hold on to all current candidate repos for the content source. If any were not present in this
        // report, remove them from the system (the rationale being, the content source no longer knows
        // about them and thus they cannot be imported).
        RepoCriteria candidateReposCriteria = new RepoCriteria();
        candidateReposCriteria.addFilterContentSourceIds(contentSourceId);
        candidateReposCriteria.addFilterCandidate(true);
        candidateReposCriteria.clearPaging();//disable paging as the code assumes all the results will be returned.

        PageList<Repo> candidatesForThisProvider = findReposByCriteria(subject, candidateReposCriteria);

        // Once the groups are in the system, import any repos that were added
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.