// Path: src/main/java/com/asolutions/scmsshd/commands/FilteredCommand.java
// public class FilteredCommand {
// 	
// 	private String command;
// 	private String argument;
// 
// 	public FilteredCommand() {
// 	}
// 	
// 	public FilteredCommand(String command, String argument) {
// 		this.command = command;
// 		this.argument = argument;
// 	}
// 
// 	public void setArgument(String argument) {
// 		this.argument = argument;
// 	}
// 	
// 	public void setCommand(String command) {
// 		this.command = command;
// 	}
// 
// 	public String getCommand() {
// 		return this.command;
// 	}
// 
// 	public String getArgument() {
// 		return this.argument;
// 	}
// 	
// 	@Override
// 	public String toString()
// 	{
// 		return "Filtered Command: " + getCommand() + ", " + getArgument();
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/commands/NoOpCommand.java
// public class NoOpCommand implements Command {
// 	protected final Logger log = LoggerFactory.getLogger(getClass());
// 	private ExitCallback callback;
// 
// 	public void setErrorStream(OutputStream err) {
// 	}
// 
// 	public void setExitCallback(ExitCallback callback) {
// 		this.callback = callback;
// 	}
// 
// 	public void setInputStream(InputStream in) {
// 	}
// 
// 	public void setOutputStream(OutputStream out) {
// 	}
// 
// 	public void start() throws IOException {
// 		log.info("Executing No Op Command");
// 		callback.onExit(-1);
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/commands/filters/BadCommandException.java
// public class BadCommandException extends Exception {
// 
// 	private static final long serialVersionUID = 4904880805323643780L;
// 
// 	public BadCommandException(String reason) {
// 		super(reason);
// 	}
// 
// 	public BadCommandException() {
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/commands/filters/IBadCommandFilter.java
// public interface IBadCommandFilter {
// 
// 	FilteredCommand filterOrThrow(String command) throws BadCommandException;
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/converters/path/IPathToProjectNameConverter.java
// public interface IPathToProjectNameConverter {
// 
// 	public abstract String convert(String toParse)
// 			throws UnparsableProjectException;
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/sshd/IProjectAuthorizer.java
// public interface IProjectAuthorizer {
// 
// 	AuthorizationLevel userIsAuthorizedForProject(String username, String project) throws UnparsableProjectException;
// 
// }


import java.util.Properties;
import org.apache.sshd.server.CommandFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.asolutions.scmsshd.commands.FilteredCommand;
import com.asolutions.scmsshd.commands.NoOpCommand;
import com.asolutions.scmsshd.commands.filters.BadCommandException;
import com.asolutions.scmsshd.commands.filters.IBadCommandFilter;
import com.asolutions.scmsshd.converters.path.IPathToProjectNameConverter;
import com.asolutions.scmsshd.sshd.IProjectAuthorizer;

package com.asolutions.scmsshd.commands.factories;




public class CommandFactoryBase implements CommandFactory {
	protected final Logger log = LoggerFactory.getLogger(getClass());
	private IProjectAuthorizer projectAuthorizer;
	private IBadCommandFilter badCommandFilter;
	private ISCMCommandFactory scmCommandFactory;

// Path: src/main/java/com/asolutions/scmsshd/commands/FilteredCommand.java
// public class FilteredCommand {
// 	
// 	private String command;
// 	private String argument;
// 
// 	public FilteredCommand() {
// 	}
// 	
// 	public FilteredCommand(String command, String argument) {
// 		this.command = command;
// 		this.argument = argument;
// 	}
// 
// 	public void setArgument(String argument) {
// 		this.argument = argument;
// 	}
// 	
// 	public void setCommand(String command) {
// 		this.command = command;
// 	}
// 
// 	public String getCommand() {
// 		return this.command;
// 	}
// 
// 	public String getArgument() {
// 		return this.argument;
// 	}
// 	
// 	@Override
// 	public String toString()
// 	{
// 		return "Filtered Command: " + getCommand() + ", " + getArgument();
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/commands/NoOpCommand.java
// public class NoOpCommand implements Command {
// 	protected final Logger log = LoggerFactory.getLogger(getClass());
// 	private ExitCallback callback;
// 
// 	public void setErrorStream(OutputStream err) {
// 	}
// 
// 	public void setExitCallback(ExitCallback callback) {
// 		this.callback = callback;
// 	}
// 
// 	public void setInputStream(InputStream in) {
// 	}
// 
// 	public void setOutputStream(OutputStream out) {
// 	}
// 
// 	public void start() throws IOException {
// 		log.info("Executing No Op Command");
// 		callback.onExit(-1);
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/commands/filters/BadCommandException.java
// public class BadCommandException extends Exception {
// 
// 	private static final long serialVersionUID = 4904880805323643780L;
// 
// 	public BadCommandException(String reason) {
// 		super(reason);
// 	}
// 
// 	public BadCommandException() {
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/commands/filters/IBadCommandFilter.java
// public interface IBadCommandFilter {
// 
// 	FilteredCommand filterOrThrow(String command) throws BadCommandException;
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/converters/path/IPathToProjectNameConverter.java
// public interface IPathToProjectNameConverter {
// 
// 	public abstract String convert(String toParse)
// 			throws UnparsableProjectException;
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/sshd/IProjectAuthorizer.java
// public interface IProjectAuthorizer {
// 
// 	AuthorizationLevel userIsAuthorizedForProject(String username, String project) throws UnparsableProjectException;
// 
// }


// Path: src/main/java/com/asolutions/scmsshd/commands/factories/CommandFactoryBase.java
import java.util.Properties;
import org.apache.sshd.server.CommandFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.asolutions.scmsshd.commands.FilteredCommand;
import com.asolutions.scmsshd.commands.NoOpCommand;
import com.asolutions.scmsshd.commands.filters.BadCommandException;
import com.asolutions.scmsshd.commands.filters.IBadCommandFilter;
import com.asolutions.scmsshd.converters.path.IPathToProjectNameConverter;
import com.asolutions.scmsshd.sshd.IProjectAuthorizer;

package com.asolutions.scmsshd.commands.factories;




public class CommandFactoryBase implements CommandFactory {
	protected final Logger log = LoggerFactory.getLogger(getClass());
	private IProjectAuthorizer projectAuthorizer;
	private IBadCommandFilter badCommandFilter;
	private ISCMCommandFactory scmCommandFactory;

	private IPathToProjectNameConverter pathToProjectNameConverter;
