| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 | 
							- <?php
 - 
 - /*
 -  * This file is part of the FOSUserBundle package.
 -  *
 -  * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
 -  *
 -  * For the full copyright and license information, please view the LICENSE
 -  * file that was distributed with this source code.
 -  */
 - 
 - namespace FOS\UserBundle\Model;
 - 
 - /**
 -  * Interface to be implemented by user managers. This adds an additional level
 -  * of abstraction between your application, and the actual repository.
 -  *
 -  * All changes to users should happen through this interface.
 -  *
 -  * The class also contains ACL annotations which will only work if you have the
 -  * SecurityExtraBundle installed, otherwise they will simply be ignored.
 -  *
 -  * @author Gordon Franke <info@nevalon.de>
 -  * @author Thibault Duplessis <thibault.duplessis@gmail.com>
 -  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 -  */
 - interface UserManagerInterface
 - {
 -     /**
 -      * Creates an empty user instance.
 -      *
 -      * @return UserInterface
 -      */
 -     public function createUser();
 - 
 -     /**
 -      * Deletes a user.
 -      *
 -      * @param UserInterface $user
 -      *
 -      * @return void
 -      */
 -     public function deleteUser(UserInterface $user);
 - 
 -     /**
 -      * Finds one user by the given criteria.
 -      *
 -      * @param array $criteria
 -      *
 -      * @return UserInterface
 -      */
 -     public function findUserBy(array $criteria);
 - 
 -     /**
 -      * Find a user by its username.
 -      *
 -      * @param string $username
 -      *
 -      * @return UserInterface or null if user does not exist
 -      */
 -     public function findUserByUsername($username);
 - 
 -     /**
 -      * Finds a user by its email.
 -      *
 -      * @param string $email
 -      *
 -      * @return UserInterface or null if user does not exist
 -      */
 -     public function findUserByEmail($email);
 - 
 -     /**
 -      * Finds a user by its username or email.
 -      *
 -      * @param string $usernameOrEmail
 -      *
 -      * @return UserInterface or null if user does not exist
 -      */
 -     public function findUserByUsernameOrEmail($usernameOrEmail);
 - 
 -     /**
 -      * Finds a user by its confirmationToken.
 -      *
 -      * @param string $token
 -      *
 -      * @return UserInterface or null if user does not exist
 -      */
 -     public function findUserByConfirmationToken($token);
 - 
 -     /**
 -      * Returns a collection with all user instances.
 -      *
 -      * @return \Traversable
 -      */
 -     public function findUsers();
 - 
 -     /**
 -      * Returns the user's fully qualified class name.
 -      *
 -      * @return string
 -      */
 -     public function getClass();
 - 
 -     /**
 -      * Reloads a user.
 -      *
 -      * @param UserInterface $user
 -      *
 -      * @return void
 -      */
 -     public function reloadUser(UserInterface $user);
 - 
 -     /**
 -      * Updates a user.
 -      *
 -      * @param UserInterface $user
 -      *
 -      * @return void
 -      */
 -     public function updateUser(UserInterface $user);
 - 
 -     /**
 -      * Updates the canonical username and email fields for a user.
 -      *
 -      * @param UserInterface $user
 -      *
 -      * @return void
 -      */
 -     public function updateCanonicalFields(UserInterface $user);
 - 
 -     /**
 -      * Updates a user password if a plain password is set.
 -      *
 -      * @param UserInterface $user
 -      *
 -      * @return void
 -      */
 -     public function updatePassword(UserInterface $user);
 - }
 
 
  |