org.alfresco.bm.report
Class ReportUtil
java.lang.Object
org.alfresco.bm.report.ReportUtil
public class ReportUtil
- extends Object
Report utility class that exports and formats data to a csv file.
- Since:
- 1.0
- Author:
- Michael Suzuki
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FAILED_LABEL_PREFIX
public static String FAILED_LABEL_PREFIX
ReportUtil
public ReportUtil()
sortHeaders
public static List<String> sortHeaders(List<String> headers)
- Helper method to order header labels of csv file. This order is also used
to help insert data based on the index positions of the header label.
The head labels also include failed results.
- Parameters:
headers - collection of event names to use as labels for header
- Returns:
- collection with a given order where first 2 labels are time and start
formatHeaders
public static String formatHeaders(String names)
- Helper method to format collection of names into a csv format.
- Parameters:
header - collection of event names to use as labels for header
- Returns:
- collection with a given order where first 2 labels are time and
start separated by commas
Copyright © 2012. All Rights Reserved.