package it.sw.pa.comune.artegna.service;

import it.sw.pa.comune.artegna.service.dto.ModelloLiberatoriaDTO;
import java.util.List;
import java.util.Optional;

/**
 * Service Interface for managing {@link it.sw.pa.comune.artegna.domain.ModelloLiberatoria}.
 */
public interface ModelloLiberatoriaService {
    /**
     * Save a modelloLiberatoria.
     *
     * @param modelloLiberatoriaDTO the entity to save.
     * @return the persisted entity.
     */
    ModelloLiberatoriaDTO save(ModelloLiberatoriaDTO modelloLiberatoriaDTO);

    /**
     * Updates a modelloLiberatoria.
     *
     * @param modelloLiberatoriaDTO the entity to update.
     * @return the persisted entity.
     */
    ModelloLiberatoriaDTO update(ModelloLiberatoriaDTO modelloLiberatoriaDTO);

    /**
     * Partially updates a modelloLiberatoria.
     *
     * @param modelloLiberatoriaDTO the entity to update partially.
     * @return the persisted entity.
     */
    Optional<ModelloLiberatoriaDTO> partialUpdate(ModelloLiberatoriaDTO modelloLiberatoriaDTO);

    /**
     * Get all the modelloLiberatorias.
     *
     * @return the list of entities.
     */
    List<ModelloLiberatoriaDTO> findAll();

    /**
     * Get the "id" modelloLiberatoria.
     *
     * @param id the id of the entity.
     * @return the entity.
     */
    Optional<ModelloLiberatoriaDTO> findOne(Long id);

    /**
     * Delete the "id" modelloLiberatoria.
     *
     * @param id the id of the entity.
     */
    void delete(Long id);
}
