C# 클래스 Rock.Security.GlobalDefault

A generic ISecured entity
상속: ISecured
파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
IsAllowedByDefault ( string action ) : bool

If a user or role is not specifically allowed or denied to perform the selected action, return true if they should be allowed anyway or false if not.

IsAuthorized ( string action, Rock person ) : bool

Return true if the user is authorized to perform the selected action on this object.

IsPrivate ( string action, Person person ) : bool

Determines whether the specified action is private (Only the current user has access).

MakePrivate ( string action, Person person, RockContext rockContext = null ) : void

Makes the action on the current entity private (Only the current user will have access).

MakeUnPrivate ( string action, Person person, RockContext rockContext = null ) : void

If action on the current entity is private, removes security that made it private.

Read ( int id ) : GlobalDefault

Reads the specified id.

ToString ( ) : string

Just return empty string

메소드 상세

IsAllowedByDefault() 공개 메소드

If a user or role is not specifically allowed or denied to perform the selected action, return true if they should be allowed anyway or false if not.
public IsAllowedByDefault ( string action ) : bool
action string The action.
리턴 bool

IsAuthorized() 공개 메소드

Return true if the user is authorized to perform the selected action on this object.
public IsAuthorized ( string action, Rock person ) : bool
action string The action.
person Rock The person.
리턴 bool

IsPrivate() 공개 메소드

Determines whether the specified action is private (Only the current user has access).
public IsPrivate ( string action, Person person ) : bool
action string The action.
person Person The person.
리턴 bool

MakePrivate() 공개 메소드

Makes the action on the current entity private (Only the current user will have access).
public MakePrivate ( string action, Person person, RockContext rockContext = null ) : void
action string The action.
person Person The person.
rockContext Rock.Data.RockContext The rock context.
리턴 void

MakeUnPrivate() 공개 메소드

If action on the current entity is private, removes security that made it private.
public MakeUnPrivate ( string action, Person person, RockContext rockContext = null ) : void
action string The action.
person Person The person.
rockContext Rock.Data.RockContext The rock context.
리턴 void

Read() 공개 정적인 메소드

Reads the specified id.
public static Read ( int id ) : GlobalDefault
id int The id.
리턴 GlobalDefault

ToString() 공개 메소드

Just return empty string
public ToString ( ) : string
리턴 string