InterfaceISharedDataSourceStorage
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:
public interface ISharedDataSourceStorage : IResourceStorage, IAssetsStorage
Inherited Members
Methods
GetModelAsync(string)
Retrieves the shared data source model at the specified URI or returns null if not found.
Declaration
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
Task<SharedDataSourceModel> RenameAsync(RenameResourceModel model)
Parameters
model
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
Task<SharedDataSourceModel> SaveAsync(SaveResourceModel model, byte[] resource)
Parameters
model
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.