C# Class PRTools.Data.AccountRepository

Inheritance: IAccountRepository
Datei anzeigen Open project: AcklenAvenue/PRTools

Public Methods

Method Description
AccountRepository ( IMappingEngine mappingEngine ) : System
ChangePassword ( string username, string currentPassword, string newPassword ) : void
Create ( CreateAccountRequest createAccountRequest, string encryptedPassword ) : void
Delete ( DeleteAccountRequest deleteAccountRequest ) : void
Get ( int accountId ) : Domain.Account
Get ( string username ) : Domain.Account
Get ( string username, string password ) : Domain.Account
GetAuthorizedActionsForUser ( string username ) : IEnumerable
GetUsers ( ) : IEnumerable
QuickSearch ( string searchString ) : SearchAccountsResponse
Search ( SearchAccountsRequest searchAccountsRequest ) : SearchAccountsResponse
Update ( UpdateAccountRequest updateAccountRequest ) : void
UserNameExists ( string username ) : bool

Method Details

AccountRepository() public method

public AccountRepository ( IMappingEngine mappingEngine ) : System
mappingEngine IMappingEngine
return System

ChangePassword() public method

public ChangePassword ( string username, string currentPassword, string newPassword ) : void
username string
currentPassword string
newPassword string
return void

Create() public method

public Create ( CreateAccountRequest createAccountRequest, string encryptedPassword ) : void
createAccountRequest PRTools.Domain.Commands.CreateAccountRequest
encryptedPassword string
return void

Delete() public method

public Delete ( DeleteAccountRequest deleteAccountRequest ) : void
deleteAccountRequest PRTools.Domain.Commands.DeleteAccountRequest
return void

Get() public method

public Get ( int accountId ) : Domain.Account
accountId int
return Domain.Account

Get() public method

public Get ( string username ) : Domain.Account
username string
return Domain.Account

Get() public method

public Get ( string username, string password ) : Domain.Account
username string
password string
return Domain.Account

GetAuthorizedActionsForUser() public method

public GetAuthorizedActionsForUser ( string username ) : IEnumerable
username string
return IEnumerable

GetUsers() public method

public GetUsers ( ) : IEnumerable
return IEnumerable

QuickSearch() public method

public QuickSearch ( string searchString ) : SearchAccountsResponse
searchString string
return PRTools.Domain.Commands.SearchAccountsResponse

Search() public method

public Search ( SearchAccountsRequest searchAccountsRequest ) : SearchAccountsResponse
searchAccountsRequest PRTools.Domain.Commands.SearchAccountsRequest
return PRTools.Domain.Commands.SearchAccountsResponse

Update() public method

public Update ( UpdateAccountRequest updateAccountRequest ) : void
updateAccountRequest PRTools.Domain.Commands.UpdateAccountRequest
return void

UserNameExists() public method

public UserNameExists ( string username ) : bool
username string
return bool