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

import it.sw.pa.comune.artegna.service.dto.LiberatoriaDTO;
import java.util.List;
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing {@link it.sw.pa.comune.artegna.domain.Liberatoria}.
 */
public interface LiberatoriaService {
    /**
     * Save a liberatoria.
     *
     * @param liberatoriaDTO the entity to save.
     * @return the persisted entity.
     */
    LiberatoriaDTO save(LiberatoriaDTO liberatoriaDTO);

    /**
     * Updates a liberatoria.
     *
     * @param liberatoriaDTO the entity to update.
     * @return the persisted entity.
     */
    LiberatoriaDTO update(LiberatoriaDTO liberatoriaDTO);

    /**
     * Partially updates a liberatoria.
     *
     * @param liberatoriaDTO the entity to update partially.
     * @return the persisted entity.
     */
    Optional<LiberatoriaDTO> partialUpdate(LiberatoriaDTO liberatoriaDTO);

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

    /**
     * Get all the liberatorias with eager load of many-to-many relationships.
     *
     * @param pageable the pagination information.
     * @return the list of entities.
     */
    Page<LiberatoriaDTO> findAllWithEagerRelationships(Pageable pageable);

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

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