C# Class WaveBox.Core.Model.Repository.UserRepository

Inheritance: IUserRepository
Mostra file Open project: einsteinx2/WaveBox

Private Properties

Property Type Description
ReloadUsers bool

Public Methods

Method Description
AllUsers ( ) : IList
CreateTestUser ( long durationSeconds ) : User
CreateUser ( string userName, string password, Role role, long deleteTime ) : User
DeleteFromUserCache ( User user ) : bool
ExpiredUsers ( ) : IList
UpdateUserCache ( User user ) : bool
UserForId ( int userId ) : User
UserForName ( string userName ) : User
UserRepository ( IDatabase database, IItemRepository itemRepository ) : System

Private Methods

Method Description
ReloadUsers ( ) : bool

Method Details

AllUsers() public method

public AllUsers ( ) : IList
return IList

CreateTestUser() public method

public CreateTestUser ( long durationSeconds ) : User
durationSeconds long
return User

CreateUser() public method

public CreateUser ( string userName, string password, Role role, long deleteTime ) : User
userName string
password string
role Role
deleteTime long
return User

DeleteFromUserCache() public method

public DeleteFromUserCache ( User user ) : bool
user User
return bool

ExpiredUsers() public method

public ExpiredUsers ( ) : IList
return IList

UpdateUserCache() public method

public UpdateUserCache ( User user ) : bool
user User
return bool

UserForId() public method

public UserForId ( int userId ) : User
userId int
return User

UserForName() public method

public UserForName ( string userName ) : User
userName string
return User

UserRepository() public method

public UserRepository ( IDatabase database, IItemRepository itemRepository ) : System
database IDatabase
itemRepository IItemRepository
return System