package com.ejie.ab79.service.actuaciones;


import com.ejie.ab79.model.actuaciones.DesResAct;
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;

/**
 * DesResActService  
 *  
 */

public interface DesResActService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 */	
	void removeMultiple(DesResAct filterDesResAct, TableRequestDto tableRequestDto,  Boolean startsWith);
   
    
	/**
	 * Filter method in the DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<DesResAct>
	 */	
	TableResponseDto<DesResAct> filter(DesResAct filterDesResAct, TableRequestDto tableRequestDto,  Boolean startsWith);
    
    /**
	 * Searches rows in the DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param searchDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return List<TableRowDto<DesResAct>>
	 */	
    List<TableRowDto<DesResAct>> search(DesResAct filterDesResAct, DesResAct searchDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /**
	 * Reorder the selection made in DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return Object
	 */	
    Object reorderSelection(DesResAct filterDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);
    
    /*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */
	 
	/**
	 * Finder method in the hierarchical the DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith Boolean
	 * @return TableResponseDto<JerarquiaDto<DesResAct>>
	 */	
	TableResponseDto<JerarquiaDto<DesResAct>> jerarquia(DesResAct filterDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);
	
	/**
	 * Finder method for siblings rows in the hierarchical the DesResAct table.
	 *
	 * @param filterDesResAct DesResAct
	 * @param tableRequestDto TableRequestDto
	 * @return TableResponseDto<JerarquiaDto<DesResAct>>
	 */	
	TableResponseDto<JerarquiaDto<DesResAct>> jerarquiaChildren(DesResAct filterDesResAct, TableRequestDto tableRequestDto);
    
    /**
    * Exporta Datos al clipBoard
    *
    */
    List<DesResAct> getMultiple(DesResAct filterDesResAct, TableRequestDto tableRequestDto, Boolean startsWith);
    
}


