C# 클래스 GSoft.Dynamite.Repositories.QueryHelper

Utility to help build SPQuery filter strings
상속: IQueryHelper
파일 보기 프로젝트 열기: GSoft-SharePoint/Dynamite-2010

Private Properties

프로퍼티 타입 설명
GetAllWssIdByTerm string
TrimIfNotNullOrEmpty string

공개 메소드들

메소드 설명
QueryHelper ( ITaxonomyService taxonomyService, ILogger logger ) : System

Initializes a new instance of the QueryHelper class.

TermFilter ( SPList list, string taxonomyFieldInternalName, IList terms, bool includeDescendants ) : string

Generates a SPQuery filter for Taxonomy Term

TermFilter ( SPList list, string taxonomyFieldInternalName, Term term, bool includeDescendants ) : string

Generates a SPQuery filter for Taxonomy Term

TermFilter ( SPList list, string taxonomyFieldInternalName, string termSetName, string termLabel, bool includeDescendants ) : string

Generates a SPQuery filter for Taxonomy Term from the site-collection-reserved term store group

TermFilter ( SPList list, string taxonomyFieldInternalName, string termStoreGroupName, string termSetName, string termLabel, bool includeDescendants ) : string

Generates a SPQuery filter for Taxonomy Term in a global farm term store group

ViewFieldsForEntityType ( Type entityType ) : string

Returns a string corresponding the the ViewFields attribute of a SPQuery with all the properties of a particular Entity

비공개 메소드들

메소드 설명
GetAllWssIdByTerm ( SPList list, Term term, bool includeDescendants ) : string
TrimIfNotNullOrEmpty ( string toTrim ) : string

메소드 상세

QueryHelper() 공개 메소드

Initializes a new instance of the QueryHelper class.
public QueryHelper ( ITaxonomyService taxonomyService, ILogger logger ) : System
taxonomyService ITaxonomyService The taxonomy service.
logger ILogger The logger.
리턴 System

TermFilter() 공개 메소드

Generates a SPQuery filter for Taxonomy Term
public TermFilter ( SPList list, string taxonomyFieldInternalName, IList terms, bool includeDescendants ) : string
list SPList The list over which the query will be done
taxonomyFieldInternalName string The name of the site column associated with the term set
terms IList List of terms for why we want to match in an OR fashion
includeDescendants bool Whether the Term's child terms should be query hits as well
리턴 string

TermFilter() 공개 메소드

Generates a SPQuery filter for Taxonomy Term
public TermFilter ( SPList list, string taxonomyFieldInternalName, Term term, bool includeDescendants ) : string
list SPList The list over which the query will be done
taxonomyFieldInternalName string The name of the site column associated with the term set
term Term Term to match for
includeDescendants bool Whether the Term's child terms should be query hits as well
리턴 string

TermFilter() 공개 메소드

Generates a SPQuery filter for Taxonomy Term from the site-collection-reserved term store group
public TermFilter ( SPList list, string taxonomyFieldInternalName, string termSetName, string termLabel, bool includeDescendants ) : string
list SPList The list over which the query will be done
taxonomyFieldInternalName string The name of the site column associated with the term set
termSetName string Name of the term set
termLabel string Label by which to find the term (dupes not supported)
includeDescendants bool Whether the Term's child terms should be query hits as well
리턴 string

TermFilter() 공개 메소드

Generates a SPQuery filter for Taxonomy Term in a global farm term store group
public TermFilter ( SPList list, string taxonomyFieldInternalName, string termStoreGroupName, string termSetName, string termLabel, bool includeDescendants ) : string
list SPList The list over which the query will be done
taxonomyFieldInternalName string The name of the site column associated with the term set
termStoreGroupName string Name of the global farm term store group
termSetName string Name of the term set
termLabel string Label by which to find the term (dupes not supported)
includeDescendants bool Whether the Term's child terms should be query hits as well
리턴 string

ViewFieldsForEntityType() 공개 메소드

Returns a string corresponding the the ViewFields attribute of a SPQuery with all the properties of a particular Entity
public ViewFieldsForEntityType ( Type entityType ) : string
entityType System.Type The type of the entity
리턴 string