package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBControlType.
 */
public interface TBControlTypeService {

    /**
     * Save a tBControlType.
     *
     * @param tBControlTypeDTO the entity to save
     * @return the persisted entity
     */
    TBControlTypeDTO save(TBControlTypeDTO tBControlTypeDTO);

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


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

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

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