C# Class ASR.Interface.Report

Afficher le fichier Open project: Sitecore/AdvancedSystemReporter Class Usage Examples

Méthodes publiques

Méthode Description
AddFilter ( ASR.DomainObjects.FilterItem filter ) : void

Add a filter to the report

AddScanner ( ASR.DomainObjects.ScannerItem scanner ) : void

Add a Scanner to the report

AddViewer ( ASR.DomainObjects.ViewerItem viewer ) : void

Add a viewer to the report

Filter ( ) : void

Filters the results. All filters are "and" so an item needs to pass all filters to appear on the report.

FlushCache ( ) : void

flush the buffer for the scanner, so next time the report runs, scanner will be queried again.

FlushFilterCache ( ) : void

Flush the cache for the filtered elements, next time the filters will be called again.

GetResultElements ( ) : IEnumerable

Gets the results in this report. Will call Run() if it hasn't been called yet.

GetResultElements ( int start, int count ) : IEnumerable

Gets only a selection of the results elements. Useful for paging.

Report ( ) : System
ResultsCount ( ) : int

Total number of results.

Run ( ) : void

Run the report. It will only requery the Scanner if FlushCache has been used before calling this method.

Private Methods

Méthode Description
IntializeDisplayElement ( object resultItem ) : DisplayElement
ParseDate ( string value ) : object
Sort ( IEnumerable tmp ) : IEnumerable

Method Details

AddFilter() public méthode

Add a filter to the report
public AddFilter ( ASR.DomainObjects.FilterItem filter ) : void
filter ASR.DomainObjects.FilterItem
Résultat void

AddScanner() public méthode

Add a Scanner to the report
public AddScanner ( ASR.DomainObjects.ScannerItem scanner ) : void
scanner ASR.DomainObjects.ScannerItem
Résultat void

AddViewer() public méthode

Add a viewer to the report
public AddViewer ( ASR.DomainObjects.ViewerItem viewer ) : void
viewer ASR.DomainObjects.ViewerItem
Résultat void

Filter() public méthode

Filters the results. All filters are "and" so an item needs to pass all filters to appear on the report.
public Filter ( ) : void
Résultat void

FlushCache() public méthode

flush the buffer for the scanner, so next time the report runs, scanner will be queried again.
public FlushCache ( ) : void
Résultat void

FlushFilterCache() public méthode

Flush the cache for the filtered elements, next time the filters will be called again.
public FlushFilterCache ( ) : void
Résultat void

GetResultElements() public méthode

Gets the results in this report. Will call Run() if it hasn't been called yet.
public GetResultElements ( ) : IEnumerable
Résultat IEnumerable

GetResultElements() public méthode

Gets only a selection of the results elements. Useful for paging.
public GetResultElements ( int start, int count ) : IEnumerable
start int first result to return
count int number of results to return
Résultat IEnumerable

Report() public méthode

public Report ( ) : System
Résultat System

ResultsCount() public méthode

Total number of results.
public ResultsCount ( ) : int
Résultat int

Run() public méthode

Run the report. It will only requery the Scanner if FlushCache has been used before calling this method.
public Run ( ) : void
Résultat void