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

Interface IAssetsStorage

Represents base functionality of resource storage, common for report definitions and resources.

Namespace: Telerik.WebReportDesigner.Services
Assembly: Telerik.WebReportDesigner.Services.dll

Syntax

public interface IAssetsStorage

Methods

CreateFolderAsync(CreateFolderModel)

Creates the given folder (Name) in ParentUri

Declaration
Task<ResourceFolderModel> CreateFolderAsync(CreateFolderModel model)
Parameters
CreateFolderModel model

The model containing the create operation data

Returns
System.Threading.Tasks.Task<ResourceFolderModel>

The ResourceFolderModel of the newly created folder

DeleteAsync(String)

Deletes the given resource

Declaration
Task DeleteAsync(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Threading.Tasks.Task

DeleteFolderAsync(String)

Deletes the given folder at uri

Declaration
Task DeleteFolderAsync(string uri)
Parameters
System.String uri

The unique resource identifier (URI)

Returns
System.Threading.Tasks.Task

GetAsync(String)

Finds a resource by its name and returns its contents as byte array.

Declaration
Task<byte[]> GetAsync(string resourceName)
Parameters
System.String resourceName

Returns
System.Threading.Tasks.Task<System.Byte[]>

System.Threading.Tasks.Task<TResult>, where TResult is System.Byte[], containing the resource bytes.

Remarks

Must throw a ReportNotFoundException when the requested resourceName represents a report definition and was not found. Must throw a ResourceNotFoundException when the requested resourceName represents a resource and was not found.

GetFolderAsync(String)

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

Declaration
Task<ResourceFolderModel> GetFolderAsync(string uri)
Parameters
System.String uri

The unique resource identifier (URI).

Returns
System.Threading.Tasks.Task<ResourceFolderModel>

The ResourceFolderModel of the obtained folder.

GetFolderContentsAsync(String)

Gets all resources contained in the given uri

Declaration
Task<IEnumerable<ResourceModelBase>> GetFolderContentsAsync(string uri)
Parameters
System.String uri

The unique resource identifier (URI) of the folder

Returns
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ResourceModelBase>>

A list of all resources found in the folder as an enumerable of ResourceModelBase

GetModelAsync(String)

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

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

The unique resource identifier (URI) of the resource.

Returns
System.Threading.Tasks.Task<ResourceFileModel>

ResourceFileModel, containg the information about the resource.

RenameAsync(RenameResourceModel)

Renames the given resource

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

The model containing the rename operation data

Returns
System.Threading.Tasks.Task<ResourceFileModel>

ResourceFileModel, containg the information about the file.

RenameFolderAsync(RenameFolderModel)

Renames the given folder at OldUri to Name.

Declaration
Task<ResourceFolderModel> RenameFolderAsync(RenameFolderModel model)
Parameters
RenameFolderModel model

The model containing the rename operation data

Returns
System.Threading.Tasks.Task<ResourceFolderModel>

The ResourceFolderModel of the newly created folder

SaveAsync(SaveResourceModel, Byte[])

Saves the raw data of a resource and returns its model.

Declaration
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>

ResourceFileModel, containg the information about the saved resource.

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.