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 ResourceStorageBase class.
Declaration
public ResourceStorageBase(CreateFolderModel[] defaultFolders)
Parameters
CreateFolderModel[]
defaultFolders
|
Fields
defaultFolders
List with default folders created when the ResourceStorage is instantiated.
Declaration
protected static readonly CreateFolderModel[] defaultFolders
Field Value
CreateFolderModel[]
|
DefaultFoldersToCreate
Gets or sets the default folders that will be created upon starting.
Declaration
protected readonly CreateFolderModel[] DefaultFoldersToCreate
Field Value
CreateFolderModel[]
|
Methods
CreateDefaultFolder(CreateFolderModel)
Creates a folder by the given model.
Declaration
protected abstract void CreateDefaultFolder(CreateFolderModel model)
Parameters
CreateFolderModel
model
|
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.Collections.Generic.IEnumerable<CreateFolderModel>
|
IsExtensionValid(String)
Determines if an asset extension is valid.
Declaration
protected virtual bool IsExtensionValid(string resourceExtension)
Parameters
System.String
resourceExtension
|
Returns
System.Boolean
|
ValidateSavedResourceExtension(String)
Validates if the extension of the resourceName is not in the forbidden extensions list.
Declaration
protected void ValidateSavedResourceExtension(string resourceName)
Parameters
System.String
resourceName
|
Exceptions
InvalidResourceNameException
|