package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBDashboardType.
 */
public interface TBDashboardTypeService {

    /**
     * Save a tBDashboardType.
     *
     * @param tBDashboardTypeDTO the entity to save
     * @return the persisted entity
     */
    TBDashboardTypeDTO save(TBDashboardTypeDTO tBDashboardTypeDTO);

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


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

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

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