public ITouchpointType getTouchpointType() { return original.getTouchpointType(); }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand operand) { IInstallableUnit unit = operand.second(); if (unit != null && unit.getTouchpointType().getId().equals(NATIVE_TYPE)) { ArrayList<ProvisioningAction> list = new ArrayList<>(1); list.add(new CollectNativesAction()); return list; } return null; }
protected final List<ProvisioningAction> getActions(IInstallableUnit unit, String key) { List<ITouchpointInstruction> instructions = getInstructions(unit, key); int instrSize = instructions.size(); if (instrSize == 0) return null; List<ProvisioningAction> actions = new ArrayList<ProvisioningAction>(); InstructionParser instructionParser = new InstructionParser(getActionManager()); for (int i = 0; i < instrSize; i++) { actions.addAll(instructionParser.parseActions(instructions.get(i), unit.getTouchpointType())); } return actions; }
protected final List<ProvisioningAction> getActions(IInstallableUnit unit, String key) { List<ITouchpointInstruction> instructions = getInstructions(unit, key); int instrSize = instructions.size(); if (instrSize == 0) return null; List<ProvisioningAction> actions = new ArrayList<>(); InstructionParser instructionParser = new InstructionParser(getActionManager()); for (int i = 0; i < instrSize; i++) { actions.addAll(instructionParser.parseActions(instructions.get(i), unit.getTouchpointType())); } return actions; }
protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { //TODO: monitor.subTask(NLS.bind(Messages.Engine_Unconfiguring_IU, unit.getId())); IInstallableUnit unit = currentOperand.first(); ProvisioningAction beforeAction = new BeforeUnConfigureEventAction(); ProvisioningAction afterAction = new AfterUnConfigureEventAction(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<ProvisioningAction>(); actions.add(beforeAction); if (!QueryUtil.isFragment(unit)) { List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); } actions.add(afterAction); return actions; }
protected IStatus initializeOperand(IProfile profile, Operand operand, Map<String, Object> parameters, IProgressMonitor monitor) { InstallableUnitOperand iuOperand = (InstallableUnitOperand) operand; MultiStatus status = new MultiStatus(EngineActivator.ID, IStatus.OK, null, null); mergeStatus(status, initializeOperand(profile, iuOperand, parameters, monitor)); IInstallableUnit unit = (IInstallableUnit) parameters.get(PARM_IU); if (unit != null) { Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { parameters.put(PARM_TOUCHPOINT, touchpoint); } } mergeStatus(status, super.initializeOperand(profile, operand, parameters, monitor)); return status; }
@Override protected IStatus initializeOperand(IProfile profile, Operand operand, Map<String, Object> parameters, IProgressMonitor monitor) { InstallableUnitOperand iuOperand = (InstallableUnitOperand) operand; MultiStatus status = new MultiStatus(EngineActivator.ID, IStatus.OK, null, null); mergeStatus(status, initializeOperand(profile, iuOperand, parameters, monitor)); IInstallableUnit unit = (IInstallableUnit) parameters.get(PARM_IU); if (unit != null) { Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { parameters.put(PARM_TOUCHPOINT, touchpoint); } } mergeStatus(status, super.initializeOperand(profile, operand, parameters, monitor)); return status; }
protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { //TODO: monitor.subTask(NLS.bind(Messages.Engine_Installing_IU, unit.getId())); ProvisioningAction beforeAction = new BeforeInstallEventAction(); ProvisioningAction afterAction = new AfterInstallEventAction(); IInstallableUnit unit = currentOperand.second(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<ProvisioningAction>(); actions.add(beforeAction); if (QueryUtil.isFragment(unit)) { actions.add(afterAction); return actions; } List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); actions.add(afterAction); return actions; }
protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { //TODO: monitor.subTask(NLS.bind(Messages.Engine_Uninstalling_IU, unit.getId())); ProvisioningAction beforeAction = new BeforeUninstallEventAction(); ProvisioningAction afterAction = new AfterUninstallEventAction(); IInstallableUnit unit = currentOperand.first(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<ProvisioningAction>(); actions.add(beforeAction); if (QueryUtil.isFragment(unit)) { actions.add(afterAction); return actions; } List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); actions.add(afterAction); return actions; }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { //TODO: monitor.subTask(NLS.bind(Messages.Engine_Uninstalling_IU, unit.getId())); ProvisioningAction beforeAction = new BeforeUninstallEventAction(); ProvisioningAction afterAction = new AfterUninstallEventAction(); IInstallableUnit unit = currentOperand.first(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<>(); actions.add(beforeAction); if (QueryUtil.isFragment(unit)) { actions.add(afterAction); return actions; } List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); actions.add(afterAction); return actions; }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { //TODO: monitor.subTask(NLS.bind(Messages.Engine_Installing_IU, unit.getId())); ProvisioningAction beforeAction = new BeforeInstallEventAction(); ProvisioningAction afterAction = new AfterInstallEventAction(); IInstallableUnit unit = currentOperand.second(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<>(); actions.add(beforeAction); if (QueryUtil.isFragment(unit)) { actions.add(afterAction); return actions; } List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); actions.add(afterAction); return actions; }
protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { IInstallableUnit unit = currentOperand.second(); ProvisioningAction beforeAction = new BeforeConfigureEventAction(); ProvisioningAction afterAction = new AfterConfigureEventAction(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<ProvisioningAction>(); actions.add(beforeAction); if (!QueryUtil.isFragment(unit)) { List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); } actions.add(afterAction); return actions; }
protected List<ProvisioningAction> getActions(InstallableUnitOperand operand) { IInstallableUnit unit = operand.second(); List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) return parsedActions; ITouchpointType type = unit.getTouchpointType(); if (type == null || type == ITouchpointType.NONE) return null; String actionId = getActionManager().getTouchpointQualifiedActionId(phaseId, type); ProvisioningAction action = getActionManager().getAction(actionId, null); if (action == null) { return null; } return Collections.singletonList(action); }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { IInstallableUnit unit = currentOperand.second(); ProvisioningAction beforeAction = new BeforeConfigureEventAction(); ProvisioningAction afterAction = new AfterConfigureEventAction(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<>(); actions.add(beforeAction); if (!QueryUtil.isFragment(unit)) { List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); } actions.add(afterAction); return actions; }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand currentOperand) { //TODO: monitor.subTask(NLS.bind(Messages.Engine_Unconfiguring_IU, unit.getId())); IInstallableUnit unit = currentOperand.first(); ProvisioningAction beforeAction = new BeforeUnConfigureEventAction(); ProvisioningAction afterAction = new AfterUnConfigureEventAction(); Touchpoint touchpoint = getActionManager().getTouchpointPoint(unit.getTouchpointType()); if (touchpoint != null) { beforeAction.setTouchpoint(touchpoint); afterAction.setTouchpoint(touchpoint); } ArrayList<ProvisioningAction> actions = new ArrayList<>(); actions.add(beforeAction); if (!QueryUtil.isFragment(unit)) { List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) actions.addAll(parsedActions); } actions.add(afterAction); return actions; }
protected List<ProvisioningAction> getActions(InstallableUnitOperand operand) { IInstallableUnit unit = operand.second(); List<ProvisioningAction> parsedActions = getActions(unit, COLLECT_PHASE_ID); if (parsedActions != null) return parsedActions; ITouchpointType type = unit.getTouchpointType(); if (type == null || type == ITouchpointType.NONE) return null; String actionId = getActionManager().getTouchpointQualifiedActionId(COLLECT_PHASE_ID, type); ProvisioningAction action = getActionManager().getAction(actionId, null); if (action == null) { return null; } return Collections.singletonList(action); }
protected List<ProvisioningAction> getActions(InstallableUnitOperand operand) { IInstallableUnit unit = operand.second(); List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) return parsedActions; ITouchpointType type = unit.getTouchpointType(); if (type == null || type == ITouchpointType.NONE) return null; String actionId = getActionManager().getTouchpointQualifiedActionId(phaseId, type); ProvisioningAction action = getActionManager().getAction(actionId, null); if (action == null) { return null; } return Collections.singletonList(action); }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand operand) { IInstallableUnit unit = operand.second(); List<ProvisioningAction> parsedActions = getActions(unit, COLLECT_PHASE_ID); if (parsedActions != null) return parsedActions; ITouchpointType type = unit.getTouchpointType(); if (type == null || type == ITouchpointType.NONE) return null; String actionId = getActionManager().getTouchpointQualifiedActionId(COLLECT_PHASE_ID, type); ProvisioningAction action = getActionManager().getAction(actionId, null); if (action == null) { return null; } return Collections.singletonList(action); }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand operand) { IInstallableUnit unit = operand.second(); List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) return parsedActions; ITouchpointType type = unit.getTouchpointType(); if (type == null || type == ITouchpointType.NONE) return null; String actionId = getActionManager().getTouchpointQualifiedActionId(phaseId, type); ProvisioningAction action = getActionManager().getAction(actionId, null); if (action == null) { return null; } return Collections.singletonList(action); }
@Override protected List<ProvisioningAction> getActions(InstallableUnitOperand operand) { IInstallableUnit unit = operand.second(); List<ProvisioningAction> parsedActions = getActions(unit, phaseId); if (parsedActions != null) return parsedActions; ITouchpointType type = unit.getTouchpointType(); if (type == null || type == ITouchpointType.NONE) return null; String actionId = getActionManager().getTouchpointQualifiedActionId(phaseId, type); ProvisioningAction action = getActionManager().getAction(actionId, null); if (action == null) { return null; } return Collections.singletonList(action); }