DefaultPrincipalFactory Class Reference
Detailed Description
Default implementation of PrincipalFactory.
Retrieves users and roles from the storage.
Definition at line 28 of file DefaultPrincipalFactory.php.
Inheritance diagram for DefaultPrincipalFactory:Public Member Functions | |
| __construct (PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, $userType, $roleType) | |
| getUser ($login, $useTempPermission=false) | |
| getUserRoles (User $user, $useTempPermission=false) | |
| getRole ($name, $useTempPermission=false) | |
Constructor & Destructor Documentation
◆ __construct()
| __construct | ( | PersistenceFacade | $persistenceFacade, |
| PermissionManager | $permissionManager, | ||
| $userType, | |||
| $roleType | |||
| ) |
Constructor.
- Parameters
-
$persistenceFacade $permissionManager $userType Entity type name of User instances $roleType Entity type name of Role instances
Definition at line 45 of file DefaultPrincipalFactory.php.
Member Function Documentation
◆ getUser()
| getUser | ( | $login, | |
$useTempPermission = false |
|||
| ) |
- See also
- PrincipalFactory::getUser()
Implements PrincipalFactory.
Definition at line 56 of file DefaultPrincipalFactory.php.
◆ getUserRoles()
| getUserRoles | ( | User | $user, |
$useTempPermission = false |
|||
| ) |
- See also
- PrincipalFactory::getUserRoles()
Implements PrincipalFactory.
Definition at line 75 of file DefaultPrincipalFactory.php.
◆ getRole()
| getRole | ( | $name, | |
$useTempPermission = false |
|||
| ) |
- See also
- PrincipalFactory::getRole()
Implements PrincipalFactory.
Definition at line 105 of file DefaultPrincipalFactory.php.