Package de.idos.updates

Examples of de.idos.updates.VersionedFileFactory


  public Update findLatestUpdate() throws IOException {
    return new UpdateDescription(findLatestVersion());
  }

  private Version findLatestVersion() throws IOException {
    List<VersionedFile> versionedFiles = new VersionedFileFactory().createVersionedFilesFrom(availableVersions);
    return new VersionedFileFinder().findLatestVersion(versionedFiles);
  }
View Full Code Here


        return installationStarter.start(targetFolder, report);
    }

    @Override
    public void removeOldVersions() {
        List<VersionedFile> versionedFiles = new VersionedFileFactory().createVersionedFilesFrom(folder);
        Version latestVersion = new VersionedFileFinder().findLatestVersion(versionedFiles);
        deleteAllButLatestVersion(versionedFiles, latestVersion);
    }
View Full Code Here

        deleteAllButLatestVersion(versionedFiles, latestVersion);
    }

    @Override
    public Version getLatestVersion() {
        List<VersionedFile> versionedFiles = new VersionedFileFactory().createVersionedFilesFrom(folder);
        return new VersionedFileFinder().findLatestVersion(versionedFiles);
    }
View Full Code Here

TOP

Related Classes of de.idos.updates.VersionedFileFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.