C# Class Universe.Services.SQLServices.UserAccountService.UserAccountService

Inheritance: Universe.Framework.Services.ConnectorBase, IUserAccountService, IService
Mostrar archivo Open project: Virtual-Universe/Virtual-Universe

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
CreateUser ( UUID userID, UUID scopeID, string name, string password, string email ) : string

Create a user

CreateUser ( UserAccount newAccount, string password ) : string

Create a user

CreateUser ( string name, string password, string email ) : void
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.

HandleLoadSaltedUsers ( IScene scene, string cmdParams ) : void

Handles the load salted users 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.

HandleSaveSaltedUsers ( IScene scene, string cmdParams ) : void

Handles the save salted users command.

HandleSaveUsers ( IScene scene, string cmdParams ) : 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
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
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 Universe.Framework.Services.UserAccount
return void

Configure() public method

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

CreateUser() public method

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

CreateUser() public method

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

CreateUser() public method

public CreateUser ( string name, string password, string email ) : void
name string
password string
email string
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

HandleLoadSaltedUsers() protected method

Handles the load salted users command.
protected HandleLoadSaltedUsers ( IScene scene, string cmdParams ) : void
scene IScene Scene.
cmdParams string Cmdparams.
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

HandleSaveSaltedUsers() protected method

Handles the save salted users command.
protected HandleSaveSaltedUsers ( IScene scene, string cmdParams ) : void
scene IScene Scene.
cmdParams string Cmdparams.
return void

HandleSaveUsers() protected method

Handles the save users command.
protected HandleSaveUsers ( IScene scene, string cmdParams ) : void
scene IScene Scene.
cmdParams 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 Universe.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[]