Class RecordReport
- java.lang.Object
-
- org.forgerock.openam.core.rest.record.RecordReport
-
public class RecordReport extends Object
Create reports for the logs
-
-
Constructor Summary
Constructors Constructor Description RecordReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDateFromInfoReport(org.forgerock.json.JsonValue jsonRecordProperties)Get Date from info reportStringgetThreadDump()org.forgerock.json.JsonValueinfoReport(Record record)Create the infoReportStringrecordHistoryReport(Record record)Create the history report
-
-
-
Method Detail
-
infoReport
public org.forgerock.json.JsonValue infoReport(Record record)
Create the infoReport- Parameters:
record- the record to build the report from- Returns:
- the information report as a JSON value
-
getDateFromInfoReport
public Date getDateFromInfoReport(org.forgerock.json.JsonValue jsonRecordProperties) throws ParseException, org.forgerock.json.JsonValueException
Get Date from info report- Parameters:
jsonRecordProperties- the JSON info report to extract the date from- Returns:
- the date extracted from the info report
- Throws:
ParseException- if the date cannot be parsedorg.forgerock.json.JsonValueException
-
recordHistoryReport
public String recordHistoryReport(Record record)
Create the history report- Parameters:
record- the record whose history is reported- Returns:
- the history report as a formatted string
-
getThreadDump
public String getThreadDump()
-
-