package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBBlockDetailsReport.
 */
public interface TBBlockDetailsReportService {

    /**
     * Save a tBBlockDetailsReport.
     *
     * @param tBBlockDetailsReportDTO the entity to save
     * @return the persisted entity
     */
    TBBlockDetailsReportDTO save(TBBlockDetailsReportDTO tBBlockDetailsReportDTO);

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


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

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

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