Examples of addSummaryStatus()


Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addSummaryStatus()

        if (severity != IStatus.ERROR) {
            IStatus status = performProvisioningAction(resolutionResult.getProvisioningPlan(),
                    applyConfiguration);
            if (status.getSeverity() == IStatus.ERROR) {
                ResolutionResult rs = new ResolutionResult();
                rs.addSummaryStatus(status);
                String summaryReport = rs.getSummaryReport();
                throw new ProvisioningException(summaryReport);
            }
        } else {
            throw new ProvisioningException(resolutionResult.getSummaryReport());
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addSummaryStatus()

        ResolutionResult report = new ResolutionResult();
        report.setProvisioningPlan(plan);

        if (nothingToDo(originalRequest)) {
            report.addSummaryStatus(new Status(IStatus.ERROR, "temp", 10050,
                    "Cannot complete the request.  See the error log for details.", null));
            IStatus[] details = originalStatus.getChildren();
            for (IStatus detail : details) {
                report.addSummaryStatus(detail);
            }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addSummaryStatus()

        if (nothingToDo(originalRequest)) {
            report.addSummaryStatus(new Status(IStatus.ERROR, "temp", 10050,
                    "Cannot complete the request.  See the error log for details.", null));
            IStatus[] details = originalStatus.getChildren();
            for (IStatus detail : details) {
                report.addSummaryStatus(detail);
            }
            return report;
        }

        // If there was already some status supplied before resolution, this should get included
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addSummaryStatus()

        }

        // If there was already some status supplied before resolution, this should get included
        // with the report.
        if (originalStatus != null && originalStatus.getChildren().length > 0) {
            report.addSummaryStatus(originalStatus);
        }

        // If the overall plan had a non-OK status, capture that in the report.
        if (!plan.getStatus().isOK()) {
            report.addSummaryStatus(plan.getStatus());
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addSummaryStatus()

            report.addSummaryStatus(originalStatus);
        }

        // If the overall plan had a non-OK status, capture that in the report.
        if (!plan.getStatus().isOK()) {
            report.addSummaryStatus(plan.getStatus());
        }

        // Now we compare what was requested with what is going to happen.
        if (plan.getStatus().getSeverity() != IStatus.ERROR) {
            IInstallableUnit[] iusAdded = originalRequest.getAddedInstallableUnits();
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addSummaryStatus()

                if (rs.getSeverity() == IStatus.ERROR) {
                    // This is a serious error so it must also appear in the overall status
                    IStatus fail = new Status(IStatus.ERROR, "temp", 10011, anIusAdded.getId() +
                            " is not applicable to the current configuration and will not be installed.", null);
                    report.addStatus(anIusAdded, fail);
                    report.addSummaryStatus(fail);
                    report.addFailedInstallableUnit(anIusAdded);
                } else {
                    report.addReviewedInstallableUnit(anIusAdded);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addSummaryStatus()

                    // We are making assumptions here about why the planner chose to ignore an uninstall.
                    IStatus fail = new Status(IStatus.INFO, "temp", 10007, anIusRemoved.getId() +
                            " cannot be fully uninstalled because other installed software requires it.  " +
                            "The parts that are not required will be uninstalled.", null);
                    report.addStatus(anIusRemoved, fail);
                    report.addSummaryStatus(fail);
                    report.addFailedUninstallableUnit(anIusRemoved);
                } else {
                    report.addReviewedUninstallableUnit(anIusRemoved);
                }
            }
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.