/**
 * ITokenSearchService.java
 * Created Jun 11, 2007
 * Copyright (c) Tandberg Television 2007
 */
package com.tandbergtv.workflow.driver.service;

import java.util.Collection;

import com.tandbergtv.workflow.core.CustomToken;
import com.tandbergtv.workflow.core.service.Service;
import com.tandbergtv.workflow.util.SearchCriteria;

/**
 * Searches for tokens
 * 
 * @author Sahil Verma
 */
public interface ITokenSearchService extends Service {
	
	/**
	 * Returns a count of tokens that match the specified criteria
	 * 
	 * @return
	 */
	int count(SearchCriteria criteria);
	
	/**
	 * Returns tokens that match the specified criteria
	 * 
	 * @param criteria
	 * @return
	 */
	Collection<CustomToken> search(SearchCriteria criteria);
}
