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());