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

/**
 * ProtocolosService generated by UDA, 28-jun-2023 17:11:00.
 * @author UDA
 */

public interface ProtocolosService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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


