<?php
/**
 * @author  Magediary
 * @package Magediary_ProductQuestion
 */

namespace Magediary\ProductQuestion\Api;

use Magediary\ProductQuestion\Api\Data\ActivityLogInterface;
use Magediary\ProductQuestion\Api\Data\ActivityLogSearchResultsInterface;

interface ActivityLogRepositoryInterface
{
    /**
     * Save ActivityLog
     *
     * @param ActivityLogInterface $activityLog
     * @return ActivityLogInterface
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function save(
        ActivityLogInterface $activityLog
    );

    /**
     * Retrieve ActivityLog
     *
     * @param string $activitylogId
     * @return ActivityLogInterface
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function getById($activitylogId);

    /**
     * Retrieve ActivityLog matching the specified criteria.
     *
     * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
     * @return ActivityLogSearchResultsInterface
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function getList(
        \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
    );

    /**
     * Delete ActivityLog
     *
     * @param ActivityLogInterface $activityLog
     * @return bool true on success
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function delete(
        ActivityLogInterface $activityLog
    );

    /**
     * Delete ActivityLog by ID
     *
     * @param string $activitylogId
     * @return bool true on success
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function deleteById($activitylogId);
}
