C# Class Rock.Follow.SuggestionComponent

Base class for following provider components
Inheritance: Rock.Extension.Component
Mostra file Open project: NewSpring/Rock

Public Methods

Method Description
FormatEntityNotification ( FollowingSuggestionType followingSuggestionType, IEntity entity ) : string

Formats the entity notification.

GetAttributeValue ( string key ) : string

Use GetAttributeValue( FollowingSuggestion followingSuggestion, string key) instead. suggestion component attribute values are specific to the following suggestion instance (rather than global). This method will throw an exception

GetSuggestions ( FollowingSuggestionType followingSuggestionType, List FollowerPersonIds ) : List

Gets the suggestions.

LoadAttributes ( FollowingSuggestionType followingSuggestion ) : void

Loads the attributes for the following suggestion.

SortEntities ( List entities ) : List

Sorts the entities.

SuggestionComponent ( ) : System

Initializes a new instance of the SuggestionComponent class.

Protected Methods

Method Description
GetAttributeValue ( FollowingSuggestionType followingSuggestion, string key ) : string

Gets the attribute value for the suggestion

Method Details

FormatEntityNotification() public method

Formats the entity notification.
public FormatEntityNotification ( FollowingSuggestionType followingSuggestionType, IEntity entity ) : string
followingSuggestionType FollowingSuggestionType Type of the following suggestion.
entity IEntity The entity.
return string

GetAttributeValue() protected method

Gets the attribute value for the suggestion
protected GetAttributeValue ( FollowingSuggestionType followingSuggestion, string key ) : string
followingSuggestion FollowingSuggestionType The following suggestion.
key string The key.
return string

GetAttributeValue() public method

Use GetAttributeValue( FollowingSuggestion followingSuggestion, string key) instead. suggestion component attribute values are specific to the following suggestion instance (rather than global). This method will throw an exception
Suggestion Component attributes are saved specific to the following suggestion, which requires that the current following suggestion is included in order to load or retrieve values. Use the GetAttributeValue( FollowingSuggestion followingSuggestion, string key ) method instead.
public GetAttributeValue ( string key ) : string
key string The key.
return string

GetSuggestions() public abstract method

Gets the suggestions.
public abstract GetSuggestions ( FollowingSuggestionType followingSuggestionType, List FollowerPersonIds ) : List
followingSuggestionType FollowingSuggestionType Type of the following suggestion.
FollowerPersonIds List The follower person ids.
return List

LoadAttributes() public method

Loads the attributes for the following suggestion.
public LoadAttributes ( FollowingSuggestionType followingSuggestion ) : void
followingSuggestion FollowingSuggestionType The following suggestion.
return void

SortEntities() public method

Sorts the entities.
public SortEntities ( List entities ) : List
entities List The entities.
return List

SuggestionComponent() public method

Initializes a new instance of the SuggestionComponent class.
public SuggestionComponent ( ) : System
return System