Interface
ISharedDataSourceStorage

Interface defining specialized storage operations for shared data source files in the WebReportDesigner system.

Definition

Namespace:Telerik.WebReportDesigner.Services

Assembly:Telerik.WebReportDesigner.Services.dll

Syntax:

cs-api-definition
public interface ISharedDataSourceStorage : IResourceStorage, IAssetsStorage

Inherited Members IResourceStorage.GetAllByExtension(string[])IResourceStorage.GetFolderByName(string)IResourceStorage.FolderNameExists(string)IResourceStorage.FolderExists(string)IResourceStorage.FolderHasContents(string)IResourceStorage.MoveFolder(MoveFolderModel)IResourceStorage.GetByUri(string)IResourceStorage.ResourceExists(string)IResourceStorage.GetFile(string)IResourceStorage.ResourceNameExists(string)IResourceStorage.GetModelByName(string)IResourceStorage.Save(string, byte[])IResourceStorage.Move(MoveResourceModel)IResourceStorage.Overwrite(OverwriteResourceModel, byte[])IResourceStorage.Search(SearchResourcesModel)IAssetsStorage.GetFolderContentsAsync(string)IAssetsStorage.GetFolderAsync(string)IAssetsStorage.CreateFolderAsync(CreateFolderModel)IAssetsStorage.RenameFolderAsync(RenameFolderModel)IAssetsStorage.DeleteFolderAsync(string)IAssetsStorage.GetAsync(string)IAssetsStorage.DeleteAsync(string)

Methods

GetModelAsync(string)

Retrieves the shared data source model at the specified URI or returns null if not found.

Declaration

cs-api-definition
Task<SharedDataSourceModel> GetModelAsync(string uri)

Parameters

uri

string

The unique resource identifier (URI) of the resource.

Returns

Task<SharedDataSourceModel>

SharedDataSourceModel, containing the information about the resource.

Remarks

Provides type-safe access to shared data source models with automatic description extraction from the file content, supporting the Assets Manager and shared data source management operations.

RenameAsync(RenameResourceModel)

Renames a shared data source file to a new name.

Declaration

cs-api-definition
Task<SharedDataSourceModel> RenameAsync(RenameResourceModel model)

Parameters

model

RenameResourceModel

The model containing the rename operation data

Returns

Task<SharedDataSourceModel>

SharedDataSourceModel, containing the information about the renamed resource.

Remarks

Updates the shared data source filename while preserving its content and automatically updating the description metadata, ensuring consistent shared data source management and referential integrity.

SaveAsync(SaveResourceModel, byte[])

Saves shared data source content and returns the model with extracted metadata.

Declaration

cs-api-definition
Task<SharedDataSourceModel> SaveAsync(SaveResourceModel model, byte[] resource)

Parameters

model

SaveResourceModel

The model containing the save operation data.

resource

byte[]

The contents of the SharedDataSourceModel resource.

Returns

Task<SharedDataSourceModel>

SharedDataSourceModel, containing the information about the saved resource.

Remarks

Creates or updates a shared data source file with automatic description extraction from the content, enabling reusable data source definitions that can be referenced across multiple reports in the WebReportDesigner system.