// Path: shim/src/main/java/info/vancauwenberge/filedriver/api/IFileSorterStrategy.java
// public interface IFileSorterStrategy extends IPublisherStrategy{
// 
// 	/*
// 	 * Get the first file to process from a list of files.
// 	 */
// 	public File getFirstFile(File[] fileList);
// }
// 
// Path: shim/src/main/java/info/vancauwenberge/filedriver/filepublisher/IPublisher.java
// public interface IPublisher {
// 
// 	/**
// 	 * Get the folder where files are moved to for processing
// 	 * @return
// 	 */
// 	public String getWorkDir();
// 
// 	/**
// 	 * Get the current file in process (should be in workDir).
// 	 * Note: files are only moved to the workdir just prior to processing. If multiple files are found for processing, only
// 	 * the first one is moved to 'workdir' and processed. After this, the next file is moved and processed etc...
// 	 * @return
// 	 */
// 	public File getCurrentFile();
// 
// }


import info.vancauwenberge.filedriver.api.IFileSorterStrategy;
import info.vancauwenberge.filedriver.filepublisher.IPublisher;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import com.novell.nds.dirxml.driver.Trace;
import com.novell.nds.dirxml.driver.xds.Parameter;
import com.novell.nds.dirxml.driver.xds.XDSParameterException;
/*******************************************************************************
 * Copyright (c) 2007, 2018 Stefaan Van Cauwenberge
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0 (the "License"). If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *  	 
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Initial Developer of the Original Code is
 * Stefaan Van Cauwenberge. Portions created by
 *  the Initial Developer are Copyright (C) 2007, 2018 by
 * Stefaan Van Cauwenberge. All Rights Reserved.
 *
 * Contributor(s): none so far.
 *    Stefaan Van Cauwenberge: Initial API and implementation
 *******************************************************************************/

package info.vancauwenberge.filedriver.filesorter;




/**
 * Implementation used if no sort order strategy is given.
 */
public class NoSortSorter implements IFileSorterStrategy{

	/* (non-Javadoc)
	 * @see info.vancauwenberge.filedriver.api.IFileSorterStrategy#getParameterDefinitions()
	 */
	public Map<String,Parameter> getParameterDefinitions() {
		return new HashMap<String,Parameter>(0);
	}

	/* (non-Javadoc)
	 * @see info.vancauwenberge.filedriver.api.IFileSorterStrategy#getFirstFile(com.novell.nds.dirxml.driver.Trace, java.io.File[])
	 */
	public File getFirstFile(File[] fileList) {
		return fileList[0];
	}

	/* (non-Javadoc)
	 * @see info.vancauwenberge.filedriver.api.IFileSorterStrategy#init(com.novell.nds.dirxml.driver.Trace, java.util.Map)
	 */
// Path: shim/src/main/java/info/vancauwenberge/filedriver/api/IFileSorterStrategy.java
// public interface IFileSorterStrategy extends IPublisherStrategy{
// 
// 	/*
// 	 * Get the first file to process from a list of files.
// 	 */
// 	public File getFirstFile(File[] fileList);
// }
// 
// Path: shim/src/main/java/info/vancauwenberge/filedriver/filepublisher/IPublisher.java
// public interface IPublisher {
// 
// 	/**
// 	 * Get the folder where files are moved to for processing
// 	 * @return
// 	 */
// 	public String getWorkDir();
// 
// 	/**
// 	 * Get the current file in process (should be in workDir).
// 	 * Note: files are only moved to the workdir just prior to processing. If multiple files are found for processing, only
// 	 * the first one is moved to 'workdir' and processed. After this, the next file is moved and processed etc...
// 	 * @return
// 	 */
// 	public File getCurrentFile();
// 
// }


// Path: shim/src/main/java/info/vancauwenberge/filedriver/filesorter/NoSortSorter.java
import info.vancauwenberge.filedriver.api.IFileSorterStrategy;
import info.vancauwenberge.filedriver.filepublisher.IPublisher;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import com.novell.nds.dirxml.driver.Trace;
import com.novell.nds.dirxml.driver.xds.Parameter;
import com.novell.nds.dirxml.driver.xds.XDSParameterException;

/*******************************************************************************
 * Copyright (c) 2007, 2018 Stefaan Van Cauwenberge
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0 (the "License"). If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *  	 
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Initial Developer of the Original Code is
 * Stefaan Van Cauwenberge. Portions created by
 *  the Initial Developer are Copyright (C) 2007, 2018 by
 * Stefaan Van Cauwenberge. All Rights Reserved.
 *
 * Contributor(s): none so far.
 *    Stefaan Van Cauwenberge: Initial API and implementation
 *******************************************************************************/

package info.vancauwenberge.filedriver.filesorter;




/**
 * Implementation used if no sort order strategy is given.
 */
public class NoSortSorter implements IFileSorterStrategy{

	/* (non-Javadoc)
	 * @see info.vancauwenberge.filedriver.api.IFileSorterStrategy#getParameterDefinitions()
	 */
	public Map<String,Parameter> getParameterDefinitions() {
		return new HashMap<String,Parameter>(0);
	}

	/* (non-Javadoc)
	 * @see info.vancauwenberge.filedriver.api.IFileSorterStrategy#getFirstFile(com.novell.nds.dirxml.driver.Trace, java.io.File[])
	 */
	public File getFirstFile(File[] fileList) {
		return fileList[0];
	}

	/* (non-Javadoc)
	 * @see info.vancauwenberge.filedriver.api.IFileSorterStrategy#init(com.novell.nds.dirxml.driver.Trace, java.util.Map)
	 */
	public void init(Trace trace, Map<String,Parameter> driverParams, IPublisher publisher) throws XDSParameterException {