@Override public boolean process(PatchingXmlArtifact.XmlArtifactState<Patch> parent, PatchingArtifactProcessor processor) { final InstalledIdentity identity = processor.getValidationContext().getInstalledIdentity(); final Patch patch = parent.getPatch(); if (Constants.BASE.equals(patch.getPatchId())) { return true;
@Override public boolean process(PatchingXmlArtifact.XmlArtifactState<Patch> parent, PatchingArtifactProcessor processor) { final InstalledIdentity identity = processor.getValidationContext().getInstalledIdentity(); final Patch patch = parent.getPatch(); if (Constants.BASE.equals(patch.getPatchId())) { return true;
@Override public boolean process(PatchingXmlArtifact.XmlArtifactState<RollbackPatch> parent, PatchingArtifactProcessor processor) { final RollbackPatch patch = parent.getPatch(); final PatchingArtifacts.PatchID patchID = processor.getParentArtifact(PatchingArtifacts.HISTORY_RECORD); final InstalledIdentity identity = patch.getIdentityState(); processor.getValidationContext().setCurrentPatchIdentity(identity); final State state = new State(identity, patchID); if (identity == null) { processor.getValidationContext().getErrorHandler().addMissing(PatchingArtifacts.ROLLBACK_TARGET, state); return false; } else { return processor.process(this, state); } }
@Override public boolean process(PatchingXmlArtifact.XmlArtifactState<RollbackPatch> parent, PatchingArtifactProcessor processor) { final RollbackPatch patch = parent.getPatch(); final PatchingArtifacts.PatchID patchID = processor.getParentArtifact(PatchingArtifacts.HISTORY_RECORD); final InstalledIdentity identity = patch.getIdentityState(); processor.getValidationContext().setCurrentPatchIdentity(identity); final State state = new State(identity, patchID); if (identity == null) { processor.getValidationContext().getErrorHandler().addMissing(PatchingArtifacts.ROLLBACK_TARGET, state); return false; } else { return processor.process(this, state); } }