|
AuthenticationService
v0.2.0
|
A repository that provides access to persisted users and offers ways to create, update and delete them. More...
Public Member Functions | |
| Page< User > | Find (long applicationId=-1, int pageNumber=0, int maxResults=int.MaxValue) |
| Search for a certain number of users. More... | |
| User | GetById (long id) |
| Fetches an user by its name. More... | |
| User | GetByName (string username) |
| Fetches an user by its unique identifier. More... | |
| long | Save (User user, string password) |
| Persists an user with a password. More... | |
| long | Save (User user, string password, string salt) |
| Persists an user with a password. More... | |
| long | Save (User user) |
| Persists an user. More... | |
| bool | Delete (long id) |
| Deletes a persisted user. More... | |
| void | Delete (User user) |
| Deletes a persisted user. More... | |
| User | Create () |
| Creates a new instance of an user. More... | |
A repository that provides access to persisted users and offers ways to create, update and delete them.
| User Joutsen.Authentication.UserRepository.Create | ( | ) |
Creates a new instance of an user.
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| bool Joutsen.Authentication.UserRepository.Delete | ( | long | id | ) |
Deletes a persisted user.
| id | the unique identifier of the user |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| void Joutsen.Authentication.UserRepository.Delete | ( | User | user | ) |
Deletes a persisted user.
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| Page<User> Joutsen.Authentication.UserRepository.Find | ( | long | applicationId = -1, |
| int | pageNumber = 0, |
||
| int | maxResults = int.MaxValue |
||
| ) |
Search for a certain number of users.
| pageNumber | identifies the page of matching users to return |
| maxResults | the maximum number of users to return. This also defines the page size. |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| User Joutsen.Authentication.UserRepository.GetById | ( | long | id | ) |
Fetches an user by its name.
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| User Joutsen.Authentication.UserRepository.GetByName | ( | string | username | ) |
Fetches an user by its unique identifier.
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| long Joutsen.Authentication.UserRepository.Save | ( | User | user, |
| string | password | ||
| ) |
Persists an user with a password.
| user | the user to persist |
| password | the user's password |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| long Joutsen.Authentication.UserRepository.Save | ( | User | user, |
| string | password, | ||
| string | salt | ||
| ) |
Persists an user with a password.
| user | the user to persist |
| password | the user's password as a hash |
| salt | the salt that is added to the users password hash |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
| long Joutsen.Authentication.UserRepository.Save | ( | User | user | ) |
Persists an user.
| user | the user to persist |
Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.
1.8.13