C# 클래스 Rock.Security.Role

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

공개 메소드들

메소드 설명
AllRoles ( ) : List

Returns a list of all the possible Roles

Flush ( int id ) : void

Removes role from cache

GetOrAddExisting ( string key, Func valueFactory ) : Role

Gets the or add existing.

IsPersonInRole ( System.Guid personGuid ) : bool

Is user in role

LoadById ( int id ) : Role

Loads the by identifier.

Read ( int id ) : Role

Returns Role object from cache. If role does not already exist in cache, it will be read and added to cache

비공개 메소드들

메소드 설명
CacheKey ( int id ) : string

Caches the key.

Role ( ) : System

Use Static Read() method to instantiate a new Role object

메소드 상세

AllRoles() 공개 정적인 메소드

Returns a list of all the possible Roles
public static AllRoles ( ) : List
리턴 List

Flush() 공개 정적인 메소드

Removes role from cache
public static Flush ( int id ) : void
id int The id.
리턴 void

GetOrAddExisting() 공개 정적인 메소드

Gets the or add existing.
public static GetOrAddExisting ( string key, Func valueFactory ) : Role
key string The key.
valueFactory Func The value factory.
리턴 Role

IsPersonInRole() 공개 메소드

Is user in role
public IsPersonInRole ( System.Guid personGuid ) : bool
personGuid System.Guid The person unique identifier.
리턴 bool

LoadById() 공개 정적인 메소드

Loads the by identifier.
public static LoadById ( int id ) : Role
id int The identifier.
리턴 Role

Read() 공개 정적인 메소드

Returns Role object from cache. If role does not already exist in cache, it will be read and added to cache
public static Read ( int id ) : Role
id int The id.
리턴 Role