All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.carleton.gcrc.couch.command.impl.UpgradeReport Maven / Gradle / Ivy

There is a newer version: 2.2.7
Show newest version
package ca.carleton.gcrc.couch.command.impl;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.Vector;

public class UpgradeReport {

	/**
	 * File paths that are reported as deleted by upgrade process
	 */
	private Set deletedPaths = new HashSet();

	/**
	 * File paths that are reported as added by upgrade process
	 */
	private Set addedPaths = new HashSet();

	/**
	 * File paths that are reported as upgraded by upgrade process
	 */
	private Set upgradedPaths = new HashSet();
	
	/**
	 * Manifest computed from upgrade directory
	 */
	private FileSetManifest upgradeFileSetManifest = null;
	
	/**
	 * Manifest retrieved from installation report
	 */
	private FileSetManifest installedFileSetManifest = null;
	
	/**
	 * Manifest of relevant files on disk
	 */
	private FileSetManifest diskFileSetManifest = null;
	
	/**
	 * List of collisions that occurs during upgrade
	 */
	private List collisions = new Vector();
	
	/**
	 * Files that should actually be deleted during upgrade process
	 */
	private Set filesToBeDeleted = new HashSet();
	
	/**
	 * Directories that should actually be deleted during upgrade process
	 */
	private Set directoriesToBeDeleted = new HashSet();
	
	/**
	 * Files that should actually be added during upgrade process
	 */
	private Set filesToBeAdded = new HashSet();
	
	/**
	 * Directories that should actually be added during upgrade process
	 */
	private Set directoriesToBeAdded = new HashSet();
	
	/**
	 * Files that should actually be upgraded during upgrade process
	 */
	private Set filesToBeUpgraded = new HashSet();
	
	/**
	 * Paths of files that should be assumed as installed (simply update manifest
	 * of installed files)
	 */
	private Set pathsToAssumeUpgraded = new HashSet();
	
	/**
	 * Paths of files that should be assumed as deleted (simply remove from manifest
	 * of installed files)
	 */
	private Set pathsToAssumeDeleted = new HashSet();

	public Set getDeletedPaths() {
		return deletedPaths;
	}
	
	public void addDeletedPath(String path){
		deletedPaths.add(path);
	}

	public Set getAddedPaths() {
		return addedPaths;
	}
	
	public void addAddedPath(String path){
		addedPaths.add(path);
	}

	public Set getUpgradedPaths() {
		return upgradedPaths;
	}
	
	public void addUpgradedPath(String path){
		upgradedPaths.add(path);
	}

	public FileSetManifest getUpgradeFileSetManifest() {
		return upgradeFileSetManifest;
	}

	public void setUpgradeFileSetManifest(FileSetManifest upgradeFileSetManifest) {
		this.upgradeFileSetManifest = upgradeFileSetManifest;
	}

	public FileSetManifest getInstalledFileSetManifest() {
		return installedFileSetManifest;
	}

	public void setInstalledFileSetManifest(FileSetManifest installedFileSetManifest) {
		this.installedFileSetManifest = installedFileSetManifest;
	}

	public FileSetManifest getDiskFileSetManifest() {
		return diskFileSetManifest;
	}

	public void setDiskFileSetManifest(FileSetManifest diskFileSetManifest) {
		this.diskFileSetManifest = diskFileSetManifest;
	}

	public List getCollisions() {
		return collisions;
	}

	public void addCollision(UpgradeCollision collision){
		collisions.add(collision);
	}

	public Set getFilesToBeDeleted() {
		return filesToBeDeleted;
	}
	
	public void addFileToBeDeleted(String path){
		filesToBeDeleted.add(path);
	}

	public Set getDirectoriesToBeDeleted() {
		return directoriesToBeDeleted;
	}
	
	public void addDirectoryToBeDeleted(String path){
		directoriesToBeDeleted.add(path);
	}

	public Set getFilesToBeAdded() {
		return filesToBeAdded;
	}
	
	public void addFileToBeAdded(String path){
		filesToBeAdded.add(path);
	}

	public Set getDirectoriesToBeAdded() {
		return directoriesToBeAdded;
	}
	
	public void addDirectoryToBeAdded(String path){
		directoriesToBeAdded.add(path);
	}

	public Set getFilesToBeUpgraded() {
		return filesToBeUpgraded;
	}
	
	public void addFileToBeUpgraded(String path){
		filesToBeUpgraded.add(path);
	}

	public Set getPathsToAssumeUpgraded() {
		return pathsToAssumeUpgraded;
	}
	
	public void addPathToAssumeUpgraded(String path){
		pathsToAssumeUpgraded.add(path);
	}

	public Set getPathsToAssumeDeleted() {
		return pathsToAssumeDeleted;
	}
	
	public void addPathToAssumeDeleted(String path){
		pathsToAssumeDeleted.add(path);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy