Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (AclBuilder $aclBuilder, RoleFactory $roleFactory, RoleCollectionFactory $roleCollectionFactory, RulesFactory $rulesFactory, RulesCollectionFactory $rulesCollectionFactory, Logger $logger, RootAclResource $rootAclResource) | |
grantPermissions ($integrationId, $resources) | |
grantAllPermissions ($integrationId) | |
removePermissions ($integrationId) | |
Protected Member Functions | |
_createRole ($integrationId) | |
_deleteRole ($integrationId) | |
Protected Attributes | |
$_aclBuilder | |
$_roleFactory | |
$_roleCollectionFactory | |
$_rulesFactory | |
$_rulesCollectionFactory | |
$_logger | |
$_rootAclResource | |
Additional Inherited Members | |
![]() | |
const | PERMISSION_ANONYMOUS = 'anonymous' |
const | PERMISSION_SELF = 'self' |
Service for integration permissions management.
@SuppressWarnings(PHPMD.LongVariable) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 27 of file AuthorizationService.php.
__construct | ( | AclBuilder | $aclBuilder, |
RoleFactory | $roleFactory, | ||
RoleCollectionFactory | $roleCollectionFactory, | ||
RulesFactory | $rulesFactory, | ||
RulesCollectionFactory | $rulesCollectionFactory, | ||
Logger | $logger, | ||
RootAclResource | $rootAclResource | ||
) |
Initialize dependencies.
AclBuilder | $aclBuilder | |
RoleFactory | $roleFactory | |
RoleCollectionFactory | $roleCollectionFactory | |
RulesFactory | $rulesFactory | |
RulesCollectionFactory | $rulesCollectionFactory | |
Logger | $logger | |
RootAclResource | $rootAclResource |
Definition at line 75 of file AuthorizationService.php.
|
protected |
Create new ACL role.
int | $integrationId |
Definition at line 144 of file AuthorizationService.php.
|
protected |
Remove integration role. This deletes the cascading permissions
int | $integrationId |
Definition at line 163 of file AuthorizationService.php.
grantAllPermissions | ( | $integrationId | ) |
{Grant permissions to the user to access all resources available in the system.
int | $integrationId |
LocalizedException |
Implements AuthorizationServiceInterface.
Definition at line 115 of file AuthorizationService.php.
grantPermissions | ( | $integrationId, | |
$resources | |||
) |
{#- Grant permissions to user to access the specified resources.
int | $integrationId | |
string[] | $resources List of resources which should be available to the specified user. |
LocalizedException |
Implements AuthorizationServiceInterface.
Definition at line 96 of file AuthorizationService.php.
removePermissions | ( | $integrationId | ) |
{Remove role and associated permissions for the specified integration.
int | $integrationId |
LocalizedException |
Implements AuthorizationServiceInterface.
Definition at line 123 of file AuthorizationService.php.
|
protected |
Definition at line 32 of file AuthorizationService.php.
|
protected |
Definition at line 57 of file AuthorizationService.php.
|
protected |
Definition at line 42 of file AuthorizationService.php.
|
protected |
Definition at line 37 of file AuthorizationService.php.
|
protected |
Definition at line 62 of file AuthorizationService.php.
|
protected |
Definition at line 52 of file AuthorizationService.php.
|
protected |
Definition at line 47 of file AuthorizationService.php.