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)
Declaration
Task<ResourceFolderModel> CreateFolderAsync(CreateFolderModel model)
Parameters
Create The model containing the create operation data |
Returns
System. The Resource |
DeleteAsync(String)
Deletes the given resource
Declaration
Task DeleteAsync(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System.
|
DeleteFolderAsync(String)
Deletes the given folder at uri
Declaration
Task DeleteFolderAsync(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System.
|
GetAsync(String)
Finds a resource by its name and returns its contents as byte array.
Declaration
Task<byte[]> GetAsync(string resourceName)
Parameters
System.
|
Returns
System. System.Threading.Tasks.Task<TResult>, where TResult is System. |
Remarks
Must throw a ReportresourceName
represents a report definition and was not found. Must throw a ResourceresourceName
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. The unique resource identifier (URI). |
Returns
System. The Resource |
GetFolderContentsAsync(String)
Gets all resources contained in the given uri
Declaration
Task<IEnumerable<ResourceModelBase>> GetFolderContentsAsync(string uri)
Parameters
System. The unique resource identifier (URI) of the folder |
Returns
System. A list of all resources found in the folder as an enumerable of Resource |
GetModelAsync(String)
Returns the resource model at uri
or null if not found.
Declaration
Task<ResourceFileModel> GetModelAsync(string uri)
Parameters
System. The unique resource identifier (URI) of the resource. |
Returns
System. Resource |
RenameAsync(RenameResourceModel)
Renames the given resource
Declaration
Task<ResourceFileModel> RenameAsync(RenameResourceModel model)
Parameters
Rename The model containing the rename operation data |
Returns
System. Resource |
RenameFolderAsync(RenameFolderModel)
Declaration
Task<ResourceFolderModel> RenameFolderAsync(RenameFolderModel model)
Parameters
Rename The model containing the rename operation data |
Returns
System. The Resource |
SaveAsync(SaveResourceModel, Byte[])
Saves the raw data of a resource and returns its model.
Declaration
Task<ResourceFileModel> SaveAsync(SaveResourceModel model, byte[] resource)
Parameters
Save The model containing the save operation data. |
System. The contents of the resource. |
Returns
System. Resource |