C# Class Deveel.Data.Security.UserManager

Inheritance: IUserManager
显示文件 Open project: deveel/deveeldb

Public Properties

Property Type Description
PasswordTableName ObjectName
RoleTableName ObjectName
UserRoleTableName ObjectName
UserTableName ObjectName

Public Methods

Method Description
AddUserToRole ( string userName, string roleName, bool asAdmin ) : void
AlterUser ( UserInfo userInfo ) : void
CreateRole ( string roleName ) : void
CreateUser ( UserInfo userInfo ) : void
Dispose ( ) : void
DropRole ( string roleName ) : bool
DropUser ( string userName ) : bool
GetUser ( string userName ) : UserInfo
GetUserRoles ( string userName ) : string[]
GetUserStatus ( string userName ) : UserStatus
IsUserInRole ( string userName, string roleName ) : bool
IsUserRoleAdmin ( string userName, string roleName ) : bool
RemoveUserFromRole ( string userName, string roleName ) : bool
RoleExists ( string roleName ) : bool
SetRoleAdmin ( string roleName, string userName ) : void
SetUserStatus ( string userName, UserStatus status ) : void
UserExists ( string userName ) : bool
UserManager ( ISession session ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
DeserializeArguments ( byte bytes ) : object>.IDictionary
QueryUserRoles ( string userName ) : string[]
RemoveUserFromAllRoles ( string username ) : void
SerializeArguments ( object>.IDictionary args ) : byte[]

Method Details

AddUserToRole() public method

public AddUserToRole ( string userName, string roleName, bool asAdmin ) : void
userName string
roleName string
asAdmin bool
return void

AlterUser() public method

public AlterUser ( UserInfo userInfo ) : void
userInfo UserInfo
return void

CreateRole() public method

public CreateRole ( string roleName ) : void
roleName string
return void

CreateUser() public method

public CreateUser ( UserInfo userInfo ) : void
userInfo UserInfo
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DropRole() public method

public DropRole ( string roleName ) : bool
roleName string
return bool

DropUser() public method

public DropUser ( string userName ) : bool
userName string
return bool

GetUser() public method

public GetUser ( string userName ) : UserInfo
userName string
return UserInfo

GetUserRoles() public method

public GetUserRoles ( string userName ) : string[]
userName string
return string[]

GetUserStatus() public method

public GetUserStatus ( string userName ) : UserStatus
userName string
return UserStatus

IsUserInRole() public method

public IsUserInRole ( string userName, string roleName ) : bool
userName string
roleName string
return bool

IsUserRoleAdmin() public method

public IsUserRoleAdmin ( string userName, string roleName ) : bool
userName string
roleName string
return bool

RemoveUserFromRole() public method

public RemoveUserFromRole ( string userName, string roleName ) : bool
userName string
roleName string
return bool

RoleExists() public method

public RoleExists ( string roleName ) : bool
roleName string
return bool

SetRoleAdmin() public method

public SetRoleAdmin ( string roleName, string userName ) : void
roleName string
userName string
return void

SetUserStatus() public method

public SetUserStatus ( string userName, UserStatus status ) : void
userName string
status UserStatus
return void

UserExists() public method

public UserExists ( string userName ) : bool
userName string
return bool

UserManager() public method

public UserManager ( ISession session ) : System
session ISession
return System

Property Details

PasswordTableName public_oe static_oe property

public static ObjectName PasswordTableName
return ObjectName

RoleTableName public_oe static_oe property

public static ObjectName RoleTableName
return ObjectName

UserRoleTableName public_oe static_oe property

public static ObjectName UserRoleTableName
return ObjectName

UserTableName public_oe static_oe property

Gets the fully qualified name of the user table.
public static ObjectName UserTableName
return ObjectName