private static void fillHistoryIn(ModelNode result, Entry entry) throws PatchingException { ModelNode history = new ModelNode(); history.get(Constants.PATCH_ID).set(entry.getPatchId()); history.get(Constants.TYPE).set(entry.getType().getName()); final ModelNode appliedAtNode = history.get(Constants.APPLIED_AT); if(entry.getAppliedAt() != null) { appliedAtNode.set(entry.getAppliedAt()); } history.get(Constants.AGED_OUT).set(entry.isAgedOut()); result.add(history); } }
private static void fillHistoryIn(ModelNode result, Entry entry) throws PatchingException { ModelNode history = new ModelNode(); history.get(Constants.PATCH_ID).set(entry.getPatchId()); history.get(Constants.TYPE).set(entry.getType().getName()); final ModelNode appliedAtNode = history.get(Constants.APPLIED_AT); if(entry.getAppliedAt() != null) { appliedAtNode.set(entry.getAppliedAt()); } history.get(Constants.AGED_OUT).set(entry.isAgedOut()); result.add(history); } }
private ModelNode patchIdInfo(final OperationContext context, final String patchId, final boolean verbose, final PatchingHistory.Iterator i) { while(i.hasNext()) { final Entry entry = i.next(); if(patchId.equals(entry.getPatchId())) { final ModelNode result = new ModelNode(); result.get(Constants.PATCH_ID).set(entry.getPatchId()); result.get(Constants.TYPE).set(entry.getType().getName()); result.get(Constants.DESCRIPTION).set(entry.getMetadata().getDescription());
while(iterator.hasNext()) { final Entry next = iterator.next(); if(patchId.equals(next.getPatchId())) { final ModelNode response = new ModelNode(); response.get(OUTCOME).set(SUCCESS); final ModelNode result = response.get(RESULT); result.get(Constants.PATCH_ID).set(next.getPatchId()); result.get(Constants.TYPE).set(next.getType().getName()); final Patch metadata = next.getMetadata();
final File patchHistoryDir = installedIdentity.getInstalledImage().getPatchHistoryDir(entry.getPatchId()); if (patchHistoryDir.exists()) { ops.add(new DeleteOp(patchHistoryDir, HISTORY_FILTER));
final Patch original = loadPatchInformation(entry.getPatchId(), installedImage); for (final PatchElement originalElement : original.getElements()) { if (name.equals(originalElement.getProvider().getName())
final Patch original = loadPatchInformation(entry.getPatchId(), installedImage); for (final PatchElement originalElement : original.getElements()) { if (name.equals(originalElement.getProvider().getName())
final File patchHistoryDir = installedIdentity.getInstalledImage().getPatchHistoryDir(entry.getPatchId()); if (patchHistoryDir.exists()) { ops.add(new DeleteOp(patchHistoryDir, HISTORY_FILTER));
while(iterator.hasNext()) { final Entry next = iterator.next(); if(patchId.equals(next.getPatchId())) { final ModelNode response = new ModelNode(); response.get(OUTCOME).set(SUCCESS); final ModelNode result = response.get(RESULT); result.get(Constants.PATCH_ID).set(next.getPatchId()); result.get(Constants.TYPE).set(next.getType().getName()); final Patch metadata = next.getMetadata();
private ModelNode patchIdInfo(final OperationContext context, final String patchId, final boolean verbose, final PatchingHistory.Iterator i) { while(i.hasNext()) { final Entry entry = i.next(); if(patchId.equals(entry.getPatchId())) { final ModelNode result = new ModelNode(); result.get(Constants.PATCH_ID).set(entry.getPatchId()); result.get(Constants.TYPE).set(entry.getType().getName()); result.get(Constants.DESCRIPTION).set(entry.getMetadata().getDescription());