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

/**
 * MaestroActoresService generated by UDA, 12-may-2023 11:16:38.
 * 
 * @author UDA
 */

public interface MaestroActoresService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

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

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

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

	public List<MaestroActores> findNoSSB(MaestroActores maestroActores, TableRequestDto tableRequestDto);

	public List<MaestroActores> findNoAuto(MaestroActores maestroactores, TableRequestDto tableRequestDto);

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

}
