package com.ejie.ab79.service;

import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.ejie.ab79.model.Inspectores;

/**
 * InspectoresService  
 * 
 *  
 */

public interface InspectoresService {

	/**
	 * Inserts a single row in the Inspectores table.
	 *
	 * @param inspectores
	 *            Inspectores
	 * @return Inspectores
	 */
	Inspectores add(Inspectores inspectores);

	/**
	 * Updates a single row in the Inspectores table.
	 *
	 * @param inspectores
	 *            Inspectores
	 * @return Inspectores
	 */
	Inspectores update(Inspectores inspectores);

	/**
	 * Finds a single row in the Inspectores table.
	 *
	 * @param inspectores
	 *            Inspectores
	 * @return Inspectores
	 */
	Inspectores find(Inspectores inspectores);

	/**
	 * Deletes a single row in the Inspectores table.
	 *
	 * @param inspectores
	 *            Inspectores
	 */
	void remove(Inspectores inspectores);

	/**
	 * Finds a list of rows in the Inspectores table.
	 *
	 * @param inspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return List<Inspectores>
	 */
	List<Inspectores> findAll(Inspectores inspectores, TableRequestDto tableRequestDto);

	/**
	 * Finds rows in the Inspectores table using like.
	 *
	 * @param inspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<Inspectores>
	 */
	List<Inspectores> findAllLike(Inspectores inspectores, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Inspectores table.
	 *
	 * @param filterInspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Inspectores filterInspectores, TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Inspectores table.
	 *
	 * @param filterInspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return TableResponseDto<Inspectores>
	 */
	TableResponseDto<Inspectores> filter(Inspectores filterInspectores, TableRequestDto tableRequestDto,
			Boolean startsWith);

	/**
	 * Searches rows in the Inspectores table.
	 *
	 * @param filterInspectores
	 *            Inspectores
	 * @param searchInspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Inspectores>>
	 */
	List<TableRowDto<Inspectores>> search(Inspectores filterInspectores, Inspectores searchInspectores,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Inspectores table.
	 *
	 * @param filterInspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(Inspectores filterInspectores, TableRequestDto tableRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Inspectores table.
	 *
	 * @param filterInspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return TableResponseDto<JerarquiaDto<Inspectores>>
	 */
	TableResponseDto<JerarquiaDto<Inspectores>> jerarquia(Inspectores filterInspectores,
			TableRequestDto tableRequestDto, Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Inspectores
	 * table.
	 *
	 * @param filterInspectores
	 *            Inspectores
	 * @param tableRequestDto
	 *            TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<Inspectores>>
	 */
	TableResponseDto<JerarquiaDto<Inspectores>> jerarquiaChildren(Inspectores filterInspectores,
			TableRequestDto tableRequestDto);

	/**
	 * Exporta Datos al clipBoard
	 *
	 */
	List<Inspectores> getMultiple(Inspectores filterInspectores, TableRequestDto tableRequestDto, Boolean startsWith);

	Inspectores findByUsuarioXLNETS(Inspectores inspectores);

	List<Inspectores> findTodosInspectores(Inspectores filterInspectores, TableRequestDto tableRequestDto);

	Inspectores findByIdInspector(Inspectores inspectores);

	List<Inspectores> findAllREST(Inspectores filterInspectores);

	void getExcel(List<Inspectores> listaInspectores, HttpServletResponse response);

}
