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

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

public interface TareasTramiteService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


