C# 클래스 Sitecore.SharedSource.Commons.Utilities.SitecoreItemFinder

Methods to help with getting items out of Sitecore
파일 보기 프로젝트 열기: Velir/Sitecore-Commons

공개 메소드들

메소드 설명
GetItem ( Database db, string path ) : Item

Wraps the Sitecore get item call. This will return null if a blank path is passed in, instead of erroring out. This also checks for a null DB reference.

GetItemFromCurrentDatabase ( string path ) : Item

A convenience override for the get item call that defaults the database to the current context database.

GetItemsFromGuidList ( List guidList, Database db ) : List

Gets items from a list of passed in guids.

GetItemsFromGuidListString ( string guidList, char listSeperator, Database db ) : List

Gets items from a delimited GUID list.

GetItemsFromSitecoreGuidList ( string guidList, Database db ) : List

Gets items from a sitecore pipe delimited GUID list.

GetSubItemsNotOfTemplate ( Item rootItem, TemplateItem template, bool recursive ) : List

Get the sub items of an item that are not using the specified template.

GetSubItemsOfTemplate ( Item rootItem, TemplateItem template, bool recursive ) : List

Get the sub items of an item that are using the specified template.

GetSubItemsOfTemplate ( Item rootItem, string templateId, bool recursive ) : List

Get the sub items of an item that are using the specified template.

메소드 상세

GetItem() 공개 정적인 메소드

Wraps the Sitecore get item call. This will return null if a blank path is passed in, instead of erroring out. This also checks for a null DB reference.
public static GetItem ( Database db, string path ) : Item
db Database The Sitecore db to search for the item.
path string The path of the item to find.
리턴 Item

GetItemFromCurrentDatabase() 공개 정적인 메소드

A convenience override for the get item call that defaults the database to the current context database.
public static GetItemFromCurrentDatabase ( string path ) : Item
path string The path of the item to find.
리턴 Item

GetItemsFromGuidList() 공개 정적인 메소드

Gets items from a list of passed in guids.
public static GetItemsFromGuidList ( List guidList, Database db ) : List
guidList List The GUID list.
db Database The db.
리턴 List

GetItemsFromGuidListString() 공개 정적인 메소드

Gets items from a delimited GUID list.
public static GetItemsFromGuidListString ( string guidList, char listSeperator, Database db ) : List
guidList string The delimited GUID list.
listSeperator char The list delimiter.
db Database The db.
리턴 List

GetItemsFromSitecoreGuidList() 공개 정적인 메소드

Gets items from a sitecore pipe delimited GUID list.
public static GetItemsFromSitecoreGuidList ( string guidList, Database db ) : List
guidList string The GUID list.
db Database The db.
리턴 List

GetSubItemsNotOfTemplate() 공개 정적인 메소드

Get the sub items of an item that are not using the specified template.
public static GetSubItemsNotOfTemplate ( Item rootItem, TemplateItem template, bool recursive ) : List
rootItem Item The root item.
template TemplateItem The template to check for.
recursive bool if set to true all sub items will be searched, otherwise only the first level children /// will be looked at.
리턴 List

GetSubItemsOfTemplate() 공개 정적인 메소드

Get the sub items of an item that are using the specified template.
public static GetSubItemsOfTemplate ( Item rootItem, TemplateItem template, bool recursive ) : List
rootItem Item The root item.
template TemplateItem The template to check for.
recursive bool if set to true all sub items will be searched, otherwise only the first level children /// will be looked at.
리턴 List

GetSubItemsOfTemplate() 공개 정적인 메소드

Get the sub items of an item that are using the specified template.
public static GetSubItemsOfTemplate ( Item rootItem, string templateId, bool recursive ) : List
rootItem Item The root item.
templateId string The template id to check for.
recursive bool if set to true all sub items will be searched, otherwise only the first level children /// will be looked at.
리턴 List