Class ReportService
- Namespace
- Dynamicweb.Tracking.Reporting
- Assembly
- Dynamicweb.Core.dll
The ReportService class providing methods for querying and saving The Report Aggregate to and from persistence.
public class ReportService
- Inheritance
-
ReportService
- Inherited Members
Constructors
ReportService()
Initializes a new instance of the ReportService class.
public ReportService()
ReportService(string)
Initializes a new instance of the ReportService class.
public ReportService(string folder)
Parameters
folder
stringThe folder.
Methods
Delete(string)
Delete report
public void Delete(string name)
Parameters
name
string
GetAll()
Gets all reports
public IEnumerable<Report> GetAll()
Returns
GetByName(string)
Gets by name
public Report? GetByName(string name)
Parameters
name
string
Returns
- Report
The analytic report
GetCampaigns()
Gets the campaigns.
public Dictionary<string, long> GetCampaigns()
Returns
GetData(ReportQuery)
Gets the data.
public DataCollection GetData(ReportQuery query)
Parameters
query
ReportQueryThe query.
Returns
GetReportData(Report)
Get report data
public DataCollection? GetReportData(Report report)
Parameters
report
Report
Returns
GetSourceMediums()
Gets the source mediums.
public Dictionary<string, long> GetSourceMediums()
Returns
GetSourceNames()
Gets the source names.
public Dictionary<string, long> GetSourceNames()
Returns
GetSourceTerm()
Gets the source terms.
public Dictionary<string, long> GetSourceTerm()
Returns
GetSubFolders()
Gets sub folders
public IEnumerable<string> GetSubFolders()
Returns
IsExist(string)
Is report with such name exist
public bool IsExist(string name)
Parameters
name
string
Returns
IsValidName(string)
Is report name valid
public bool IsValidName(string name)
Parameters
name
string
Returns
Save(Report)
Saves the specified report
public void Save(Report report)
Parameters
report
ReportThe analytic report