C# Class nonintanon.Security.SimpleRoleProvider

Inheritance: System.Web.Security.RoleProvider
Exibir arquivo Open project: nonintanon/SimpleGuidMembershipProvider

Private Properties

Property Type Description
ConnectToDatabase IDatabase
CreateTablesIfNeeded void
FindRoleId System.Guid
GetRoleIdsFromNames List
GetUserIdsFromNames List
VerifyInitialized void

Public Methods

Method Description
AddUsersToRoles ( string usernames, string roleNames ) : void
CreateRole ( string roleName ) : void
DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
GetAllRoles ( ) : string[]
GetRolesForUser ( string username ) : string[]
GetUsersInRole ( string roleName ) : string[]
IsUserInRole ( string username, string roleName ) : bool
RemoveUsersFromRoles ( string usernames, string roleNames ) : void
RoleExists ( string roleName ) : bool
SimpleRoleProvider ( ) : System
SimpleRoleProvider ( System.Web.Security.RoleProvider previousProvider ) : System

Private Methods

Method Description
ConnectToDatabase ( ) : IDatabase
CreateTablesIfNeeded ( ) : void
FindRoleId ( IDatabase db, string roleName ) : System.Guid
GetRoleIdsFromNames ( IDatabase db, string roleNames ) : List
GetUserIdsFromNames ( IDatabase db, string usernames ) : List
VerifyInitialized ( ) : void

Method Details

AddUsersToRoles() public method

public AddUsersToRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
return void

CreateRole() public method

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

DeleteRole() public method

public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
roleName string
throwOnPopulatedRole bool
return bool

FindUsersInRole() public method

public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string
usernameToMatch string
return string[]

GetAllRoles() public method

public GetAllRoles ( ) : string[]
return string[]

GetRolesForUser() public method

public GetRolesForUser ( string username ) : string[]
username string
return string[]

GetUsersInRole() public method

public GetUsersInRole ( string roleName ) : string[]
roleName string
return string[]

IsUserInRole() public method

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

RemoveUsersFromRoles() public method

public RemoveUsersFromRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
return void

RoleExists() public method

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

SimpleRoleProvider() public method

public SimpleRoleProvider ( ) : System
return System

SimpleRoleProvider() public method

public SimpleRoleProvider ( System.Web.Security.RoleProvider previousProvider ) : System
previousProvider System.Web.Security.RoleProvider
return System