package com.ejie.aa21b.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.ejie.aa21b.model.Aa21b25s01;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JQGridResponseDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Aa21b25s01Service  
 * 
 *  
 */

public interface Aa21b25s01Service {

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

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

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

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

	/**
	 * Finds a list of rows in the Aa21b25s01 table.
	 * 
	 * @param aa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<Aa21b25s01>
	 */
	List<Aa21b25s01> findAll(Aa21b25s01 aa21b25s01,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Aa21b25s01 table using like.
	 * 
	 * @param aa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<Aa21b25s01>
	 */
	List<Aa21b25s01> findAllLike(Aa21b25s01 aa21b25s01,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Aa21b25s01 table.
	 * 
	 * @param filterAa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Aa21b25s01 filterAa21b25s01,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Aa21b25s01 table.
	 * 
	 * @param filterAa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Aa21b25s01>
	 */
	JQGridResponseDto<Aa21b25s01> filter(Aa21b25s01 filterAa21b25s01,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the Aa21b25s01 table.
	 * 
	 * @param filterAa21b25s01
	 *            Aa21b25s01
	 * @param searchAa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Aa21b25s01>>
	 */
	List<TableRowDto<Aa21b25s01>> search(Aa21b25s01 filterAa21b25s01,
			Aa21b25s01 searchAa21b25s01, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Reorder the selection made in Aa21b25s01 table.
	 * 
	 * @param filterAa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(Aa21b25s01 filterAa21b25s01,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Aa21b25s01 table.
	 * 
	 * @param filterAa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<JerarquiaDto<Aa21b25s01>>
	 */
	JQGridResponseDto<JerarquiaDto<Aa21b25s01>> jerarquia(
			Aa21b25s01 filterAa21b25s01, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Aa21b25s01 table.
	 * 
	 * @param filterAa21b25s01
	 *            Aa21b25s01
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return JQGridResponseDto<JerarquiaDto<Aa21b25s01>>
	 */
	JQGridResponseDto<JerarquiaDto<Aa21b25s01>> jerarquiaChildren(
			Aa21b25s01 filterAa21b25s01, JQGridRequestDto jqGridRequestDto);

	/**
	 * Guarda el fichero en el PID y actualiza la entidad
	 * 
	 * @param entidad
	 * @param docu05
	 * @return
	 */
	public Aa21b25s01 guardarFicheroActualizarEntidad(Aa21b25s01 entidad,
			MultipartFile docu05);

	/**
	 * Actualiza el fichero en el PID y actualiza la entidad
	 * 
	 * @param entidad
	 * @param docu05
	 * @return
	 */
	public Aa21b25s01 actualizarFicheroActualizarEntidad(Aa21b25s01 entidad,
			MultipartFile docu05);

	/**
	 * Borra el fichero en el PID y actualiza la entidad
	 * 
	 * @param entidad
	 * @param docu05
	 * @return
	 */
	public Aa21b25s01 borraFicheroActualizarEntidad(Aa21b25s01 entidad);

	/**
	 * 
	 * @param aa21b25s01
	 *            Aa21b25s01
	 * @return Aa21b25s01
	 */
	Aa21b25s01 findDocExpediente(Aa21b25s01 aa21b25s01);

	/**
	 * 
	 * @param aa21b25s01aux
	 *            Aa21b25s01
	 * @return Aa21b25s01
	 * @throws Exception
	 *             Exception
	 */
	Aa21b25s01 addDocumentoExpediente(Aa21b25s01 aa21b25s01aux)
			throws Exception;
}
