package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBNotification.
 */
public interface TBNotificationService {

    /**
     * Save a tBNotification.
     *
     * @param tBNotificationDTO the entity to save
     * @return the persisted entity
     */
    TBNotificationDTO save(TBNotificationDTO tBNotificationDTO);

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


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

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

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