eZPublishCommunityProject  2013.9
eZ\Publish\Core\MVC\Symfony\Security\User\Provider Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Security\User\Provider:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\Security\User\Provider:

Public Member Functions

 __construct (\Closure $lazyRepository)
 
 loadUserByAPIUser (APIUser $apiUser)
 Loads a regular user object, usable by Symfony Security component, from a user object returned by Public API. More...
 
 loadUserByUsername ($user)
 Loads the user for the given user ID. More...
 
 refreshUser (UserInterface $user)
 Refreshes the user for the account interface. More...
 
 supportsClass ($class)
 Whether this provider supports the given user class. More...
 

Protected Member Functions

 getRepository ()
 
 getUserService ()
 

Protected Attributes

 $userService
 

Private Attributes

 $lazyRepository
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\Security\User\Provider::__construct ( \Closure  $lazyRepository)

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\Security\User\Provider::getRepository ( )
protected
eZ\Publish\Core\MVC\Symfony\Security\User\Provider::getUserService ( )
protected
eZ\Publish\Core\MVC\Symfony\Security\User\Provider::loadUserByAPIUser ( APIUser  $apiUser)

Loads a regular user object, usable by Symfony Security component, from a user object returned by Public API.

Parameters
\eZ\Publish\API\Repository\Values\User\User$apiUser
Returns

Implements eZ\Publish\Core\MVC\Symfony\Security\User\APIUserProviderInterface.

eZ\Publish\Core\MVC\Symfony\Security\User\Provider::loadUserByUsername (   $user)

Loads the user for the given user ID.

$user can be either the user ID or an instance of (anonymous user we try to check access via SecurityContext::isGranted())

Parameters
string | \eZ\Publish\Core\MVC\Symfony\Security\User$userEither the user ID to load an instance of User object. A value of -1 represents an anonymous user.
Returns
Exceptions
\Symfony\Component\Security\Core\Exception\UsernameNotFoundExceptionif the user is not found
eZ\Publish\Core\MVC\Symfony\Security\User\Provider::refreshUser ( UserInterface  $user)

Refreshes the user for the account interface.

It is up to the implementation to decide if the user data should be totally reloaded (e.g. from the database), or if the UserInterface object can just be merged into some internal array of users / identity map.

Parameters
UserInterface$user
Exceptions
\Symfony\Component\Security\Core\Exception\UsernameNotFoundException
Returns
UserInterface
eZ\Publish\Core\MVC\Symfony\Security\User\Provider::supportsClass (   $class)

Whether this provider supports the given user class.

Parameters
string$class
Returns
Boolean

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Security\User\Provider::$lazyRepository
private
eZ\Publish\Core\MVC\Symfony\Security\User\Provider::$userService
protected

The documentation for this class was generated from the following file: