@@ -0,0 +1,1049 @@
+package com.cube.storm.content.lib.manager;%0A%0Aimport com.cube.storm.content.lib.helper.BundleHelper;%0A%0Aimport java.io.File;%0A%0A/**%0A * %7B@link BundleIntegrityManager%7D implementation based on the pre-existing Storm logic from before the introduction of %7B@link BundleIntegrityManager%7D%0A * %7B@link LegacyBundleIntegrityManager#integrityCheck(String)%7D leverages %7B@link BundleHelper#integrityCheck(String)%7D to ensure that every file listed in the manifest matches the hash of that file in the bundle%0A * %7B@link LegacyBundleIntegrityManager#enforceIntegrityAfterDeployment(File)%7D leverages %7B@link BundleHelper#deleteUnexpectedFiles(File)%7D to delete any files in the cache that are not listed in the manifest%0A *%0A * @author JR Mitchell%0A */%0Apublic class LegacyBundleIntegrityManager implements BundleIntegrityManager%0A%7B%0A%09@Override public boolean integrityCheck(String contentPath)%0A%09%7B%0A%09%09return BundleHelper.integrityCheck(contentPath);%0A%09%7D%0A%09%0A%09@Override public void enforceIntegrityAfterDeployment(File cachePath)%0A%09%7B%0A%09%09BundleHelper.deleteUnexpectedFiles(cachePath);%0A%09%7D%0A%7D%0A

Implement LegacyBundleIntegrityManager.java which replicates pre-existing Storm integrity behaviour