public static ModelNode getHistory(InstalledIdentity installedImage, PatchableTarget.TargetInfo info, boolean excludeAgedOut) throws PatchingException { final ModelNode result = new ModelNode(); result.setEmptyList(); fillHistoryIn(installedImage, info, result, excludeAgedOut); return result; }
public static ModelNode getHistory(InstalledIdentity installedImage, PatchableTarget.TargetInfo info, boolean excludeAgedOut) throws PatchingException { final ModelNode result = new ModelNode(); result.setEmptyList(); fillHistoryIn(installedImage, info, result, excludeAgedOut); return result; }
/** * Goes back in rollback history adding the patch id and it's application timestamp * to the resulting list. */ private static void fillHistoryIn(InstalledIdentity installedImage, PatchableTarget.TargetInfo info, ModelNode result, boolean excludeAgedOut) throws PatchingException { final Iterator i = iterator(installedImage, info, excludeAgedOut); while(i.hasNext()) { final Entry next = i.next(); fillHistoryIn(result, next); } }
/** * Goes back in rollback history adding the patch id and it's application timestamp * to the resulting list. */ private static void fillHistoryIn(InstalledIdentity installedImage, PatchableTarget.TargetInfo info, ModelNode result, boolean excludeAgedOut) throws PatchingException { final Iterator i = iterator(installedImage, info, excludeAgedOut); while(i.hasNext()) { final Entry next = i.next(); fillHistoryIn(result, next); } }