Interface IResourceStorage
Represents a resource storage.
Inherited Members
Namespace: Telerik.WebReportDesigner.Services
Assembly: Telerik.WebReportDesigner.Services.dll
Syntax
public interface IResourceStorage : IAssetsStorage
Methods
FolderExists(String)
Determines if the given folder uri
exists.
Declaration
bool FolderExists(string uri)
Parameters
System. The unique resource identifier (URI) of the folder. |
Returns
System. true, if the folder exists, else false |
FolderHasContents(String)
Determines if the given folder uri
has contents
Declaration
bool FolderHasContents(string uri)
Parameters
System. The unique resource identifier (URI) of the folder |
Returns
System. true, if the folder has contents, else false |
FolderNameExists(String)
Determines if the given folder folderName
exists.
Declaration
bool FolderNameExists(string folderName)
Parameters
System. The path to the folder using Name identifiers. |
Returns
System. true, if the folder exists, else false |
GetAllByExtension(String[])
Returns the ids of the resource files that match the specified search extensions in the resource storage.
Declaration
IEnumerable<ResourceFileModel> GetAllByExtension(string[] extensions)
Parameters
System.
|
Returns
System.
|
GetByUri(String)
Finds a resource by its uri
and returns its contents as byte array.
Declaration
byte[] GetByUri(string uri)
Parameters
System. The unique resource identifier (URI) of the resource. |
Returns
System.
|
GetFile(String)
Finds a resource by its URI and returns a model containing the download data.
Declaration
ResourceFileDataModel GetFile(string resourceUri)
Parameters
System. The URI of the resource. |
Returns
Resource Resource |
GetFolderByName(String)
Gets the folder model at folderName
.
Declaration
ResourceFolderModel GetFolderByName(string folderName)
Parameters
System. The path to the folder using Name identifiers. |
Returns
Resource The Resource |
GetModelByName(String)
Finds a resource by its name and returns the information about it.
Declaration
ResourceFileModel GetModelByName(string resourceName)
Parameters
System. The full path to the resource using Name identifiers. |
Returns
Resource Resource |
Move(MoveResourceModel)
Moves the given resource New
Declaration
ResourceFileModel Move(MoveResourceModel model)
Parameters
Move The model containing the move operation data |
Returns
Resource Resource |
MoveFolder(MoveFolderModel)
Moves a folder from the given Old
Declaration
ResourceFolderModel MoveFolder(MoveFolderModel model)
Parameters
Move The model containing the move operation data |
Returns
Resource The Resource |
Overwrite(OverwriteResourceModel, Byte[])
Overwrites the given resource contents with resource
Declaration
ResourceFileModel Overwrite(OverwriteResourceModel model, byte[] resource)
Parameters
Overwrite The model containing the overwrite operation data |
System. The new contents of the resource |
Returns
Resource Resource |
ResourceExists(String)
Determines if a resource with the provided URI exists.
Declaration
bool ResourceExists(string uri)
Parameters
System. The unique resource identifier (URI) of the resource. |
Returns
System. true, if the resource exists, else false. |
ResourceNameExists(String)
Determines if a resource with the provided name exists.
Declaration
bool ResourceNameExists(string resourceName)
Parameters
System. The full path to the resource using Name identifiers. |
Returns
System. true, if the resource exists, else false. |
Save(String, Byte[])
Saves the new bytes of a resource name and returns the resource file's location.
Declaration
[Obsolete("Telerik.WebReportDesigner.Services.IResourceStorage.Save(string, byte[]) is now obsolete. Please use Telerik.WebReportDesigner.Services.IResourceStorage.Save(SaveResourceModel, byte[])", false)]
string Save(string resourceName, byte[] resource)
Parameters
System.
|
System.
|
Returns
System.
|
Search(SearchResourcesModel)
Searches for resource in the given Resource
Declaration
IEnumerable<ResourceModelBase> Search(SearchResourcesModel model)
Parameters
Search The model containing the search operation data |
Returns
System. The search results, both files and folders, as an enumerable of Resource |