package com.bares.service;

import com.bares.service.dto.BarDTO;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Optional;

/**
 * Service Interface for managing Bar.
 */
public interface BarService {

    /**
     * Save a bar.
     *
     * @param barDTO the entity to save
     * @return the persisted entity
     */
    BarDTO save(BarDTO barDTO);

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


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

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