package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBGuideline.
 */
public interface TBGuidelineService {

    /**
     * Save a tBGuideline.
     *
     * @param tBGuidelineDTO the entity to save
     * @return the persisted entity
     */
    TBGuidelineDTO save(TBGuidelineDTO tBGuidelineDTO);

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


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

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

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