package br.com.centralit.citcorpore.negocio;

import java.util.Collection;
import java.util.HashMap;

import br.com.centralit.citcorpore.bean.LocalExecucaoServicosDto;
import br.com.citframework.excecao.PersistenceException;
import br.com.citframework.excecao.ServiceException;
import br.com.citframework.service.CrudService;

public interface LocalExecuxaoServicoService extends CrudService {

	public boolean verificarSeLocalExecucaoServicoPossuiServico(HashMap mapFields) throws PersistenceException, ServiceException;

	public String verificaDescricaoDuplicadaAoCriar(HashMap mapFields) throws Exception;

	public String verificaDescricaoDuplicadaAoAlterar(HashMap mapFields) throws Exception;

	/**
	 * Metodo reponsavel por buscar os locais de execução dos serviços que estão
	 * ativos
	 * 
	 * @author rodrigo.guilherme
	 * @date 2015-08-20
	 */
	public Collection<LocalExecucaoServicosDto> getAtivos() throws PersistenceException, Exception;
}
