Documentation > Services API > Helper

CrownPeak.CMSAPI.Services.ServicesSiteBuilder+Helper

SiteBuilder Helper class. Contains methods to assist in export and import.

NameDescriptionType
GetBaseDeveloperModel(Boolean)

Get the Base File Model from /System/Templates/Basis/ComponentsCS/output.aspx

Method
GetBaseFileModel(Boolean)

Get the Base File Model from /System/Models/Basis/Asset/Asset

Method
GetBaseFolderModel(Boolean)

Get the Base Folder Model from /System/Models/Basis/Asset/Asset Folder

Method
GetBinaryAsText(Asset)

It reads the binary file provided and returns as in a string. Only supports xml, csv, txt files. Any other types of extension will return empty string.

Method
GetFilterList(Asset,AssetType,String,Boolean,List[String],List[String])

Filters everything even subfolders from the selected folder. Key = AssetID, Value = Asset. Used primarily for SiteBuilder; Asset.GetFilterList should still be used in general situations. If AssetType.Unspecified is selected, it will return all folders and files. Workflow state default names are "Live", "Stage", "Draft", and empty "". If an instance has custom workflow names a custom list can be provided.

Method
IsBinaryAttached(Asset)

Check either if the asset contains attached binaries

Method
ParsePath(String)

Parse the path and store them in order

Method
RegexSearch(String,String)

Search Regex. Returns true if the pattern exist

Method
AssetFolderModelPath

Path for basic Asset Folder Model Note: This property is shared memory. Modifiy as rarely as possible and maintain instance-wide consistence. Issues may rarely occur if more than one thread is attempting to modify then use the property. Default: /System/Models/Basis/Asset/Asset Folder

Property
AssetModelPath

Path for basic Asset Model. Note: This property is shared memory. Modifiy as rarely as possible and maintain instance-wide consistence. Issues may rarely occur if more than one thread is attempting to modify then use the property. Default: /System/Models/Basis/Asset/Asset

Property
OutputTemplatePath

Path for basic output template. Note: This property is shared memory. Modifiy as rarely as possible and maintain instance-wide consistence. Issues may rarely occur if more than one thread is attempting to modify then use the property. Default: /System/Templates/Basis/ComponentsCS/output.aspx

Property
SimpleFolderModelPath

Backup path for basic Asset Folder Model Note: This property is shared memory. Modifiy as rarely as possible and maintain instance-wide consistence. Issues may rarely occur if more than one thread is attempting to modify then use the property. Default: /System/Models/Basis/Simple Folder

Property

Connect with CrownPeak