프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$contactManager | |||
$em | Doctrine\Common\Persistence\ObjectManager | ||
$userRepository | Sulu\Component\Security\Authentication\UserRepositoryInterface |
메소드 | 설명 | |
---|---|---|
__construct ( Doctrine\Common\Persistence\ObjectManager $em, Symfony\Component\Security\Core\Encoder\EncoderFactory $encoderFactory = null, |
||
delete ( ) : Closure | Deletes a user with the given id. | |
enableUser ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface | ||
findAll ( ) : array | Return all users. | |
findUserByContact ( integer $contactId ) : Sulu\Component\Security\Authentication\UserInterface | Finds a user for a given contact id. | |
findUsersByAccount ( integer $accountId, $sortBy = [] ) : array | Finds all users for the given account. | |
getFullNameByUserId ( integer $id ) : string | returns fullName for given id. | |
getUserById ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface | Returns user for given id. | |
getUsernameByUserId ( integer $id ) : string | Returns username for given id. | |
isEmailUnique ( string $email ) : boolean | Checks if an email-adress is unique Null and empty will always return false. | |
isUsernameUnique ( string $username ) : boolean | Checks if a username is unique Null and empty will always return false. | |
isValidPassword ( string $password ) : boolean | Checks if the given password is a valid one. | |
processUserRoles ( Sulu\Component\Security\Authentication\UserInterface $user, array $userRoles ) : boolean | Process all user roles from request. | |
save ( array $data, string $locale, null | integer $id = null, boolean $patch = false, boolean $flush = true ) : null | Sulu\Component\Security\Authentication\UserInterface | Creates a new user with the given data. |
메소드 | 설명 | |
---|---|---|
processUserGroups ( Sulu\Component\Security\Authentication\UserInterface $user, $userGroups ) : boolean | Process all user groups from request. |
메소드 | 설명 | |
---|---|---|
addUserGroup ( Sulu\Component\Security\Authentication\UserInterface $user, $userGroupData ) : boolean | Adds a new UserGroup to the given user. | |
addUserRole ( Sulu\Component\Security\Authentication\UserInterface $user, $userRoleData ) : boolean | Adds a new UserRole to the given user. | |
encodePassword ( Sulu\Component\Security\Authentication\UserInterface $user, string $password, string $salt ) : string | Encodes the given password, for the given passwort, with he given salt and returns the result. | |
generateSalt ( ) : string | Generates a random salt for the password. | |
getContact ( integer $id ) : |
Returns the contact with the given id. | |
getProperty ( array $data, string $key, string $default = null ) : string | null | Return property for key or given default value. | |
processEmail ( Sulu\Component\Security\Authentication\UserInterface $user, string $email, null | array $contact = null ) | Processes the email and adds it to the user. | |
resetIndexOfSubentites ( mixed $entities ) : mixed | this is just a hack to avoid relations that start with index != 0 otherwise deserialization process will parse relations as object instead of an array reindex entities. | |
updateUserGroup ( |
Updates an existing UserGroup with the given data. | |
updateUserRole ( Sulu\Bundle\SecurityBundle\Entity\UserRole $userRole, $userRoleData ) : boolean | Updates an existing UserRole with the given data. |
public __construct ( Doctrine\Common\Persistence\ObjectManager $em, Symfony\Component\Security\Core\Encoder\EncoderFactory $encoderFactory = null, |
||
$em | Doctrine\Common\Persistence\ObjectManager | |
$encoderFactory | Symfony\Component\Security\Core\Encoder\EncoderFactory | |
$roleRepository | ||
$groupRepository | ||
$contactManager | ||
$saltGenerator | ||
$userRepository | Sulu\Component\Security\Authentication\UserRepositoryInterface |
public enableUser ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface | ||
$id | integer | |
리턴 | Sulu\Component\Security\Authentication\UserInterface |
public findUserByContact ( integer $contactId ) : Sulu\Component\Security\Authentication\UserInterface | ||
$contactId | integer | |
리턴 | Sulu\Component\Security\Authentication\UserInterface |
public findUsersByAccount ( integer $accountId, $sortBy = [] ) : array | ||
$accountId | integer | |
리턴 | array |
public getFullNameByUserId ( integer $id ) : string | ||
$id | integer | userId |
리턴 | string |
public getUserById ( integer $id ) : Sulu\Component\Security\Authentication\UserInterface | ||
$id | integer | userId |
리턴 | Sulu\Component\Security\Authentication\UserInterface |
public getUsernameByUserId ( integer $id ) : string | ||
$id | integer | userId |
리턴 | string |
public isEmailUnique ( string $email ) : boolean | ||
string | ||
리턴 | boolean |
public isUsernameUnique ( string $username ) : boolean | ||
$username | string | |
리턴 | boolean |
public isValidPassword ( string $password ) : boolean | ||
$password | string | The password to check |
리턴 | boolean | True if the password is valid, otherwise false |
protected processUserGroups ( Sulu\Component\Security\Authentication\UserInterface $user, $userGroups ) : boolean | ||
$user | Sulu\Component\Security\Authentication\UserInterface | |
$userGroups | ||
리턴 | boolean | True if the processing was successful, otherwise false |
public processUserRoles ( Sulu\Component\Security\Authentication\UserInterface $user, array $userRoles ) : boolean | ||
$user | Sulu\Component\Security\Authentication\UserInterface | |
$userRoles | array | |
리턴 | boolean | True if the processing was successful, otherwise false |
public save ( array $data, string $locale, null | integer $id = null, boolean $patch = false, boolean $flush = true ) : null | Sulu\Component\Security\Authentication\UserInterface | ||
$data | array | |
$locale | string | |
$id | null | integer | |
$patch | boolean | |
$flush | boolean | |
리턴 | null | Sulu\Component\Security\Authentication\UserInterface |
protected ContactManager,Sulu\Bundle\ContactBundle\Contact $contactManager | ||
리턴 |
protected ObjectManager,Doctrine\Common\Persistence $em | ||
리턴 | Doctrine\Common\Persistence\ObjectManager |