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

/**
 * DocumentosInformeService generated by UDA, 19-abr-2023 16:38:34.
 * @author UDA
 */

public interface DocumentosInformeService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


