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

import it.sw.pa.comune.artegna.service.dto.DisponibilitaDTO;
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.Disponibilita}.
 */
public interface DisponibilitaService {
    /**
     * Save a disponibilita.
     *
     * @param disponibilitaDTO the entity to save.
     * @return the persisted entity.
     */
    DisponibilitaDTO save(DisponibilitaDTO disponibilitaDTO);

    /**
     * Updates a disponibilita.
     *
     * @param disponibilitaDTO the entity to update.
     * @return the persisted entity.
     */
    DisponibilitaDTO update(DisponibilitaDTO disponibilitaDTO);

    /**
     * Partially updates a disponibilita.
     *
     * @param disponibilitaDTO the entity to update partially.
     * @return the persisted entity.
     */
    Optional<DisponibilitaDTO> partialUpdate(DisponibilitaDTO disponibilitaDTO);

    /**
     * Get all the disponibilitas.
     *
     * @param pageable the pagination information.
     * @return the list of entities.
     */
    Page<DisponibilitaDTO> findAll(Pageable pageable);

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

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

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