package vn.azteam.tpf.service;

import vn.azteam.tpf.service.dto.TBGuidelineDetailsDTO;

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

import java.util.List;
import java.util.Optional;

/**
 * Service Interface for managing TBGuidelineDetails.
 */
public interface TBGuidelineDetailsService {

    /**
     * Save a tBGuidelineDetails.
     *
     * @param tBGuidelineDetailsDTO the entity to save
     * @return the persisted entity
     */
    TBGuidelineDetailsDTO save(TBGuidelineDetailsDTO tBGuidelineDetailsDTO);

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

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

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

    /**
     * Search for the tBGuidelineDetails corresponding to the query.
     *
     * @param query    the query of the search
     * @param pageable the pagination information
     * @return the list of entities
     */
    Page<TBGuidelineDetailsDTO> search(String query, Pageable pageable);
}
