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

/**
 * MaestroTareasService generated by UDA, 22-mar-2023 17:10:15.
 * @author UDA
 */

public interface MaestroTareasService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the MaestroTareas table.
	 *
	 * @param tableRequestDto TableRequestDto
	 */	
	void removeMultiple(TableRequestDto tableRequestDto);
   
    
	/**
	 * Filter method in the MaestroTareas table.
	 *
	 * @param filterMaestroTareas MaestroTareas
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<MaestroTareas>
	 */	
	TableResponseDto<MaestroTareas> filter(MaestroTareas filterMaestroTareas, TableRequestDto tableRequestDto,  Boolean startsWith);
    
    /**
	 * Searches rows in the MaestroTareas table.
	 *
	 * @param filterMaestroTareas MaestroTareas
	 * @param searchMaestroTareas MaestroTareas
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<MaestroTareas>>
	 */	
    List<TableRowDto<MaestroTareas>> search(MaestroTareas filterMaestroTareas, MaestroTareas searchMaestroTareas, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /**
	 * Reorder the selection made in MaestroTareas table.
	 *
	 * @param filterMaestroTareas MaestroTareas
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return Object
	 */	
    Object reorderSelection(MaestroTareas filterMaestroTareas, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
	 
	/**
	 * Finder method in the hierarchical the MaestroTareas table.
	 *
	 * @param filterMaestroTareas MaestroTareas
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<JerarquiaDto<MaestroTareas>>
	 */	
	TableResponseDto<JerarquiaDto<MaestroTareas>> jerarquia(MaestroTareas filterMaestroTareas, TableRequestDto tableRequestDto, Boolean startsWith);
	
	/**
	 * Finder method for siblings rows in the hierarchical the MaestroTareas table.
	 *
	 * @param filterMaestroTareas MaestroTareas
	 * @param tableRequestDto TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<MaestroTareas>>
	 */	
	TableResponseDto<JerarquiaDto<MaestroTareas>> jerarquiaChildren(MaestroTareas filterMaestroTareas, TableRequestDto tableRequestDto);
    
    /**
    * Exporta Datos al clipBoard
    *
    */
    List<MaestroTareas> getMultiple(MaestroTareas filterMaestroTareas, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /**
	 * Exporta Datos en su formato
	 *
	 */
	void generateReport(MaestroTareas filterMaestroTareas, String[] columns,String[] columnsName, String fileName, String sheetTitle,
			TableRequestDto tableRequestDto, HttpServletRequest request, HttpServletResponse response);
    
}


