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

Inheritance: WhiteCore.Framework.Services.ConnectorBase, IUserAccountService, IService
Afficher le fichier Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Свойство Type Description
m_AuthenticationService IAuthenticationService
m_Database IUserAccountData
m_cache GenericAccountCache
m_defaultDataPath string
m_newUserStipend int
m_profileConnector IProfileConnector
m_userNameSeed string[]

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected AddCommands ( ) : void
Résultat void

CacheAccount() public méthode

public CacheAccount ( UserAccount account ) : void
account WhiteCore.Framework.Services.UserAccount
Résultat void

Configure() public méthode

public Configure ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

CreateSaltedUser() public méthode

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.
Résultat string

CreateUser() public méthode

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
Résultat string

CreateUser() public méthode

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

CreateUser() public méthode

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

DeleteUser() public méthode

public DeleteUser ( UUID userID, string name, string password, bool archiveInformation, bool wipeFromDatabase ) : void
userID UUID
name string
password string
archiveInformation bool
wipeFromDatabase bool
Résultat void

FinishedStartup() public méthode

public FinishedStartup ( ) : void
Résultat void

GetAvatarArchivesFiles() public méthode

public GetAvatarArchivesFiles ( ) : List
Résultat List

HandleAddUser() protected méthode

protected HandleAddUser ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

HandleCreateUser() protected méthode

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
Résultat void

HandleDeleteUser() protected méthode

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
Résultat void

HandleDisableUser() protected méthode

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

HandleEnableUser() protected méthode

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

HandleLoadUsers() protected méthode

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

HandleRenameUser() protected méthode

protected HandleRenameUser ( IScene scene, string cmdparams ) : void
scene IScene
cmdparams string
Résultat void

HandleResetPartner() protected méthode

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

HandleResetUserPassword() protected méthode

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,
Résultat void

HandleSaveUsers() protected méthode

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

HandleSetPartner() protected méthode

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

HandleSetTitle() protected méthode

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

HandleSetUserEmail() protected méthode

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

HandleSetUserLevel() protected méthode

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

HandleSetUserType() protected méthode

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

HandleShowAccount() protected méthode

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

HandleShowUserAccount() protected méthode

protected HandleShowUserAccount ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

HandleTestUsers() protected méthode

protected HandleTestUsers ( IScene scene, string cmdParams ) : void
scene IScene
cmdParams string
Résultat void

Initialize() public méthode

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

Start() public méthode

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

StoreUserAccount() public méthode

public StoreUserAccount ( UserAccount data ) : bool
data WhiteCore.Framework.Services.UserAccount
Résultat bool

UserGodLevel() public méthode

Users 'god' level.
public UserGodLevel ( int level ) : string
level int Level.
Résultat string

Property Details

m_AuthenticationService protected_oe property

protected IAuthenticationService m_AuthenticationService
Résultat IAuthenticationService

m_Database protected_oe property

protected IUserAccountData m_Database
Résultat IUserAccountData

m_cache protected_oe property

protected GenericAccountCache m_cache
Résultat GenericAccountCache

m_defaultDataPath protected_oe property

protected string m_defaultDataPath
Résultat string

m_newUserStipend protected_oe property

protected int m_newUserStipend
Résultat int

m_profileConnector protected_oe property

protected IProfileConnector m_profileConnector
Résultat IProfileConnector

m_userNameSeed protected_oe property

protected string[] m_userNameSeed
Résultat string[]