C# Class SenseNet.Portal.Portlets.ContentCollection.DefaultQueryBuilder

Show file Open project: maxpavlov/FlexNet Class Usage Examples

Protected Properties

Property Type Description
_emptyTermHandler ContentSearchPortlet.EmptyQueryTermHandler
_originalQuery string
_searchForm SenseNet.ContentRepository.Content

Public Methods

Method Description
BuildQuery ( ) : string
DefaultQueryBuilder ( string originalQuery, SenseNet.ContentRepository.Content searchForm, ContentSearchPortlet emptyTerm ) : System

Protected Methods

Method Description
ConvertFieldValuesToTerm ( string filedName, IEnumerable values ) : string
GetFieldValue ( Match match, string &fieldValue ) : string
Replace ( string queryFilter, Match actualMatch, string fieldValue ) : string
SetEmptyFieldValue ( ContentSearchPortlet mode, Field field ) : string

Method Details

BuildQuery() public method

public BuildQuery ( ) : string
return string

ConvertFieldValuesToTerm() protected method

protected ConvertFieldValuesToTerm ( string filedName, IEnumerable values ) : string
filedName string
values IEnumerable
return string

DefaultQueryBuilder() public method

public DefaultQueryBuilder ( string originalQuery, SenseNet.ContentRepository.Content searchForm, ContentSearchPortlet emptyTerm ) : System
originalQuery string
searchForm SenseNet.ContentRepository.Content
emptyTerm ContentSearchPortlet
return System

GetFieldValue() protected method

protected GetFieldValue ( Match match, string &fieldValue ) : string
match System.Text.RegularExpressions.Match
fieldValue string
return string

Replace() protected method

protected Replace ( string queryFilter, Match actualMatch, string fieldValue ) : string
queryFilter string
actualMatch System.Text.RegularExpressions.Match
fieldValue string
return string

SetEmptyFieldValue() protected method

protected SetEmptyFieldValue ( ContentSearchPortlet mode, Field field ) : string
mode ContentSearchPortlet
field SenseNet.ContentRepository.Field
return string

Property Details

_emptyTermHandler protected property

protected ContentSearchPortlet.EmptyQueryTermHandler _emptyTermHandler
return ContentSearchPortlet.EmptyQueryTermHandler

_originalQuery protected property

protected string _originalQuery
return string

_searchForm protected property

protected Content,SenseNet.ContentRepository _searchForm
return SenseNet.ContentRepository.Content