package com.ejie.ab79.service.actuaciones;

import java.util.List;

import com.ejie.ab79.model.actuaciones.RelActDoc;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableResponseDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * RelActDocService  
 * 
 *  
 */

public interface RelActDocService {

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

	RelActDoc updateEnviadoProSan(RelActDoc relActDoc);

	/**
	 * 
	 *
	 * @param idInspeccion
	 *            Integer
	 * 
	 * @return Long
	 */
	Long documentosSinEnviar(Integer idInspeccion);

	/**
	 * Finds a list of rows in the RelActDoc table.
	 *
	 * @param relActDoc
	 *            RelActDoc
	 * 
	 * @return List<RelActDoc>
	 */
	List<RelActDoc> findAllPropuestaSancion(RelActDoc relActDoc);

	void removeByIdDocumentoSubido(RelActDoc relActDoc);
}
