Class DefaultReportConfigurationProvider
Provider to save and load reporting configuration
Inheritance
Implements
Inherited Members
Namespace: Simplic.Framework.Reporting
Assembly: Simplic.Framework.dll
Syntax
public class DefaultReportConfigurationProvider : IReportConfigurationProvider
Fields
| Improve this Doc View SourceREPORT_REPOSITORY_PATH
Default path for reports
Declaration
public const string REPORT_REPOSITORY_PATH = "/built-in/Reports/"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceDeleteReport(Guid)
Delete report by it's unique id
Declaration
public void DeleteReport(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique id of the report |
GetConfiguration<T>(Guid)
Get configuration by the unique report id
Declaration
public T GetConfiguration<T>(Guid id)
where T : IReportConfiguration
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique id of the report |
Returns
Type | Description |
---|---|
T | If found, instance of the specific report configuration |
Type Parameters
Name | Description |
---|---|
T | IReportConfiguration interface |
GetReportFile(String)
Get the report binary by it's unique report name
Declaration
public byte[] GetReportFile(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Unique name of the report |
Returns
Type | Description |
---|---|
System.Byte[] | Report binaries (e.g. content of trdx) |
GetReportId(String)
Get the id of a report by the unique report name
Declaration
public Guid GetReportId(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Unique string(name) of the report |
Returns
Type | Description |
---|---|
System.Guid | Id of the report, if not found: Empty guid |
GetReportName(Guid)
Get the name of a report by the unique report id
Declaration
public string GetReportName(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique Guid(id) of the report |
Returns
Type | Description |
---|---|
System.String | Name of the report, if not found: null |
GetReportType(Guid)
Get the type of a report
Declaration
public ReportType GetReportType(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique id of the report |
Returns
Type | Description |
---|---|
ReportType | Type of the report (Sql, KeyValue, ...) |
ResolveConnectionString(String)
Resolve a conenction string over the Simplic-DAL system
Declaration
public string ResolveConnectionString(string nameString)
Parameters
Type | Name | Description |
---|---|---|
System.String | nameString | Name or connection string |
Returns
Type | Description |
---|---|
System.String | Valid and complete connection string |
SaveConfiguration<T>(T)
Save report configuration changes
Declaration
public void SaveConfiguration<T>(T configuration)
where T : IReportConfiguration
Parameters
Type | Name | Description |
---|---|---|
T | configuration | Instance of the configuration model |
Type Parameters
Name | Description |
---|---|
T | IReportConfiguration interface |
SaveReportFile(String, Byte[])
Save the report binary by it's unique report name
Declaration
public void SaveReportFile(string name, byte[] report)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Unique name of the report |
System.Byte[] | report | Report binaries (e.g. content of trdx) |