C# 클래스 Catbert4.Providers.CatbertServiceRoleProvider

CatbertServiceRoleProvider inherits from the generic RoleProvider provided by ASP.NET that is part of their provider model (which includes Membership, Role and Profile Providers)
상속: System.Web.Security.RoleProvider
파일 보기 프로젝트 열기: ucdavis/Catbert

Private Properties

프로퍼티 타입 설명
GetClient RoleServiceClient

공개 메소드들

메소드 설명
AddUsersToRoles ( string usernames, string roleNames ) : void
CreateRole ( string roleName ) : void
DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
GetAllRoles ( ) : string[]

Gets all roles in the application context

GetRolesForUser ( string username ) : string[]

Gets all roles for the user in the context of this application

GetUsersInRole ( string roleName ) : string[]

Gets all users that are in the current role in the application context

InitWithoutConfig ( string appName, string serviceUrl, string authToken ) : void

Just set the appname and connection string

Initialize ( string name, NameValueCollection config ) : void

Initialized from the web.config file when the application loads for the first time.

IsUserInRole ( string username, string roleName ) : bool

Determine if a user is in the supplied role in this application.

RemoveUsersFromRoles ( string usernames, string roleNames ) : void
RoleExists ( string roleName ) : bool

Find out if a role exists within an application context

A return of false doesn't mean that the role doesn't exist in the db, just that it doesn't exists withing the context of this application

비공개 메소드들

메소드 설명
GetClient ( ) : RoleServiceClient

메소드 상세

AddUsersToRoles() 공개 메소드

public AddUsersToRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
리턴 void

CreateRole() 공개 메소드

public CreateRole ( string roleName ) : void
roleName string
리턴 void

DeleteRole() 공개 메소드

public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
roleName string
throwOnPopulatedRole bool
리턴 bool

FindUsersInRole() 공개 메소드

public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string
usernameToMatch string
리턴 string[]

GetAllRoles() 공개 메소드

Gets all roles in the application context
public GetAllRoles ( ) : string[]
리턴 string[]

GetRolesForUser() 공개 메소드

Gets all roles for the user in the context of this application
public GetRolesForUser ( string username ) : string[]
username string LoginID to get the roles for
리턴 string[]

GetUsersInRole() 공개 메소드

Gets all users that are in the current role in the application context
public GetUsersInRole ( string roleName ) : string[]
roleName string
리턴 string[]

InitWithoutConfig() 공개 메소드

Just set the appname and connection string
public InitWithoutConfig ( string appName, string serviceUrl, string authToken ) : void
appName string
serviceUrl string
authToken string
리턴 void

Initialize() 공개 메소드

Initialized from the web.config file when the application loads for the first time.
public Initialize ( string name, NameValueCollection config ) : void
name string The name of the role provider
config System.Collections.Specialized.NameValueCollection Collection of keys. They need to include ApplicationName, ConnectionString. /// Description is optional
리턴 void

IsUserInRole() 공개 메소드

Determine if a user is in the supplied role in this application.
public IsUserInRole ( string username, string roleName ) : bool
username string LoginID
roleName string RoleName
리턴 bool

RemoveUsersFromRoles() 공개 메소드

public RemoveUsersFromRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
리턴 void

RoleExists() 공개 메소드

Find out if a role exists within an application context
A return of false doesn't mean that the role doesn't exist in the db, just that it doesn't exists withing the context of this application
public RoleExists ( string roleName ) : bool
roleName string RoleName
리턴 bool