C# Класс Candor.Security.CandorAuthorizationRoleProvider

A role provider that gets a list of roles from the AuthorizationManager if configured.
Наследование: System.Web.Security.RoleProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AddUsersToRoles() публичный Метод

Not implemented/supported.
public AddUsersToRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
Результат void

CreateRole() публичный Метод

Not implemented/supported.
public CreateRole ( string roleName ) : void
roleName string
Результат void

DeleteRole() публичный Метод

Not implemented/supported.
public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
roleName string
throwOnPopulatedRole bool
Результат bool

FindUsersInRole() публичный Метод

Not implemented/supported.
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string
usernameToMatch string
Результат string[]

GetAllRoles() публичный Метод

Not implemented/supported.
public GetAllRoles ( ) : string[]
Результат string[]

GetRolesForUser() публичный Метод

Gets all the roles assigned to the given user name.
public GetRolesForUser ( string username ) : string[]
username string
Результат string[]

GetUsersInRole() публичный Метод

Not implemented/supported.
public GetUsersInRole ( string roleName ) : string[]
roleName string
Результат string[]

Initialize() публичный Метод

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
Результат void

IsUserInRole() публичный Метод

Determines if a user is in a given role.
public IsUserInRole ( string username, string roleName ) : bool
username string
roleName string
Результат bool

RemoveUsersFromRoles() публичный Метод

Not implemented/supported.
public RemoveUsersFromRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
Результат void

RoleExists() публичный Метод

Not implemented/supported.
public RoleExists ( string roleName ) : bool
roleName string
Результат bool