Package org.rhq.core.domain.bundle.composite

Examples of org.rhq.core.domain.bundle.composite.BundleWithLatestVersionComposite


            final ArrayList<String> doomedNames = new ArrayList<String>(selections.length);
            int[] doomedIds = new int[selections.length];
            int i = 0;
            for (ListGridRecord selection : selections) {
                BundleWithLatestVersionComposite object = dataSource.copyValues(selection);
                doomedNames.add(object.getBundleName());
                doomedIds[i++] = object.getBundleId();
            }

            BundleGWTServiceAsync bundleManager = GWTServiceLookup.getBundleService();
            final Duration duration = new Duration();
            bundleManager.deleteBundles(doomedIds, new AsyncCallback<Void>() {
View Full Code Here


            this.dataSource = dataSource;
        }

        @Override
        public void executeAction(ListGridRecord[] selection, Object actionValue) {
            final BundleWithLatestVersionComposite object = dataSource.copyValues(selection[0]);
            BundleCriteria bc = new BundleCriteria();
            bc.addFilterId(object.getBundleId());
            BundleGWTServiceAsync bundleManager = GWTServiceLookup.getBundleService();
            bundleManager.findBundlesByCriteria(bc, new AsyncCallback<PageList<Bundle>>() {
                @Override
                public void onFailure(Throwable caught) {
                    getErrorHandler().handleError(MSG.view_bundle_list_loadFailure(object.getBundleName()), caught);
                }

                @Override
                public void onSuccess(PageList<Bundle> result) {
                    if (result == null || result.size() != 1) {
                        String message = MSG.view_bundle_list_singleLoadFailure(object.getBundleName());
                        getMessageCenter().notify(new Message(message, Severity.Error));
                        return;
                    }
                    new BundleDeployWizard(result.get(0)).startWizard();
                    // we can refresh the table buttons immediately since the wizard is a dialog, the
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.bundle.composite.BundleWithLatestVersionComposite

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.