package com.tandbergtv.watchpoint.pmm.assetlist;

import java.util.Collection;

import com.tandbergtv.watchpoint.pmm.entities.IAssetList;
import com.tandbergtv.workflow.core.service.Service;
import com.tandbergtv.workflow.util.SearchCriteria;

public interface IAssetListSearchService<L extends IAssetList> extends Service {

	/**
	 * Returns the number of schedules that match the given criteria
	 * 
	 * @param criteria
	 * @return
	 */
	int count(SearchCriteria criteria);

	/**
	 * Searches by arbitrary criteria. The start index for result set and max
	 * result count will be ignored when fetching the results.
	 * 
	 * @param criteria
	 * @return
	 */
	Collection<L> search(SearchCriteria criteria);
}
