package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBEquipmentHistory.
 */
public interface TBEquipmentHistoryService {

    /**
     * Save a tBEquipmentHistory.
     *
     * @param tBEquipmentHistoryDTO the entity to save
     * @return the persisted entity
     */
    TBEquipmentHistoryDTO save(TBEquipmentHistoryDTO tBEquipmentHistoryDTO);

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


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

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

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