C# 클래스 JordanRift.Grassroots.Framework.Services.GrassrootsRoleService

파일 보기 프로젝트 열기: JordanRift/Grassroots 1 사용 예제들

공개 메소드들

메소드 설명
AddUsersToRoles ( string usernames, string roleNames ) : void

Adds the given users to a given role. A user can have only one role so if you call this method with more than one role an exception will be thrown.

CreateRole ( string roleName ) : void
DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
FindUsersInRole ( string roleName, string usernameToMatch ) : string[]

Gets an array of user names in a role where the user name contains the specified user name to match.

GetAllRoles ( ) : string[]
GetRolesForUser ( string username ) : string[]
GetUsersInRole ( string roleName ) : string[]
GrassrootsRoleService ( ) : System
IsUserInRole ( string username, string roleName ) : bool
RemoveUsersFromRoles ( string usernames, string roleNames ) : void

Removes the given users from a given role. A user can have only one role so if you call this method with more than one role an exception will be thrown.

RoleExists ( string roleName ) : bool

메소드 상세

AddUsersToRoles() 공개 메소드

Adds the given users to a given role. A user can have only one role so if you call this method with more than one role an exception will be thrown.
Thrown if you call this method with more than one role.
public AddUsersToRoles ( string usernames, string roleNames ) : void
usernames string an array of userNames
roleNames string an array of roleNames (only 1 role is supported).
리턴 void

CreateRole() 공개 메소드

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

DeleteRole() 공개 메소드

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

FindUsersInRole() 공개 메소드

Gets an array of user names in a role where the user name contains the specified user name to match.
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string
usernameToMatch string
리턴 string[]

GetAllRoles() 공개 메소드

public GetAllRoles ( ) : string[]
리턴 string[]

GetRolesForUser() 공개 메소드

public GetRolesForUser ( string username ) : string[]
username string
리턴 string[]

GetUsersInRole() 공개 메소드

public GetUsersInRole ( string roleName ) : string[]
roleName string
리턴 string[]

GrassrootsRoleService() 공개 메소드

public GrassrootsRoleService ( ) : System
리턴 System

IsUserInRole() 공개 메소드

public IsUserInRole ( string username, string roleName ) : bool
username string
roleName string
리턴 bool

RemoveUsersFromRoles() 공개 메소드

Removes the given users from a given role. A user can have only one role so if you call this method with more than one role an exception will be thrown.
Thrown if you call this method with more than one role.
public RemoveUsersFromRoles ( string usernames, string roleNames ) : void
usernames string an array of userNames
roleNames string an array of roleNames (only 1 role is supported).
리턴 void

RoleExists() 공개 메소드

public RoleExists ( string roleName ) : bool
roleName string
리턴 bool