package vn.azteam.tpf.service;

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

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

import java.util.List;
import java.util.Optional;

/**
 * Service Interface for managing TBObjectUpdate.
 */
public interface TBObjectUpdateService {

    /**
     * Save a tBObjectUpdate.
     *
     * @param tBObjectUpdateDTO the entity to save
     * @return the persisted entity
     */
    TBObjectUpdateDTO save(TBObjectUpdateDTO tBObjectUpdateDTO);

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


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

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

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

    List<TBObjectUpdateDTO> findByTBActivityId(Long tbActivityId, Pageable pageable);

    List<TBObjectUpdateDTO> findByInListTBActivityId(List<Long> tbActivityIds, Pageable pageable);

}
