Package org.rhq.core.domain.criteria

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


       
        when(contentManager.findPackagesWithLatestVersion(any(Subject.class), any(PackageCriteria.class))).then(
            new Answer<List<PackageAndLatestVersionComposite>>() {
                @Override
                public List<PackageAndLatestVersionComposite> answer(InvocationOnMock invocation) throws Throwable {
                    PackageCriteria crit = (PackageCriteria) invocation.getArguments()[1];

                    //this is so wrong...
                    Field f = PackageCriteria.class.getDeclaredField("filterName");
                    f.setAccessible(true);
                    String name = (String) f.get(crit);
View Full Code Here


            repoSelector.addChangedHandler(new ChangedHandler() {
                public void onChanged(ChangedEvent event) {
                    final Integer repoId = Integer.valueOf(event.getItem().getValue().toString());
                    config.setSelectedRepo(repoId);

                    PackageCriteria pc = new PackageCriteria();
                    pc.addFilterRepoId(repoId);
                    pc.addFilterPackageTypeId(cliScriptPackageType.getPackageType().getId());

                    packageSelector.setDisabled(false);
                    existingPackageSelector.setDisabled(true);
                    existingPackageSelector.setValueMap(MSG.common_msg_loading());
View Full Code Here

                handler.onFailure(caught);
            }
        });

        if (repoId != null && repoId.trim().length() > 0) {
            PackageCriteria pc = new PackageCriteria();
            pc.addFilterRepoId(Integer.parseInt(repoId));
            pc.addFilterPackageTypeId(cliScriptPackageType.getPackageType().getId());
            GWTServiceLookup.getContentService().findPackagesWithLatestVersion(pc,
                new AsyncCallback<PageList<PackageAndLatestVersionComposite>>() {
                    public void onSuccess(PageList<PackageAndLatestVersionComposite> result) {
                        config.allPackages = result;
View Full Code Here

            }

            final ContentManagerRemote contentManager = rhqFacade.getProxy(ContentManagerRemote.class);

            for (Repo repo : repos) {
                final PackageCriteria pCrit = new PackageCriteria();
                pCrit.addFilterName(scriptName);
                pCrit.addFilterRepoId(repo.getId());

                //Use CriteriaQuery to automatically chunk/page through criteria query results
                CriteriaQueryExecutor<PackageAndLatestVersionComposite, PackageCriteria> pQueryExecutor = new CriteriaQueryExecutor<PackageAndLatestVersionComposite, PackageCriteria>() {
                    @Override
                    public PageList<PackageAndLatestVersionComposite> execute(PackageCriteria criteria) {
View Full Code Here

TOP

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

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.