@Test public void purgeBadApp() throws IOException { aar.purgeApplication("org.foo.BAD"); }
public synchronized void purgeApplication(String appName) { File appDir = new File(appsDir, appName); try { Tools.removeDirectory(appDir); } catch (IOException e) { throw new ApplicationException("Unable to purge application " + appName, e); } if (appDir.exists()) { throw new ApplicationException("Unable to purge application " + appName); } }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public synchronized void purgeApplication(String appName) { File appDir = new File(appsDir, appName); try { Tools.removeDirectory(appDir); } catch (IOException e) { throw new ApplicationException("Unable to purge application " + appName, e); } if (appDir.exists()) { throw new ApplicationException("Unable to purge application " + appName); } } }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public synchronized void purgeApplication(String appName) { File appDir = new File(appsDir, appName); try { Tools.removeDirectory(appDir); } catch (IOException e) { throw new ApplicationException("Unable to purge application " + appName, e); } if (appDir.exists()) { throw new ApplicationException("Unable to purge application " + appName); } }  }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public synchronized void purgeApplication(String appName) { File appDir = new File(appsDir, appName); try { Tools.removeDirectory(appDir); } catch (IOException e) { throw new ApplicationException("Unable to purge application " + appName, e); } if (appDir.exists()) { throw new ApplicationException("Unable to purge application " + appName); } }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value); }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public synchronized void purgeApplication(String appName) { File appDir = new File(appsDir, appName); try { Tools.removeDirectory(appDir); } catch (IOException e) { throw new ApplicationException("Unable to purge application " + appName, e); } if (appDir.exists()) { throw new ApplicationException("Unable to purge application " + appName); } }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value);  }