package com.ejie.ab04b.service;

import java.util.List;

import com.ejie.ab04b.model.ComunicacionPrl;
import com.ejie.ab04b.model.DocumentoOS3;
import com.ejie.ab04b.model.OS3;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JQGridResponseDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * OS3Service generated by UDA, 28-feb-2017 11:23:12.
 * 
 * @author UDA
 */

public interface OS3Service {

	/**
	 * Inserts a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 Ab0461s00
	 * 
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @return the os3
	 */
	OS3 add(OS3 ab0461s00);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 Ab0461s00
	 * 
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @return the os3
	 */
	OS3 update(OS3 ab0461s00);

	/**
	 * Finds a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 Ab0461s00
	 * 
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @return the os3
	 */
	OS3 find(OS3 ab0461s00);

	/**
	 * Deletes a single row in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00
	 * 
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 */
	void remove(OS3 ab0461s00);

	/**
	 * Finds a list of rows in the Ab0461s00 table.
	 * 
	 * ab0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto List<Ab0461s00>
	 * 
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @return the list
	 */
	List<OS3> findAll(OS3 ab0461s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab0461s00 table using like.
	 * 
	 * ab0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto startsWith Boolean
	 * List<Ab0461s00>
	 * 
	 * @param ab0461s00
	 *            the ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 * @return the list
	 */
	List<OS3> findAllLike(OS3 ab0461s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Finds a list of rows in the Ab0429s00 table.
	 * 
	 * ab0429s00 Ab0429s00
	 * 
	 * List<DocumentoOS3>
	 * 
	 * @param ab0429s00
	 *            the ab 0429 s 00
	 * @return the list
	 */
	public List<DocumentoOS3> findAllDocumentosOS3TipoTemp(
			DocumentoOS3 ab0429s00);

	/**
	 * 
	 * Finds a list of rows in the Ab0429s00 table.
	 * 
	 * ab0429s00 Ab0429s00
	 * 
	 * List<DocumentoOS3>
	 * 
	 * @param ab0429s00
	 *            the ab 0429 s 00
	 * @return the list
	 */
	public List<DocumentoOS3> buscarDocumentosOS3Temp(DocumentoOS3 ab0429s00);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto startsWith
	 * Boolean
	 * 
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 */
	void removeMultiple(OS3 filterAb0461s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Filter method in the Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto startsWith
	 * Boolean JQGridResponseDto<Ab0461s00>
	 * 
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 * @return the JQ grid response dto
	 */
	JQGridResponseDto<OS3> filter(OS3 filterAb0461s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Searches rows in the Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 searchAb0461s00 Ab0461s00 jqGridRequestDto
	 * JQGridRequestDto startsWith Boolean List<TableRowDto<Ab0461s00>>
	 * 
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param searchAb0461s00
	 *            the search ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 * @return the list
	 */
	List<TableRowDto<OS3>> search(OS3 filterAb0461s00, OS3 searchAb0461s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto startsWith
	 * Boolean Object
	 * 
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 * @return the object
	 */
	Object reorderSelection(OS3 filterAb0461s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto startsWith
	 * Boolean JQGridResponseDto<JerarquiaDto<Ab0461s00>>
	 * 
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @param startsWith
	 *            the starts with
	 * @return the JQ grid response dto
	 */
	JQGridResponseDto<JerarquiaDto<OS3>> jerarquia(OS3 filterAb0461s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Ab0461s00 table.
	 * 
	 * filterAb0461s00 Ab0461s00 jqGridRequestDto JQGridRequestDto
	 * JQGridResponseDto<JerarquiaDto<Ab0461s00>>
	 * 
	 * @param filterAb0461s00
	 *            the filter ab 0461 s 00
	 * @param jqGridRequestDto
	 *            the jq grid request dto
	 * @return the JQ grid response dto
	 */
	JQGridResponseDto<JerarquiaDto<OS3>> jerarquiaChildren(OS3 filterAb0461s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * comunicacionPrl ComunicacionPrl platea the platea OS3
	 * 
	 * @param comunicacionPrl
	 *            the comunicacion prl
	 * @param platea
	 *            the platea
	 * @return the os3
	 */
	OS3 modificarDatosTabNotificacionOS3(ComunicacionPrl comunicacionPrl,
			boolean platea);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * os3 OS3 OS3
	 * 
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosTabEmpresaOS3(OS3 os3);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * os3 OS3 OS3
	 * 
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosTabPrevencion(OS3 os3);

	/**
	 * Updates a single row in the Ab0461s00 table.
	 * 
	 * os3 OS3 OS3
	 * 
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosTabEstadoOS3(OS3 os3);

	/**
	 * Find by folder id.
	 * 
	 * folderId the folder id the os3
	 * 
	 * @param folderId
	 *            the folder id
	 * @return the os3
	 */
	OS3 findByFolderId(String folderId);

	/**
	 * Find by folder id 2.
	 * 
	 * folderId the folder id the os3
	 * 
	 * @param folderId
	 *            the folder id
	 * @return the os3
	 */
	OS3 findByFolderId2(String folderId);

	/**
	 * Alta comunicacion OS 3 presencial.
	 * 
	 * the os3
	 * 
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 altaComunicacionOS3Presencial(OS3 os3);

	/**
	 * Update filled.
	 * 
	 * os3 the os 3 the os3
	 * 
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 updateFilled(OS3 os3);

	/**
	 * Find datos registro.
	 * 
	 * os3 the os 3 the os3
	 * 
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 findDatosRegistro(OS3 os3);

	/**
	 * Modificar datos registro.
	 * 
	 * os3 the os 3 the os3
	 * 
	 * @param os3
	 *            the os 3
	 * @return the os3
	 */
	OS3 modificarDatosRegistro(OS3 os3);

	/**
	 * Update usuarios tramitacion.
	 * 
	 * os3 the os 3
	 * 
	 * @param os3
	 *            the os 3
	 */
	void updateUsuariosTramitacion(OS3 os3);

	/**
	 * Update estado.
	 * 
	 * os3 the os 3
	 * 
	 * @param os3
	 *            the os 3
	 */
	void updateEstado(OS3 os3);

	void updateBatchSub(OS3 os3);

	void updateFecSub(OS3 os3);
}
