Documentation > Services API > Helper
CrownPeak.CMSAPI.Services.ServicesSiteBuilder+Helper
SiteBuilder Helper class. Contains methods to assist in export and import.
Name | Description | Type |
---|---|---|
GetBaseDeveloperModel | Get the Base File Model from /System/Templates/Basis/ComponentsCS/output.aspx |
Method |
GetBaseFileModel | Get the Base File Model from /System/Models/Basis/Asset/Asset |
Method |
GetBaseFolderModel | Get the Base Folder Model from /System/Models/Basis/Asset/Asset Folder |
Method |
GetBinaryAsText | 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 | 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 | Check either if the asset contains attached binaries |
Method |
ParsePath | Parse the path and store them in order |
Method |
RegexSearch | 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 |