package com.tandbergtv.workflow.driver.search;

import java.util.List;

import com.tandbergtv.workflow.core.WorkflowProcess;
import com.tandbergtv.workflow.util.SearchCriteria;

public interface ISearchHelper {

	/**
	 * Performs search based on the searchMap in the SearchCriteria and
	 * retrieves a list of WorkflowProcesses.
	 * 
	 * @param searchCriteria
	 */
	public List<WorkflowProcess> search(SearchCriteria searchCriteria);
	
	/**
	 * Performs search based on the searchMap in the SearchCriteria and
	 * retrieves the number of WorkflowProcesses matching the criteria.
	 * 
	 * @param searchCriteria
	 */
	public int count(SearchCriteria searchCriteria);
}