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

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

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

import ca.carleton.gcrc.couch.app.Document;
import ca.carleton.gcrc.couch.app.DocumentUpdateListener;
import ca.carleton.gcrc.couch.command.GlobalSettings;

public class UpdateProgress implements DocumentUpdateListener {

	private GlobalSettings gs;
	
	public UpdateProgress(GlobalSettings gs){
		this.gs = gs;
	}
	
	@Override
	public void documentSkippedBecauseModified(Document doc) {
		gs.getOutStream().println("Update skipped: "+doc.getId());
	}

	@Override
	public void documentSkippedBecauseUnchanged(Document doc) {
	}

	@Override
	public void updatingDocument(Phase phase, Document doc) {
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy