DefaultPrincipalFactory Class Reference

Detailed Description

Default implementation of PrincipalFactory.

Retrieves users and roles from the storage.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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
$userTypeEntity type name of User instances
$roleTypeEntity 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.