C# Class Candor.Security.CandorAuthorizationRoleProvider

A role provider that gets a list of roles from the AuthorizationManager if configured.
Inheritance: System.Web.Security.RoleProvider
Mostrar archivo Open project: michael-lang/candor-common

Public Methods

Method Description
AddUsersToRoles ( string usernames, string roleNames ) : void

Not implemented/supported.

CreateRole ( string roleName ) : void

Not implemented/supported.

DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool

Not implemented/supported.

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

Not implemented/supported.

GetAllRoles ( ) : string[]

Not implemented/supported.

GetRolesForUser ( string username ) : string[]

Gets all the roles assigned to the given user name.

GetUsersInRole ( string roleName ) : string[]

Not implemented/supported.

Initialize ( string name, NameValueCollection config ) : void

gets or sets if this role provider should load roles using the AuthorizationManager.

Initializes this role provider given the specified config.

If false, the authorization web service will be called directly and without any caching.If this provider is configured with 'useAuthorizationManager="false"' then the configuration will also be passed down to the default web service implementation of an authorization provider which will fulfull requests to this role provider.

IsUserInRole ( string username, string roleName ) : bool

Determines if a user is in a given role.

RemoveUsersFromRoles ( string usernames, string roleNames ) : void

Not implemented/supported.

RoleExists ( string roleName ) : bool

Not implemented/supported.

Method Details

AddUsersToRoles() public method

Not implemented/supported.
public AddUsersToRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
return void

CreateRole() public method

Not implemented/supported.
public CreateRole ( string roleName ) : void
roleName string
return void

DeleteRole() public method

Not implemented/supported.
public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
roleName string
throwOnPopulatedRole bool
return bool

FindUsersInRole() public method

Not implemented/supported.
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string
usernameToMatch string
return string[]

GetAllRoles() public method

Not implemented/supported.
public GetAllRoles ( ) : string[]
return string[]

GetRolesForUser() public method

Gets all the roles assigned to the given user name.
public GetRolesForUser ( string username ) : string[]
username string
return string[]

GetUsersInRole() public method

Not implemented/supported.
public GetUsersInRole ( string roleName ) : string[]
roleName string
return string[]

Initialize() public method

gets or sets if this role provider should load roles using the AuthorizationManager. Initializes this role provider given the specified config.
If false, the authorization web service will be called directly and without any caching. If this provider is configured with 'useAuthorizationManager="false"' then the configuration will also be passed down to the default web service implementation of an authorization provider which will fulfull requests to this role provider.
public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
return void

IsUserInRole() public method

Determines if a user is in a given role.
public IsUserInRole ( string username, string roleName ) : bool
username string
roleName string
return bool

RemoveUsersFromRoles() public method

Not implemented/supported.
public RemoveUsersFromRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
return void

RoleExists() public method

Not implemented/supported.
public RoleExists ( string roleName ) : bool
roleName string
return bool