Examples of ProvisioningPlan


Examples of org.eclipse.equinox.internal.provisional.p2.director.ProvisioningPlan

    public RevertAction(String actionType) {
        super(actionType);
    }

    public ResolutionResult reviewProfileChangeAction(IProfile profile) throws ProvisioningException {
        ProvisioningPlan plan;
        IPlanner planner;
        IProfile currentProfile;
        IProfile snapshot = ProvisioningUtils.getProfile(IProfileRegistry.SELF, timestamp);
        if (snapshot == null) {
            throw new ProvisioningException("Invalid Profile Configuration");
        }

        planner = ServiceHolder.getPlanner();
        currentProfile = ProvisioningUtils.getProfile();
        plan = planner.getDiffPlan(currentProfile, snapshot, new NullProgressMonitor());
        if (plan == null) {
            throw new ProvisioningException("Failed to generate the Provisioning Plan");
        }

        return generateResolutionResult(plan.getProfileChangeRequest(), plan, getInitialStatus());
    }
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.p2.director.ProvisioningPlan

    public ResolutionResult reviewProfileChangeAction(IProfile profile) throws ProvisioningException {
        MultiStatus initialStatus = getInitialStatus();
        ProfileChangeRequest profileChangeRequest = generateProfileChangeRequest(
                profile, initialStatus, null);
        ProvisioningPlan provisioningPlan = generateProvisioningPlan(profileChangeRequest);
        if (provisioningPlan == null) {
            throw new ProvisioningException("Failed to generate the Provisioning Plan");
        }

        return generateResolutionResult(profileChangeRequest, provisioningPlan, initialStatus);
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.