skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class FileSharedDataSourceStorage

Represents a file-based definition storage to resolve SharedDataSource definitions from a local directory.

Inheritance
System.Object
ResourceStorageBase
ResourceStorage
FileDefinitionStorageBase
FileSharedDataSourceStorage
Inherited Members
FileDefinitionStorageBase.GetFolderContents(String, String[])
FileDefinitionStorageBase.GetByUri<TDefinitionNotFoundException>(String)
FileDefinitionStorageBase.RenameAsync<TInvalidDefinitionNameException>(RenameResourceModel)
FileDefinitionStorageBase.SaveAsync<TDefinitionNotFoundException>(SaveResourceModel, Byte[])
FileDefinitionStorageBase.GetFolderAsync(String)
FileDefinitionStorageBase.DeleteAsync(String)
FileDefinitionStorageBase.Save(SaveResourceModel, Byte[], Boolean, Boolean)
FileDefinitionStorageBase.WrapException<TResult, TDefinitionException, TResourceException>(Func<TResult>)
ResourceStorage.RootFolderName
ResourceStorage.GetOrderedDefaultFoldersToCreate()
ResourceStorage.GetAllByExtension(String[])
ResourceStorage.GetFolderContentsAsync(String)
ResourceStorage.FolderHasContents(String)
ResourceStorage.GetFolderByName(String)
ResourceStorage.CreateFolderAsync(CreateFolderModel)
ResourceStorage.MoveFolder(MoveFolderModel)
ResourceStorage.RenameFolderAsync(RenameFolderModel)
ResourceStorage.DeleteFolderAsync(String)
ResourceStorage.FolderNameExists(String)
ResourceStorage.FolderExists(String)
ResourceStorage.GetAsync(String)
ResourceStorage.GetByUri(String)
ResourceStorage.ResourceNameExists(String)
ResourceStorage.ResourceExists(String)
ResourceStorage.GetFile(String)
ResourceStorage.GetModelByName(String)
ResourceStorage.GetModelCore<T>(String)
ResourceStorage.Save(String, Byte[])
ResourceStorage.SaveAsync(SaveResourceModel, Byte[], Boolean)
ResourceStorage.SaveCore<T>(SaveResourceModel, Byte[], Boolean)
ResourceStorage.OverwriteCore<T>(OverwriteResourceModel, Byte[])
ResourceStorage.RenameCore<T>(RenameResourceModel)
ResourceStorage.MoveCore<T>(MoveResourceModel)
ResourceStorage.Search(SearchResourcesModel)
ResourceStorage.CreateDirectory(String[])
ResourceStorage.EnsureDefaultFolders()
ResourceStorage.CreateDefaultFolder(CreateFolderModel)
ResourceStorage.BaseDir
ResourceStorageBase.defaultFolders
ResourceStorageBase.DefaultFoldersToCreate
ResourceStorageBase.ValidateSavedResourceExtension(String)
Namespace: Telerik.WebReportDesigner.Services
Assembly: Telerik.WebReportDesigner.Services.dll

Syntax

public class FileSharedDataSourceStorage : FileDefinitionStorageBase, IHasBaseDir, ISharedDataSourceStorage, IResourceStorage, IAssetsStorage

Constructors

FileSharedDataSourceStorage(String)

Initializes a new instance of the FileSharedDataSourceStorage class.

Declaration
public FileSharedDataSourceStorage(string baseDir)
Parameters
System.String baseDir

The base directory where the SharedDataSource definitions are stored.

FileSharedDataSourceStorage(String, String[])

Initializes a new instance of the FileSharedDataSourceStorage class.

Declaration
public FileSharedDataSourceStorage(string baseDir, string[] definitionFolders)
Parameters
System.String baseDir

The base directory where the SharedDataSource subfolders are stored.

System.String[] definitionFolders

The folders where the SharedDataSource definitions are stored. Pass an empty string array to include all the folders.

FileSharedDataSourceStorage(String, String[], String[])

Initializes a new instance of the FileSharedDataSourceStorage class.

Declaration
public FileSharedDataSourceStorage(string baseDir, string[] definitionFolders, string[] excludedFolders)
Parameters
System.String baseDir

The base directory where the SharedDataSource definitions are stored.

System.String[] definitionFolders

The folders where the SharedDataSource definitions are stored. Pass an empty string array to include all the folders.

System.String[] excludedFolders

Relative folder paths to be excluded when retrieving folder contents. Wildcards are not supported.

Properties

FileExtensions

Gets an array with allowed file extensions.

Declaration
protected override string[] FileExtensions { get; }
Property Value
System.String[]

Overrides
FileDefinitionStorageBase.FileExtensions

Methods

GetModelAsync(String)

Finds a SharedDataSource resource by its uri and returns the information about it.

Declaration
public override Task<ResourceFileModel> GetModelAsync(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Threading.Tasks.Task<ResourceFileModel>

SharedDataSourceModel, containg the information about the resource.

Overrides
FileDefinitionStorageBase.GetModelAsync(String)
Implements
IAssetsStorage.GetModelAsync(String)

IsExtensionValid(String)

Determines if an asset extension is valid.

Declaration
protected override bool IsExtensionValid(string resourceExtension)
Parameters
System.String resourceExtension

Returns
System.Boolean

Overrides
ResourceStorageBase.IsExtensionValid(String)

Move(MoveResourceModel)

Moves the given SharedDataSource resource NewParentUri

Declaration
public override ResourceFileModel Move(MoveResourceModel model)
Parameters
MoveResourceModel model

The model containing the move operation data

Returns
ResourceFileModel

SharedDataSourceModel, containg the information about the folder

Overrides
ResourceStorage.Move(MoveResourceModel)
Implements
IResourceStorage.Move(MoveResourceModel)

Overwrite(OverwriteResourceModel, Byte[])

Overwrites existing SharedDataSource.

Declaration
public override ResourceFileModel Overwrite(OverwriteResourceModel model, byte[] resource)
Parameters
OverwriteResourceModel model

System.Byte[] resource

Returns
ResourceFileModel

SharedDataSourceModel, containg the information about the overwritten resource.

Overrides
ResourceStorage.Overwrite(OverwriteResourceModel, Byte[])
Implements
IResourceStorage.Overwrite(OverwriteResourceModel, Byte[])

RenameAsync(RenameResourceModel)

Renames a definition asset.

Declaration
public override Task<ResourceFileModel> RenameAsync(RenameResourceModel model)
Parameters
RenameResourceModel model

Returns
System.Threading.Tasks.Task<ResourceFileModel>

Overrides
ResourceStorage.RenameAsync(RenameResourceModel)
Implements
IAssetsStorage.RenameAsync(RenameResourceModel)

SaveAsync(SaveResourceModel, Byte[])

Saves the new bytes of a SharedDataSource resource and returns the information about it. The path to the SharedDataSource resource will be created if it does not exists.

Declaration
public override Task<ResourceFileModel> SaveAsync(SaveResourceModel model, byte[] resource)
Parameters
SaveResourceModel model

The model containing the save operation data

System.Byte[] resource

The contents of the resource.

Returns
System.Threading.Tasks.Task<ResourceFileModel>

SharedDataSourceModel, containg the information about the resource.

Overrides
ResourceStorage.SaveAsync(SaveResourceModel, Byte[])
Implements
IAssetsStorage.SaveAsync(SaveResourceModel, Byte[])
Exceptions
InvalidResourceNameException

ValidateDefinitionId(String)

Validates the provided definitionId.

Declaration
protected override void ValidateDefinitionId(string definitionId)
Parameters
System.String definitionId

Overrides
FileDefinitionStorageBase.ValidateDefinitionId(String)

Explicit Interface Implementations

ISharedDataSourceStorage.GetModelAsync(String)

Returns the SharedDataSource model at uri or null if not found.

Declaration
Task<SharedDataSourceModel> ISharedDataSourceStorage.GetModelAsync(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the resource.

Returns
System.Threading.Tasks.Task<SharedDataSourceModel>

SharedDataSourceModel, containg the information about the resource.

Implements
ISharedDataSourceStorage.GetModelAsync(String)

ISharedDataSourceStorage.RenameAsync(RenameResourceModel)

Renames a SharedDataSource by its model.

Declaration
Task<SharedDataSourceModel> ISharedDataSourceStorage.RenameAsync(RenameResourceModel model)
Parameters
RenameResourceModel model

The model containing relevant data used to rename

Returns
System.Threading.Tasks.Task<SharedDataSourceModel>

SharedDataSourceModel, containg the information about the resource.

Implements
ISharedDataSourceStorage.RenameAsync(RenameResourceModel)

ISharedDataSourceStorage.SaveAsync(SaveResourceModel, Byte[])

Creates new or overwrites an existing SharedDataSource definition file with the provided definition bytes.

Declaration
Task<SharedDataSourceModel> ISharedDataSourceStorage.SaveAsync(SaveResourceModel model, byte[] resource)
Parameters
SaveResourceModel model

System.Byte[] resource

Returns
System.Threading.Tasks.Task<SharedDataSourceModel>

SharedDataSourceModel, containg the information about the resource.

Implements
ISharedDataSourceStorage.SaveAsync(SaveResourceModel, Byte[])
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.