package com.ejie.ab39a.service;

import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JQGridResponseDto;
import java.util.List;

import com.ejie.ab39a.model.AccionesPg;
import com.ejie.ab39a.model.PlanesGestion;

/**
 * PlanesGestion.
 * 
 *  
 */

public interface PlanesGestionService {

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

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

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

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

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

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

	/*
	 * OPERACIONES RUP_TABLE
	 */

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

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

	/**
	 * filter copiar
	 * 
	 * @param filterPlanesGestion
	 *            PlanesGestion filterPlanesGestion
	 * @param jqGridRequestDto
	 *            JQGridRequestDto jqGridRequestDto
	 * @param startsWith
	 *            Boolean startsWith
	 * @return JQGridResponseDto<PlanesGestion> JQGridResponseDto
	 */
	JQGridResponseDto<PlanesGestion> filterCopiar(PlanesGestion filterPlanesGestion, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

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

	/**
	 * crear copia plam
	 * 
	 * @param planesGestion
	 *            PlanesGestion planesGestion
	 * @return PlanesGestion planesGestion
	 */
	PlanesGestion crearCopiaPlanGestion(PlanesGestion planesGestion);

	/**
	 * Actualiza la fecha de actualizacion del plan de gestión
	 *
	 * @param planesGestion
	 *            PlanesGestion planesGestion
	 */
	void updateActualizar(PlanesGestion planesgestion);

	/**
	 * Deletes a single row in the PlanesGestion table.
	 *
	 * @param planesGestion
	 *            PlanesGestion planesGestion
	 */
	void updateActualizar(AccionesPg accionesPg);
}
