C# Class WhiteCore.Services.SQLServices.UserAccountService.UserAccountService

Inheritance: WhiteCore.Framework.Services.ConnectorBase, IUserAccountService, IService
显示文件 Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Property Type Description
m_AuthenticationService IAuthenticationService
m_Database IUserAccountData
m_cache GenericAccountCache
m_defaultDataPath string
m_newUserStipend int
m_profileConnector IProfileConnector
m_userNameSeed string[]

Public Methods

Method Description
CacheAccount ( UserAccount account ) : void
Configure ( IConfigSource config, IRegistryCore registry ) : void
CreateSaltedUser ( UserAccount newAccount, string passHash, string passSalt ) : string

Creates the user with salt.

CreateUser ( UUID userID, UUID scopeID, string name, string md5password, string email ) : string

Create a user

CreateUser ( UserAccount newAccount, string md5password ) : string

Create a user

CreateUser ( string name, string md5password, string email ) : void

Creates a basic user.

DeleteUser ( UUID userID, string name, string password, bool archiveInformation, bool wipeFromDatabase ) : void
FinishedStartup ( ) : void
GetAvatarArchivesFiles ( ) : List
Initialize ( IConfigSource config, IRegistryCore registry ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void
StoreUserAccount ( UserAccount data ) : bool
UserGodLevel ( int level ) : string

Users 'god' level.

Protected Methods

Method Description
AddCommands ( ) : void
HandleAddUser ( IScene scene, string cmd ) : void
HandleCreateUser ( IScene scene, string cmd ) : void

Handle the create (add) user command from the console.

HandleDeleteUser ( IScene scene, string cmd ) : void

Handles the delete user command. Delete or disable a user account

HandleDisableUser ( IScene scene, string cmd ) : void

Handles the disable user command.

HandleEnableUser ( IScene scene, string cmd ) : void

Handles the enable user command.

HandleLoadUsers ( IScene scene, string cmdParams ) : void

Handles the load users command.

HandleRenameUser ( IScene scene, string cmdparams ) : void
HandleResetPartner ( IScene scene, string cmdParams ) : void

Handles the reset partner command.

HandleResetUserPassword ( IScene scene, string cmd ) : void

Handles the reset user password command.

HandleSaveUsers ( IScene scene, string cmd ) : void

Handles the save users command.

HandleSetPartner ( IScene scene, string cmdParams ) : void

Handles the set partner command.

HandleSetTitle ( IScene scene, string cmdparams ) : void

Handles the user set title command.

HandleSetUserEmail ( IScene scene, string cmd ) : void

Handles the set user email command.

HandleSetUserLevel ( IScene scene, string cmdparams ) : void

Handles the set user level command.

HandleSetUserType ( IScene scene, string cmdparams ) : void

Handles the set user level command.

HandleShowAccount ( IScene scene, string cmdparams ) : void

Handles the show account command.

HandleShowUserAccount ( IScene scene, string cmd ) : void
HandleTestUsers ( IScene scene, string cmdParams ) : void

Private Methods

Method Description
CreateNewUser ( UserAccount newAccount, string passHash, string passSalt ) : string
GetUserAccount ( List scopeIDs, UUID principalID ) : UserAccount
GetUserAccount ( List scopeIDs, string name ) : UserAccount
GetUserAccount ( List scopeIDs, string firstName, string lastName ) : UserAccount
GetUserAccounts ( List scopeIDs, int level, int flags ) : List
GetUserAccounts ( List scopeIDs, string query ) : List
GetUserAccounts ( List scopeIDs, string query, uint start, uint count ) : List
NumberOfUserAccounts ( List scopeIDs, string query ) : uint
SetHashedPassword ( UUID userId, string passHash ) : bool
SetSaltedPassword ( UUID userId, string passHash, string passSalt ) : bool
UserFlagToType ( int userFlags ) : string
UserTypeToUserFlags ( string userType ) : int

Method Details

AddCommands() protected method

protected AddCommands ( ) : void
return void

CacheAccount() public method

public CacheAccount ( UserAccount account ) : void
account WhiteCore.Framework.Services.UserAccount
return void

Configure() public method

public Configure ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

CreateSaltedUser() public method

Creates the user with salt.
public CreateSaltedUser ( UserAccount newAccount, string passHash, string passSalt ) : string
newAccount WhiteCore.Framework.Services.UserAccount New account.
passHash string Pass hash.
passSalt string Pass salt.
return string

CreateUser() public method

Create a user
public CreateUser ( UUID userID, UUID scopeID, string name, string md5password, string email ) : string
userID UUID
scopeID UUID
name string
md5password string
email string
return string

CreateUser() public method

Create a user
public CreateUser ( UserAccount newAccount, string md5password ) : string
newAccount WhiteCore.Framework.Services.UserAccount
md5password string
return string

CreateUser() public method

Creates a basic user.
public CreateUser ( string name, string md5password, string email ) : void
name string Name.
md5password string Md5password.
email string Email.
return void

DeleteUser() public method

public DeleteUser ( UUID userID, string name, string password, bool archiveInformation, bool wipeFromDatabase ) : void
userID UUID
name string
password string
archiveInformation bool
wipeFromDatabase bool
return void

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

GetAvatarArchivesFiles() public method

public GetAvatarArchivesFiles ( ) : List
return List

HandleAddUser() protected method

protected HandleAddUser ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleCreateUser() protected method

Handle the create (add) user command from the console.
protected HandleCreateUser ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string string array with parameters: firstname, lastname, password, email
return void

HandleDeleteUser() protected method

Handles the delete user command. Delete or disable a user account
protected HandleDeleteUser ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string string array with parameters: firstname, lastname, password
return void

HandleDisableUser() protected method

Handles the disable user command.
protected HandleDisableUser ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string string array with parameters: firstname, lastname.
return void

HandleEnableUser() protected method

Handles the enable user command.
protected HandleEnableUser ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string string array with parameters: firstname, lastname.
return void

HandleLoadUsers() protected method

Handles the load users command.
protected HandleLoadUsers ( IScene scene, string cmdParams ) : void
scene IScene Scene.
cmdParams string Cmdparams.
return void

HandleRenameUser() protected method

protected HandleRenameUser ( IScene scene, string cmdparams ) : void
scene IScene
cmdparams string
return void

HandleResetPartner() protected method

Handles the reset partner command.
protected HandleResetPartner ( IScene scene, string cmdParams ) : void
scene IScene Scene.
cmdParams string Cmd parameters.
return void

HandleResetUserPassword() protected method

Handles the reset user password command.
protected HandleResetUserPassword ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string string array with parameters: firstname, lastname, newpassword,
return void

HandleSaveUsers() protected method

Handles the save users command.
protected HandleSaveUsers ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string Cmdparams.
return void

HandleSetPartner() protected method

Handles the set partner command.
protected HandleSetPartner ( IScene scene, string cmdParams ) : void
scene IScene Scene.
cmdParams string Cmd parameters.
return void

HandleSetTitle() protected method

Handles the user set title command.
protected HandleSetTitle ( IScene scene, string cmdparams ) : void
scene IScene Scene.
cmdparams string Cmdparams.
return void

HandleSetUserEmail() protected method

Handles the set user email command.
protected HandleSetUserEmail ( IScene scene, string cmd ) : void
scene IScene Scene.
cmd string Cmd.
return void

HandleSetUserLevel() protected method

Handles the set user level command.
protected HandleSetUserLevel ( IScene scene, string cmdparams ) : void
scene IScene Scene.
cmdparams string Cmdparams.
return void

HandleSetUserType() protected method

Handles the set user level command.
protected HandleSetUserType ( IScene scene, string cmdparams ) : void
scene IScene Scene.
cmdparams string Cmdparams.
return void

HandleShowAccount() protected method

Handles the show account command.
protected HandleShowAccount ( IScene scene, string cmdparams ) : void
scene IScene Scene.
cmdparams string Cmdparams.
return void

HandleShowUserAccount() protected method

protected HandleShowUserAccount ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleTestUsers() protected method

protected HandleTestUsers ( IScene scene, string cmdParams ) : void
scene IScene
cmdParams string
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

StoreUserAccount() public method

public StoreUserAccount ( UserAccount data ) : bool
data WhiteCore.Framework.Services.UserAccount
return bool

UserGodLevel() public method

Users 'god' level.
public UserGodLevel ( int level ) : string
level int Level.
return string

Property Details

m_AuthenticationService protected_oe property

protected IAuthenticationService m_AuthenticationService
return IAuthenticationService

m_Database protected_oe property

protected IUserAccountData m_Database
return IUserAccountData

m_cache protected_oe property

protected GenericAccountCache m_cache
return GenericAccountCache

m_defaultDataPath protected_oe property

protected string m_defaultDataPath
return string

m_newUserStipend protected_oe property

protected int m_newUserStipend
return int

m_profileConnector protected_oe property

protected IProfileConnector m_profileConnector
return IProfileConnector

m_userNameSeed protected_oe property

protected string[] m_userNameSeed
return string[]