Class ReportService
- Namespace
- Dynamicweb.Tracking.Reporting
- Assembly
- Dynamicweb.Tracking.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
folderstring- The folder.
Methods
Delete(string)
Delete report
public void Delete(string name)
Parameters
namestring
GetAll()
Gets all reports
public IEnumerable<Report> GetAll()
Returns
GetByName(string)
Gets by name
public Report GetByName(string name)
Parameters
namestring
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
queryReportQuery- The query.
Returns
GetReportData(Report)
Get report data
public DataCollection GetReportData(Report report)
Parameters
reportReport
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
namestring
Returns
IsValidName(string)
Is report name valid
public bool IsValidName(string name)
Parameters
namestring
Returns
Save(Report)
Saves the specified report
public void Save(Report report)
Parameters
reportReport- The analytic report