package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBActivityExtendType.
 */
public interface TBActivityExtendTypeService {

    /**
     * Save a tBActivityExtendType.
     *
     * @param tBActivityExtendTypeDTO the entity to save
     * @return the persisted entity
     */
    TBActivityExtendTypeDTO save(TBActivityExtendTypeDTO tBActivityExtendTypeDTO);

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


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

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

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

}
