|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (IntegrationFactory $integrationFactory, IntegrationOauthService $oauthService) | |
| create (array $integrationData) | |
| update (array $integrationData) | |
| delete ($integrationId) | |
| get ($integrationId) | |
| findByName ($name) | |
| findByConsumerId ($consumerId) | |
| findActiveIntegrationByConsumerId ($consumerId) | |
| getSelectedResources ($integrationId) | |
Protected Member Functions | |
| _loadIntegrationById ($integrationId) | |
| _addOauthConsumerData (IntegrationModel $integration) | |
| _addOauthTokenData (IntegrationModel $integration) | |
Protected Attributes | |
| $_integrationFactory | |
| $_oauthService | |
Integration Service.
This service is used to interact with integrations.
Definition at line 19 of file IntegrationService.php.
| __construct | ( | IntegrationFactory | $integrationFactory, |
| IntegrationOauthService | $oauthService | ||
| ) |
Construct and initialize Integration Factory
| IntegrationFactory | $integrationFactory | |
| IntegrationOauthService | $oauthService |
Definition at line 37 of file IntegrationService.php.
|
protected |
Add oAuth consumer key and secret.
| IntegrationModel | $integration |
Definition at line 159 of file IntegrationService.php.
|
protected |
Add oAuth token and token secret.
| IntegrationModel | $integration |
Definition at line 174 of file IntegrationService.php.
|
protected |
Load integration by id.
| int | $integrationId |
Definition at line 144 of file IntegrationService.php.
| create | ( | array | $integrationData | ) |
{Create a new Integration
| array | $integrationData |
Implements IntegrationServiceInterface.
Definition at line 46 of file IntegrationService.php.
| delete | ( | $integrationId | ) |
{Delete an Integration.
| int | $integrationId |
Implements IntegrationServiceInterface.
Definition at line 76 of file IntegrationService.php.
| findActiveIntegrationByConsumerId | ( | $consumerId | ) |
{Get the details of an active Integration by consumer_id.
| int | $consumerId |
Implements IntegrationServiceInterface.
Definition at line 116 of file IntegrationService.php.
| findByConsumerId | ( | $consumerId | ) |
{Get the details of an Integration by consumer_id.
| int | $consumerId |
Implements IntegrationServiceInterface.
Definition at line 107 of file IntegrationService.php.
| findByName | ( | $name | ) |
{Find Integration by name.
| string | $integrationName |
Implements IntegrationServiceInterface.
Definition at line 98 of file IntegrationService.php.
| get | ( | $integrationId | ) |
{Get the details of a specific Integration.
| int | $integrationId |
Implements IntegrationServiceInterface.
Definition at line 87 of file IntegrationService.php.
| getSelectedResources | ( | $integrationId | ) |
{Return an array of selected resources for an integration.
| int | $integrationId |
Implements IntegrationServiceInterface.
Definition at line 188 of file IntegrationService.php.
| update | ( | array | $integrationData | ) |
{Update an Integration.
| array | $integrationData |
Implements IntegrationServiceInterface.
Definition at line 61 of file IntegrationService.php.
|
protected |
Definition at line 24 of file IntegrationService.php.
|
protected |
Definition at line 29 of file IntegrationService.php.