org.alfresco.bm.report
Interface ReportService

All Known Implementing Classes:
ReportServiceImpl

public interface ReportService

Service interface providing methods to access results and export it to a given format.

Since:
1.0
Author:
Michael Suzuki

Field Summary
static String CRITERIA_SUCCESS
          Record field indicating successful event completion.
 
Method Summary
 void export(String fileName, int skip, int limit)
          Exports results in a csv format to a file.
 List<String> getEventNames()
          Retrieves distinct collection of event names from the result collection in MongoDB.
 List<EventRecord> getResults(int skip, int limit)
          Retrieves results of a test run from MongoDB.
 

Field Detail

CRITERIA_SUCCESS

static final String CRITERIA_SUCCESS
Record field indicating successful event completion.

See Also:
Constant Field Values
Method Detail

getResults

List<EventRecord> getResults(int skip,
                             int limit)
Retrieves results of a test run from MongoDB.

Parameters:
skip - the number of results to skip (for paging)
limit - the number of results to retrieve
Returns:
Returns all successful recorded results

export

void export(String fileName,
            int skip,
            int limit)
Exports results in a csv format to a file.

Parameters:
file - file name path to write
skip - the number of results to skip (for paging)
limit - the number of results to retrieve

getEventNames

List<String> getEventNames()
Retrieves distinct collection of event names from the result collection in MongoDB.

Returns:
List of distinct string values


Copyright © 2012. All Rights Reserved.