C# Class Sitecore.SharedSource.Commons.Utilities.CreateItem

Operations related to creating new items and first checking to see if the item already exists
Inheritance: ICreateItem
Exibir arquivo Open project: Velir/Sitecore-Commons Class Usage Examples

Public Methods

Method Description
CreateChild ( ) : ID

Creates the child.

CreateItem ( ID parentId, string cleanName, ID templateId, string dbName ) : System.Linq
CreateItem ( ID parentId, string cleanName, ID templateId, string dbName, Language language ) : System.Linq
GetChild ( ) : ID

Gets the child.

The algorithm is important for performs a) first get the parent item b) then check its children to see if the proposed item exists we don't want to look for the proposed item by path because it is slow if not found

Method Details

CreateChild() public method

Creates the child.
public CreateChild ( ) : ID
return ID

CreateItem() public method

public CreateItem ( ID parentId, string cleanName, ID templateId, string dbName ) : System.Linq
parentId ID
cleanName string
templateId ID
dbName string
return System.Linq

CreateItem() public method

public CreateItem ( ID parentId, string cleanName, ID templateId, string dbName, Language language ) : System.Linq
parentId ID
cleanName string
templateId ID
dbName string
language Language
return System.Linq

GetChild() public method

Gets the child.
The algorithm is important for performs a) first get the parent item b) then check its children to see if the proposed item exists we don't want to look for the proposed item by path because it is slow if not found
public GetChild ( ) : ID
return ID