-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
984c11a
commit 91e6330
Showing
38 changed files
with
933 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Copyright © OpenGento, All rights reserved. | ||
* See LICENSE bundled with this library for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Opengento\Gdpr\Api\Data; | ||
|
||
use Magento\Framework\Api\SearchResultsInterface; | ||
|
||
/** | ||
* Interface ExportEntitySearchResultsInterface | ||
* @api | ||
*/ | ||
interface ExportEntitySearchResultsInterface extends SearchResultsInterface | ||
{ | ||
/** | ||
* Retrieve the export entities list | ||
* | ||
* @return \Opengento\Gdpr\Api\Data\ExportEntityInterface[] | ||
*/ | ||
public function getItems(): array; | ||
|
||
/** | ||
* Set the export entities list | ||
* | ||
* @param \Opengento\Gdpr\Api\Data\ExportEntityInterface[] $items | ||
* @return \Opengento\Gdpr\Api\Data\ExportEntitySearchResultsInterface | ||
*/ | ||
public function setItems(array $items): ExportEntitySearchResultsInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
/** | ||
* Copyright © OpenGento, All rights reserved. | ||
* See LICENSE bundled with this library for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Opengento\Gdpr\Api; | ||
|
||
use Magento\Framework\Api\SearchCriteriaInterface; | ||
use Magento\Framework\Api\SearchResultsInterface; | ||
use Opengento\Gdpr\Api\Data\ExportEntityInterface; | ||
|
||
/** | ||
* Interface ExportEntityRepositoryInterface | ||
* @api | ||
*/ | ||
interface ExportEntityRepositoryInterface | ||
{ | ||
/** | ||
* Save export entity | ||
* | ||
* @param \Opengento\Gdpr\Api\Data\ExportEntityInterface $entity | ||
* @return \Opengento\Gdpr\Api\Data\ExportEntityInterface | ||
* @throws \Magento\Framework\Exception\CouldNotSaveException | ||
*/ | ||
public function save(ExportEntityInterface $entity): ExportEntityInterface; | ||
|
||
/** | ||
* Retrieve export entity by ID | ||
* | ||
* @param int $entityId | ||
* @return \Opengento\Gdpr\Api\Data\ExportEntityInterface | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function getById(int $entityId): ExportEntityInterface; | ||
|
||
/** | ||
* Retrieve export by entity | ||
* | ||
* @param int $entityId | ||
* @param string $entityType | ||
* @return \Opengento\Gdpr\Api\Data\ExportEntityInterface | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function getByEntity(int $entityId, string $entityType): ExportEntityInterface; | ||
|
||
/** | ||
* Retrieve export entity list by search filter criteria | ||
* | ||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria | ||
* @return \Opengento\Gdpr\Api\Data\ExportEntitySearchResultsInterface | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
public function getList(SearchCriteriaInterface $searchCriteria): SearchResultsInterface; | ||
|
||
/** | ||
* Delete export entity | ||
* | ||
* @param \Opengento\Gdpr\Api\Data\ExportEntityInterface $entity | ||
* @return bool true on success | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
* @throws \Magento\Framework\Exception\CouldNotDeleteException | ||
*/ | ||
public function delete(ExportEntityInterface $entity): bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.