package com.ejie.ad74a.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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ejie.ad74a.model.InformeSocial;
import com.ejie.ad74a.model.Informes;

/**
 * InformeSocialService generated by UDA, 10-feb-2023 12:13:20.
 * 
 * @author UDA
 */

public interface InformeSocialService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the InformeSocial table.
	 *
	 * @param tableRequestDto TableRequestDto
	 */
	void removeMultiple(TableRequestDto tableRequestDto);

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

	/**
	 * Exporta Datos en su formato
	 *
	 */
	void generateReport(InformeSocial filterInformeSocial, String[] columns, String[] columnsName, String fileName,
			String sheetTitle, TableRequestDto tableRequestDto, HttpServletRequest request,
			HttpServletResponse response);

	public Informes addInformeInformeSocial(Informes informes);
}
