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.Perfiles;

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

public interface PerfilesService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

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

	Perfiles updateBloquePerfilesPisosTut(Perfiles perfiles);

}
