Class ReportDesignerControllerBase
Base API controller for exposing the Telerik Report Designer Service in an ASP.NET Core application.
Inherited Members
Namespace: Telerik.WebReportDesigner.Services.Controllers
Assembly: Telerik.WebReportDesigner.Services.dll
Syntax
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
[ReportsExceptionFilter]
public class ReportDesignerControllerBase : ReportsControllerBase
Constructors
ReportDesignerControllerBase()
Declaration
public ReportDesignerControllerBase()
Properties
ReportDesignerServiceConfiguration
Gets or sets the configuration of the web report designer service.
Declaration
public IReportDesignerServiceConfiguration ReportDesignerServiceConfiguration { get; set; }
Property Value
Remarks
When inheriting the ReportDesignerControllerBase controller basic configuration is needed.
Provide an object implementing the IReport
See Also
Methods
AddConnection(ConnectionInfo)
Add the connection to the connection storage.
Declaration
public IHttpActionResult AddConnection(ConnectionInfo connectionInfo)
Parameters
Connection Connection model |
Returns
System. An empty result or errors, if any have occurred |
CanConnect(ConnectionInfo)
Retrieves the connection availability for a specified connection string.
Declaration
public IHttpActionResult CanConnect(ConnectionInfo connectionInfo)
Parameters
Connection Connection model |
Returns
System. Boolean result. |
CreateBadRequestResultWithText(String)
Utility function to generate result from text message.
Declaration
protected IHttpActionResult CreateBadRequestResultWithText(string message)
Parameters
System. The message to be used. |
Returns
System.
|
CreateFolder(CreateFolderModel)
Creates the given resource folder
Declaration
public virtual IHttpActionResult CreateFolder(CreateFolderModel model)
Parameters
Create The Create |
Returns
System. |
CreateJsonResponse(Object)
Creates a JSON response from an object.
Declaration
protected IHttpActionResult CreateJsonResponse(object value)
Parameters
System. The object instance. |
Returns
System. A System.Web.Http.IHttpActionResult containing the Json-serialized response. |
CreateJsonResponse(String)
Creates a JSON response from a string value.
Declaration
protected IHttpActionResult CreateJsonResponse(string value)
Parameters
System. The string value. |
Returns
System. A System.Web.Http.IHttpActionResult containing the Json-serialized response. |
CreateNotFoundResultWithText(String)
Creates a JSON response for a NotFound result.
Declaration
protected IHttpActionResult CreateNotFoundResultWithText(string message)
Parameters
System.
|
Returns
System.
|
CreateReportsFolder(CreateFolderModel)
Declaration
public virtual Task<IHttpActionResult> CreateReportsFolder(CreateFolderModel model)
Parameters
Create The model containing the create operation data |
Returns
System. The Resource |
CreateResourceResolver()
Creates a ResourceResolver instance using the storage from the current configuration.
Declaration
protected virtual IResourceResolver CreateResourceResolver()
Returns
CreateResponse(Object, HttpStatusCode)
Utility function to generate a response with provided value and status code.
Declaration
protected IHttpActionResult CreateResponse(object value, HttpStatusCode code)
Parameters
System.
|
System.
|
Returns
System.
|
CreateSharedDataSourceFolder(CreateFolderModel)
CreateSharedDataSourceResolver()
CultureContext()
Returns a set with culture-based properties used in serialization.
Declaration
public virtual IHttpActionResult CultureContext()
Returns
System.
|
DeleteFolder(String)
Deletes the given resource folder
Declaration
public virtual IHttpActionResult DeleteFolder(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System.
|
DeleteReport(String)
Deletes a report from the root folder.
Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DeleteReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DeleteReportAsync method.", true)]
public virtual IHttpActionResult DeleteReport(string reportId)
Parameters
System. The report identifier. |
Returns
System.
|
DeleteReportAsync(String)
Deletes a report from the provided URI.
Declaration
public virtual Task<IHttpActionResult> DeleteReportAsync(string uri)
Parameters
System. The report identifier. |
Returns
System.
|
DeleteReportsFolder(String)
Deletes the given folder at uri
Declaration
public virtual Task<IHttpActionResult> DeleteReportsFolder(string uri)
Parameters
System. The unique report folder identifier (URI) |
Returns
System.
|
DeleteResource(String)
Deletes an existing resource
Declaration
public virtual IHttpActionResult DeleteResource(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System.
|
DeleteSharedDataSource(String)
DeleteSharedDataSourceFolder(String)
DownloadReport(String)
Returns the report from the root folder as a file.
Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DownloadReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.DownloadReportAsync method.", true)]
public virtual IHttpActionResult DownloadReport(string uri)
Parameters
System. The report identifier for which report to download. |
Returns
System. The report as a .trdp or .trdx file. |
DownloadReportAsync(String)
Returns the report as a file.
Declaration
public virtual Task<IHttpActionResult> DownloadReportAsync(string uri)
Parameters
System. The report identifier for which report to download. |
Returns
System. The report as a .trdp or .trdx file. |
Evaluate(ReportItemData)
Evaluates an expression against the report expression context.
Declaration
public IHttpActionResult Evaluate(ReportItemData data)
Parameters
Report
|
Returns
System. A string, representing the evaluating expression. |
ExpressionBuilderParametersHierarchy(Object)
Returns a collection of all parameters.
Declaration
public IHttpActionResult ExpressionBuilderParametersHierarchy(object rawParameters)
Parameters
System.
|
Returns
System. A System.Web.Http.IHttpActionResult containing the parameters collection. |
File(Byte[], String, String)
Returns a File action result with the provided contents.
Declaration
protected IHttpActionResult File(byte[] content, string contentType, string fileName)
Parameters
System.
|
System.
|
System.
|
Returns
System.
|
FolderExists(String)
Determines if a folder exists by using its URI.
Declaration
public virtual IHttpActionResult FolderExists(string uri)
Parameters
System. The unique resource identifier (URI) of the folder. |
Returns
System. |
FolderHasContents(String)
Determines if a folder has contents
Declaration
public virtual IHttpActionResult FolderHasContents(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System. |
FolderNameExists(String)
Determines if a folder exists by using its path with Name identifiers.
Declaration
public virtual IHttpActionResult FolderNameExists(string name)
Parameters
System. The full path to the folders with Name identifiers. |
Returns
System. |
GenerateSqlStatement(GenerateSqlInfo)
Generates SQL statement for the specified query designer model and data connection.
Declaration
public IHttpActionResult GenerateSqlStatement(GenerateSqlInfo generateInfo)
Parameters
Generate Generate SQL info model. |
Returns
System. Generated SQL statement or errors, if any have occurred |
Get(String)
Get the content of a resource file.
Declaration
[Obsolete("Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.Get(string) is obsolete. Please use Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetRawResource(GetRawResourceModel)", false)]
public virtual IHttpActionResult Get(string resourceName)
Parameters
System. The resource file name. |
Returns
System.
|
GetAllByExtension(String)
List all available resource files that match the specified search extension in the resource storage.
Declaration
public virtual IHttpActionResult GetAllByExtension(string extension)
Parameters
System. The resources' extension. |
Returns
System. An array of Resource |
GetComponentBindingPaths(ReportItemDefinitionData)
Gets the component's binding paths available values.
Declaration
public IHttpActionResult GetComponentBindingPaths(ReportItemDefinitionData model)
Parameters
Report
|
Returns
System.
|
GetConnectionsPermissions()
Gets the connections permissions.
Declaration
public IHttpActionResult GetConnectionsPermissions()
Returns
System. |
GetDataConnectionProviders()
Gets a collection of all DB providers.
Declaration
public IHttpActionResult GetDataConnectionProviders()
Returns
System. Db |
GetDataConnections()
Gets a collection of all data connections.
Declaration
public IHttpActionResult GetDataConnections()
Returns
System. Connection |
GetDataModel(ObjectDataSourceInfo)
Returns the data fields schema for the specified object data source.
Declaration
public virtual IHttpActionResult GetDataModel(ObjectDataSourceInfo input)
Parameters
Object
|
Returns
System.
|
GetDbSchema(SchemaRestrictionsInfo)
Retrieves the database schema for the specified data connection.
Declaration
public IHttpActionResult GetDbSchema(SchemaRestrictionsInfo input)
Parameters
Schema Connection model. |
Returns
System. The database schema for the specified data connection or errors, if any have occurred |
GetDefaultComponent(String)
Gets the component's default property store.
Declaration
public virtual IHttpActionResult GetDefaultComponent(string typeName)
Parameters
System. The name of the component type. |
Returns
System.
|
GetDeniedPermissions()
Gets all denied permissions.
Declaration
public virtual IHttpActionResult GetDeniedPermissions()
Returns
System.
|
GetDesignerResource(String, String)
Gets an embedded report viewer resource.
Declaration
public virtual IHttpActionResult GetDesignerResource(string folder, string resourceName)
Parameters
System. The folder in which the resource is. |
System. The name of the resource. |
Returns
System. A System.Web.Http.IHttpActionResult containing the requested resource. |
GetExpressionBuilderHierarchy()
Returns a collection of all static expression builder nodes.
Declaration
public IHttpActionResult GetExpressionBuilderHierarchy()
Returns
System. A System.Web.Http.IHttpActionResult containing the hierarchy. |
GetFolderContents(String)
A list of all available resource files and folders including their details
Declaration
public virtual IHttpActionResult GetFolderContents(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System. |
GetFolderModel(String)
Gets the folder model on a given URI.
Declaration
public virtual IHttpActionResult GetFolderModel(string uri)
Parameters
System. The URI of the folder. |
Returns
System.
|
GetFolderModelByName(String)
Gets the folder model on a given path using Name identifiers
Declaration
public virtual IHttpActionResult GetFolderModelByName(string name)
Parameters
System. The full path to the folders with Name identifiers. |
Returns
System.
|
GetMembers(TypeInfoWithFilter)
Returns a list of all data members for the specified type.
Declaration
public virtual IHttpActionResult GetMembers(TypeInfoWithFilter input)
Parameters
Type
|
Returns
System.
|
GetProceduresSchema(ConnectionInfo)
Retrieves the procedures for the specified data connection.
Declaration
public IHttpActionResult GetProceduresSchema(ConnectionInfo input)
Parameters
Connection Connection model |
Returns
System. The procedures for the specified data connection or errors, if any have occurred |
GetRawResource(String)
Get the content of a resource file.
Declaration
public virtual IHttpActionResult GetRawResource(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System.
|
GetRawResourceByName(String)
Get the content of a resource file using path with Name identifiers.
Declaration
public virtual IHttpActionResult GetRawResourceByName(string name)
Parameters
System. The full path to the resource with Name identifiers. |
Returns
System.
|
GetRawSharedDataSource(String)
GetReport(String)
Gets the report definition from the root folder.
Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.GetReportAsync method.", true)]
public virtual IHttpActionResult GetReport(string reportId)
Parameters
System. The report identifier. |
Returns
System.
|
GetReportAsync(String)
Gets the report definition.
Declaration
public virtual Task<IHttpActionResult> GetReportAsync(string uri)
Parameters
System. The report identifier. |
Returns
System.
|
GetReportBytes(String, IReportDocument)
For internal use only
Declaration
protected byte[] GetReportBytes(string definitionId, IReportDocument report)
Parameters
System. report definition identifier |
IReport report instance |
Returns
System. The bytes of the serialized report. |
GetReportDocument(String, Byte[])
Gets a the report document object by its id and bytes.
Declaration
protected IReportDocument GetReportDocument(string definitionId, byte[] definition)
Parameters
System. The report definition identifier. |
System. The report definition in binary format. |
Returns
IReport IReportDocument. |
GetReportsFolderModel(String)
Gets the folder model on a given URI.
Declaration
public virtual Task<IHttpActionResult> GetReportsFolderModel(string uri)
Parameters
System. The URI of the folder. |
Returns
System. The Resource |
GetReportsInFolder(String)
Lists the first-level folders and report definitions at the provided folder URI.
Declaration
public virtual Task<IHttpActionResult> GetReportsInFolder(string uri = null)
Parameters
System.
|
Returns
System.
|
GetResourceCore(String, String, Type)
Retrieve resources.
Declaration
protected IHttpActionResult GetResourceCore(string folder, string resourceName, Type type = null)
Parameters
System. The folder in which to search for serialized resource. |
System. The name of the resource. |
System. The type of the resource (optional). |
Returns
System. A System.Web.Http.IHttpActionResult containing the response. |
GetResourceFile(String)
Get the content of a resource file by its URI.
Declaration
public virtual IHttpActionResult GetResourceFile(string uri)
Parameters
System. The URI to the resource. |
Returns
System.
|
GetResourceModel(String)
Gets the resource model for the given resource.
Declaration
public virtual IHttpActionResult GetResourceModel(string uri)
Parameters
System. The unique resource identifier (URI) |
Returns
System. |
GetResourceModelByName(String)
Gets the resource model for the given resource.
Declaration
public virtual IHttpActionResult GetResourceModelByName(string name)
Parameters
System. The unique resource identifier (URI) |
Returns
System. |
GetSharedDataSource(String)
GetSharedDataSourceFolderContents(String)
GetSharedDataSourceModel(String)
GetSqlDataModel(DataSourceInfo)
Retrieves the fields data model for the specified data connection.
Declaration
public IHttpActionResult GetSqlDataModel(DataSourceInfo dsi)
Parameters
Data
|
Returns
System. The fields data model for the specified data connection or errors, if any have occurred |
GetSqlParameters(QueryInfoWithParameters)
Retrieves a collection of all SQL parameters.
Declaration
public IHttpActionResult GetSqlParameters(QueryInfoWithParameters queryInfo)
Parameters
Query
|
Returns
System. A collection of all SQL parameters or errors, if any have occurred |
GetSqlPreviewData(PreviewDataInfoWithParameters)
Retrieves a preview of the sql data
Declaration
public IHttpActionResult GetSqlPreviewData(PreviewDataInfoWithParameters commandInfo)
Parameters
Preview
|
Returns
System. A preview of the sql data or errors, if any have occurred |
GetTypeMeasures(TypeInfo)
Returns the data fields schema for the specified type. Used for nested measures.
Declaration
public virtual IHttpActionResult GetTypeMeasures(TypeInfo input)
Parameters
Type
|
Returns
System.
|
GetTypes()
Returns a list of all available types.
Declaration
public virtual IHttpActionResult GetTypes()
Returns
System.
|
GetTypeSchema(String)
Gets the type schema for the requested type.
Declaration
public virtual IHttpActionResult GetTypeSchema(string typeName)
Parameters
System. The name of the type. |
Returns
System.
|
GetTypeSchemas(String[])
Gets a collection of type schemas for the requested types.
Declaration
public virtual IHttpActionResult GetTypeSchemas(string[] typeNames)
Parameters
System. A JSON array containing the type names. |
Returns
System.
|
GetWizardStyleSheets(String)
Returns a list of design-time stylesheets.
Declaration
public virtual IHttpActionResult GetWizardStyleSheets(string typeName)
Parameters
System. The design-time item type name. |
Returns
System. A System.Web.Http.IHttpActionResult containing the wizard style sheets. |
ListFonts()
Lists all available fonts.
Declaration
public virtual IHttpActionResult ListFonts()
Returns
System.
|
MoveFolder(MoveFolderModel)
Moves the given resource folder
Declaration
public virtual IHttpActionResult MoveFolder(MoveFolderModel model)
Parameters
Move The Move |
Returns
System. |
MoveResource(MoveResourceModel)
Moves an existing resource
Declaration
public virtual IHttpActionResult MoveResource(MoveResourceModel model)
Parameters
Move The Move |
Returns
System.
|
OverwriteResource(OverwriteResourceModel)
Overwrites an existing resource
Declaration
public virtual Task<IHttpActionResult> OverwriteResource(OverwriteResourceModel model)
Parameters
Overwrite The Overwrite |
Returns
System. |
PaperSizes()
Lists all available paper kinds with their size.
Declaration
public virtual IHttpActionResult PaperSizes()
Returns
System.
|
Preview(DataSourceInfo)
Returns a preview of the object data source data.
Declaration
public virtual IHttpActionResult Preview(DataSourceInfo dataSourceInfo)
Parameters
Data The object data source model. |
Returns
System.
|
PreviewCsv(DataSourceInfo)
Returns a preview of the contents of a csv file.
Declaration
public virtual IHttpActionResult PreviewCsv(DataSourceInfo dataSourceInfo)
Parameters
Data The CSV data source model. |
Returns
System.
|
PreviewJson(DataSourceInfo)
Returns a preview of the contents of a json file.
Declaration
public virtual IHttpActionResult PreviewJson(DataSourceInfo dataSourceInfo)
Parameters
Data The JSON data source model. |
Returns
System.
|
PreviewWebServiceData(DataSourceInfo)
Returns a preview of the web service data source.
Declaration
public virtual IHttpActionResult PreviewWebServiceData(DataSourceInfo dataSourceInfo)
Parameters
Data The Web service data source model. |
Returns
System.
|
RenameFolder(RenameFolderModel)
Renames the given resource folder
Declaration
public virtual IHttpActionResult RenameFolder(RenameFolderModel model)
Parameters
Rename The Rename |
Returns
System. |
RenameReportAsync(RenameResourceModel)
Declaration
public virtual Task<IHttpActionResult> RenameReportAsync(RenameResourceModel report)
Parameters
Rename The model containing the rename operation data |
Returns
System. The Resource |
RenameReportsFolder(RenameFolderModel)
Declaration
public virtual Task<IHttpActionResult> RenameReportsFolder(RenameFolderModel model)
Parameters
Rename The model containing the rename operation data |
Returns
System. The Resource |
RenameResource(RenameResourceModel)
Renames an existing resource
Declaration
public virtual IHttpActionResult RenameResource(RenameResourceModel model)
Parameters
Rename The Rename |
Returns
System. |
RenameSharedDataSource(RenameResourceModel)
RenameSharedDataSourceFolder(RenameFolderModel)
RenderBarcode(ReportItemData)
Renders a barcode item to PNG and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderBarcode(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes. |
RenderCheckBox(ReportItemData)
Renders a CheckBox item and returns the rendered HTML.
Declaration
public virtual IHttpActionResult RenderCheckBox(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes |
RenderCrossSectionItem(ReportItemData)
Renders a RenderCrossSectionItem item to PNG and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderCrossSectionItem(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes |
RenderGraph(ReportItemData)
Renders a graph item to PNG and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderGraph(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes. |
RenderHtmlTextBox(ReportItemData)
Renders a HtmlTextBox item to PNG and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderHtmlTextBox(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes. |
RenderLinearGauge(ReportItemData)
Renders a Linear Gauge item and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderLinearGauge(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes |
RenderMap(ReportItemData)
Renders a map item to PNG and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderMap(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes. |
RenderPictureBox(ReportItemData)
Renders a PictureBox item to PNG and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderPictureBox(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes |
RenderRadialGauge(ReportItemData)
Renders a Radial Gauge item and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderRadialGauge(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes |
RenderShape(ReportItemData)
Renders a Shape item to PNG and returns the rendered image.
Declaration
public virtual IHttpActionResult RenderShape(ReportItemData model)
Parameters
Report
|
Returns
System. PNG bytes |
ReportExistsAsync(String)
Determines if a report definition exists by its URI.
Declaration
public virtual Task<IHttpActionResult> ReportExistsAsync(string uri)
Parameters
System. The report URI. |
Returns
System.
|
ResourceNameExists(String)
Determines if a resource with the provided name exists.
Declaration
public virtual IHttpActionResult ResourceNameExists(string name)
Parameters
System. The full path to the resource using Name identifiers. |
Returns
System. true, if the resource exists, else false. |
ResourceUriExists(String)
Determines if a resource with the provided URI exists.
Declaration
public virtual IHttpActionResult ResourceUriExists(string uri)
Parameters
System. The URI of the resource. |
Returns
System. true, if the resource exists, else false. |
Save(String)
Creates a new resource.
Declaration
[Obsolete("Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.Save(string) is obsolete. Please use Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.Save(SaveResourceModel)", false)]
public virtual Task<IHttpActionResult> Save(string resourceName)
Parameters
System. The resource file name. |
Returns
System.
|
SaveReport(String, Object)
Creates a new report or updates an existing report.
Declaration
[Obsolete("The virtual method Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.SaveReport is now obsolete. Please use the Telerik.WebReportDesigner.Services.Controllers.ReportDesignerControllerBase.SaveReportAsync method.", true)]
public virtual IHttpActionResult SaveReport(string reportId, object definition)
Parameters
System. The report identifier. |
System. The report definition in JSON format. |
Returns
System.
|
SaveReportByUriAsync(String, Object)
Creates a new report or updates an existing report.
Declaration
public virtual Task<IHttpActionResult> SaveReportByUriAsync(string uri, object definition)
Parameters
System. The report identifier. |
System. The report definition in JSON format. |
Returns
System.
|
SaveResource(SaveResourceModel)
Creates a new resource.
Declaration
public virtual Task<IHttpActionResult> SaveResource(SaveResourceModel model)
Parameters
Save The Save |
Returns
System. |
SaveSharedDataSourceModel(SaveResourceModel)
SearchResources(SearchResourcesModel)
Searches for resources and resource folders
Declaration
public virtual IHttpActionResult SearchResources(SearchResourcesModel model)
Parameters
Search The Search |
Returns
System. |
SharedDataSourceExists(String)
SharedDataSourceFolderExists(String)
SharedDataSourceFolderNameExists(String)
UploadRawSharedDataSource(SaveResourceModel)
UploadReportAsync(String)
Receive a report in file format and saves it to storage
Declaration
public virtual Task<IHttpActionResult> UploadReportAsync(string uri)
Parameters
System.
|
Returns
System.
|