Represents a file-based definition storage specifically for report templates.
Definition
Namespace:Telerik.WebReportDesigner.Services
Assembly:Telerik.WebReportDesigner.Services.dll
Syntax:
public class FileTemplateDefinitionStorage : FileDefinitionStorageBase, IResourceStorage, IDefinitionStorage, IAssetsStorage
Inheritance: objectResourceStorageBaseResourceStorageFileDefinitionStorageBaseFileTemplateDefinitionStorage
Implements:
Inherited Members
Constructors
Initializes a new instance of the FileTemplateDefinitionStorage class.
public FileTemplateDefinitionStorage(string baseDir, string[] excludedFolders)
The base directory where the template definitions are stored.
excludedFoldersstring[]Relative folder paths to be excluded when retrieving folder contents.
Initializes a new instance of the FileTemplateDefinitionStorage class.
public FileTemplateDefinitionStorage(string baseDir)
The base directory where the template definitions are stored.
Fields
RootFolderName
string
The constant name of the Report Templates root folder.
public const string RootFolderName = "Report Templates"
Properties
FileExtensions
string[]
Gets an array with allowed file extensions.
protected override string[] FileExtensions { get; }
Overrides:
Methods
GetByUri(string)
byte[]
Finds a definition by its uri and returns its contents as byte array.
public override byte[] GetByUri(string uri)
The unique resource identifier (URI) of the definition.
Returns:byte[]
Overrides:
Renames a template by its model.
public override Task<ResourceFileModel> RenameAsync(RenameResourceModel model)
The model containing relevant data used to rename
Returns:Task<ResourceFileModel>
Overrides:
Implements:
Creates new or overwrites an existing template definition file with the provided definition bytes.
public override Task<ResourceFileModel> SaveAsync(SaveResourceModel model, byte[] resource)
Task<ResourceFileModel>
Overrides:
Implements:
Validates the provided definitionId.
protected override void ValidateDefinitionId(string definitionId)
Overrides: