Class ResourceStorageBase
Abstract base class that handles the creation of default folders.
Inheritance
Namespace: Telerik.WebReportDesigner.Services
Assembly: Telerik.WebReportDesigner.Services.dll
Syntax
public abstract class ResourceStorageBase
Constructors
ResourceStorageBase(CreateFolderModel[])
Initializes a new instance of a descendant of the Resource
Declaration
public ResourceStorageBase(CreateFolderModel[] defaultFolders)
Parameters
Create
|
Fields
defaultFolders
List with default folders created when the ResourceStorage is instantiated.
Declaration
protected static readonly CreateFolderModel[] defaultFolders
Field Value
DefaultFoldersToCreate
Gets or sets the default folders that will be created upon starting.
Declaration
protected readonly CreateFolderModel[] DefaultFoldersToCreate
Field Value
Methods
CreateDefaultFolder(CreateFolderModel)
Creates a folder by the given model.
Declaration
protected abstract void CreateDefaultFolder(CreateFolderModel model)
Parameters
Create
|
EnsureDefaultFolders()
Ensures the default folders will be created.
Declaration
protected virtual void EnsureDefaultFolders()
GetOrderedDefaultFoldersToCreate()
Gets the order in which the default folders will be created.
Declaration
protected virtual IEnumerable<CreateFolderModel> GetOrderedDefaultFoldersToCreate()
Returns
System.
|
IsExtensionValid(String)
Determines if an asset extension is valid.
Declaration
protected virtual bool IsExtensionValid(string resourceExtension)
Parameters
System.
|
Returns
System.
|
ValidateSavedResourceExtension(String)
Validates if the extension of the resourceName is not in the forbidden extensions list.
Declaration
protected void ValidateSavedResourceExtension(string resourceName)
Parameters
System.
|