PHP 클래스 Sulu\Bundle\SecurityBundle\Entity\UserRepository

상속: extends Sulu\Component\Persistence\Repository\ORM\EntityRepository, implements Sulu\Component\Security\Authentication\UserRepositoryInterface, use trait Sulu\Component\Persistence\Repository\ORM\OrderByTrait
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
findAllUsersByRoleId ( integer $roleId ) : array Finds all users for the role with the given id.
findUserByContact ( $id ) : array Searches for a user with a specific contact id.
findUserByEmail ( string $email ) : Symfony\Component\Security\Core\User\UserInterface Finds a user for a given email.
findUserById ( $id )
findUserByIdentifier ( $identifier )
findUserBySystem ( string $system ) : User[] Returns all users with the given system including their contacts.
findUserByToken ( string $token ) : Symfony\Component\Security\Core\User\UserInterface Finds a user for a given password-reset-token.
findUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\UserInterface Finds a user for the given username.
findUserWithSecurityById ( $id )
findUsersByAccount ( $accountId, $sortBy = [] )
getUsernameByApiKey ( string $apiKey ) : string returns username for given apiKey.

비공개 메소드들

메소드 설명
getUserWithPermissionsQuery ( ) : Doctrine\ORM\QueryBuilder Returns the query for the user with the joins for retrieving the permissions. Especially useful for security related queries.

메소드 상세

findAllUsersByRoleId() 공개 메소드

Finds all users for the role with the given id.
public findAllUsersByRoleId ( integer $roleId ) : array
$roleId integer
리턴 array

findUserByContact() 공개 메소드

Searches for a user with a specific contact id.
public findUserByContact ( $id ) : array
$id
리턴 array

findUserByEmail() 공개 메소드

Finds a user for a given email.
public findUserByEmail ( string $email ) : Symfony\Component\Security\Core\User\UserInterface
$email string The email-address
리턴 Symfony\Component\Security\Core\User\UserInterface

findUserById() 공개 메소드

public findUserById ( $id )

findUserByIdentifier() 공개 메소드

public findUserByIdentifier ( $identifier )

findUserBySystem() 공개 메소드

Returns all users with the given system including their contacts.
public findUserBySystem ( string $system ) : User[]
$system string
리턴 User[]

findUserByToken() 공개 메소드

Finds a user for a given password-reset-token.
public findUserByToken ( string $token ) : Symfony\Component\Security\Core\User\UserInterface
$token string the reset-token
리턴 Symfony\Component\Security\Core\User\UserInterface

findUserByUsername() 공개 메소드

This method throws UsernameNotFoundException if the user is not found.
public findUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\UserInterface
$username string The username
리턴 Symfony\Component\Security\Core\User\UserInterface

findUserWithSecurityById() 공개 메소드

public findUserWithSecurityById ( $id )

findUsersByAccount() 공개 메소드

public findUsersByAccount ( $accountId, $sortBy = [] )

getUsernameByApiKey() 공개 메소드

returns username for given apiKey.
public getUsernameByApiKey ( string $apiKey ) : string
$apiKey string userId
리턴 string