Content-Length: 75601 | pFad | http://docs.telerik.com/reporting/api/telerik.webreportdesigner.services.filedefinitionstorage

Class FileDefinitionStorage - Telerik Reporting API Reference Documentation
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 FileDefinitionStorage

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

Inheritance
System.Object
ResourceStorageBase
ResourceStorage
FileDefinitionStorageBase
FileDefinitionStorage
Inherited Members
FileDefinitionStorageBase.GetFolderContents(String, String[])
FileDefinitionStorageBase.GetByUri<TDefinitionNotFoundException>(String)
FileDefinitionStorageBase.RenameAsync<TInvalidDefinitionNameException>(RenameResourceModel)
FileDefinitionStorageBase.SaveAsync<TDefinitionNotFoundException>(SaveResourceModel, Byte[])
FileDefinitionStorageBase.GetFolderAsync(String)
FileDefinitionStorageBase.GetModelAsync(String)
FileDefinitionStorageBase.DeleteAsync(String)
FileDefinitionStorageBase.Save(SaveResourceModel, Byte[], Boolean, Boolean)
FileDefinitionStorageBase.WrapException<TResult, TDefinitionException, TResourceException>(Func<TResult>)
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.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.Overwrite(OverwriteResourceModel, Byte[])
ResourceStorage.OverwriteCore<T>(OverwriteResourceModel, Byte[])
ResourceStorage.RenameCore<T>(RenameResourceModel)
ResourceStorage.Move(MoveResourceModel)
ResourceStorage.MoveCore<T>(MoveResourceModel)
ResourceStorage.Search(SearchResourcesModel)
ResourceStorage.CreateDirectory(String[])
ResourceStorage.EnsureDefaultFolders()
ResourceStorage.CreateDefaultFolder(CreateFolderModel)
ResourceStorage.BaseDir
ResourceStorageBase.defaultFolders
ResourceStorageBase.DefaultFoldersToCreate
ResourceStorageBase.ValidateSavedResourceExtension(String)
ResourceStorageBase.IsExtensionValid(String)
Namespace: Telerik.WebReportDesigner.Services
Assembly: Telerik.WebReportDesigner.Services.dll

Syntax

public class FileDefinitionStorage : FileDefinitionStorageBase, IResourceStorage, IHasBaseDir, IDefinitionStorage, IAssetsStorage

Constructors

FileDefinitionStorage(String)

Initializes a new instance of the FileDefinitionStorage class.

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

The base directory where the report definitions are stored.

FileDefinitionStorage(String, String[])

Initializes a new instance of the FileDefinitionStorage class.

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

The base directory where the report definitions are stored.

System.String[] excludedFolders

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

Fields

RootFolderName

The constant name of the Reports root folder.

Declaration
public const string RootFolderName = "Reports"
Field Value
System.String

Properties

FileExtensions

Gets an array with allowed file extensions.

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

Overrides
FileDefinitionStorageBase.FileExtensions

Methods

GetByUri(String)

Finds a definition by its uri and returns its contents as byte array.

Declaration
public override byte[] GetByUri(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the definition.

Returns
System.Byte[]

Overrides
ResourceStorage.GetByUri(String)

RenameAsync(RenameResourceModel)

Renames a report by its model.

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

The model containing relevant data used to rename

Returns
System.Threading.Tasks.Task<ResourceFileModel>

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

SaveAsync(SaveResourceModel, Byte[])

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

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

System.Byte[] resource

Returns
System.Threading.Tasks.Task<ResourceFileModel>

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

ValidateDefinitionId(String)

Validates the provided definitionId.

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

Overrides
FileDefinitionStorageBase.ValidateDefinitionId(String)
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.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://docs.telerik.com/reporting/api/telerik.webreportdesigner.services.filedefinitionstorage

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy