C# Class AppActs.Client.Service.UserService

Inheritance: IUserService
显示文件 Open project: Appacts/mobile-analytics-server

Public Methods

Method Description
GeneratePassword ( ) : string
GetAll ( ) : IEnumerable
GetUser ( System.Guid accountUserGuid ) : User
GetUser ( ObjectId accountUserId ) : User
GetUser ( string accountUserEmail ) : User
GetUser ( string email, string password ) : User
GetUserByForgotPassword ( System.Guid guidForgotPassword ) : User
IsEmailAvailable ( string email ) : bool
Save ( User accountUser ) : void
Update ( User accountUser ) : void
UpdatePassword ( ObjectId userId, string password ) : void
UserService ( IUserRepository accountUserRepository, AppActs settings ) : System

Method Details

GeneratePassword() public method

public GeneratePassword ( ) : string
return string

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

GetUser() public method

public GetUser ( System.Guid accountUserGuid ) : User
accountUserGuid System.Guid
return AppActs.Client.Model.User

GetUser() public method

public GetUser ( ObjectId accountUserId ) : User
accountUserId ObjectId
return AppActs.Client.Model.User

GetUser() public method

public GetUser ( string accountUserEmail ) : User
accountUserEmail string
return AppActs.Client.Model.User

GetUser() public method

public GetUser ( string email, string password ) : User
email string
password string
return AppActs.Client.Model.User

GetUserByForgotPassword() public method

public GetUserByForgotPassword ( System.Guid guidForgotPassword ) : User
guidForgotPassword System.Guid
return AppActs.Client.Model.User

IsEmailAvailable() public method

public IsEmailAvailable ( string email ) : bool
email string
return bool

Save() public method

public Save ( User accountUser ) : void
accountUser AppActs.Client.Model.User
return void

Update() public method

public Update ( User accountUser ) : void
accountUser AppActs.Client.Model.User
return void

UpdatePassword() public method

public UpdatePassword ( ObjectId userId, string password ) : void
userId ObjectId
password string
return void

UserService() public method

public UserService ( IUserRepository accountUserRepository, AppActs settings ) : System
accountUserRepository IUserRepository
settings AppActs
return System