C# 클래스 Rock.Extension.Component

상속: Rock.Attribute.IHasAttributes
파일 보기 프로젝트 열기: NewSpring/Rock

공개 메소드들

메소드 설명
Component ( ) : System

Initializes a new instance of the Component class.

Component ( bool updateAttributes ) : System

Initializes a new instance of the Component class.

GetAttributeValue ( string key ) : string

Gets the value of an attribute key.

GetAttributeValues ( string key ) : List

Gets the value of an attribute key - splitting that delimited value into a list of strings.

InitializeAttributeValues ( System request, string rootUrl ) : void

Method that is called before attribute values are updated. Components can override this to perform any needed initialization of attribute values.

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, Model person ) : bool

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

IsPrivate ( string action, Model person ) : bool

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

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

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

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

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

SetAttributeValue ( string key, string value ) : void

Sets the value of an attribute key in memory. Note, this will not persist value to database

ValidateAttributeValues ( string &errorMessage ) : bool

Method that is called when attribute values are updated. Components can override this to perform any needed setup/validation based on current attribute values.

비공개 메소드들

메소드 설명
UpdateAttributes ( ) : void

메소드 상세

Component() 공개 메소드

Initializes a new instance of the Component class.
public Component ( ) : System
리턴 System

Component() 공개 메소드

Initializes a new instance of the Component class.
public Component ( bool updateAttributes ) : System
updateAttributes bool if set to true [update attributes].
리턴 System

GetAttributeValue() 공개 메소드

Gets the value of an attribute key.
public GetAttributeValue ( string key ) : string
key string The key.
리턴 string

GetAttributeValues() 공개 메소드

Gets the value of an attribute key - splitting that delimited value into a list of strings.
public GetAttributeValues ( string key ) : List
key string The key.
리턴 List

InitializeAttributeValues() 공개 메소드

Method that is called before attribute values are updated. Components can override this to perform any needed initialization of attribute values.
public InitializeAttributeValues ( System request, string rootUrl ) : void
request System The request.
rootUrl string The root URL.
리턴 void

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, Model person ) : bool
action string The action.
person Model The person.
리턴 bool

IsPrivate() 공개 메소드

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

MakePrivate() 공개 메소드

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

MakeUnPrivate() 공개 메소드

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

SetAttributeValue() 공개 메소드

Sets the value of an attribute key in memory. Note, this will not persist value to database
public SetAttributeValue ( string key, string value ) : void
key string The key.
value string The value.
리턴 void

ValidateAttributeValues() 공개 메소드

Method that is called when attribute values are updated. Components can override this to perform any needed setup/validation based on current attribute values.
public ValidateAttributeValues ( string &errorMessage ) : bool
errorMessage string The error message.
리턴 bool