Esri Geoportal Server
1.0

com.esri.gpt.control.harvest
Class ReportViewer

java.lang.Object
  extended by com.esri.gpt.control.harvest.ReportViewer

public class ReportViewer
extends Object

Provides functionality to view report. It parses the report and extracts two sections: Summary, and Details. Each section is capable to render appropriate HTML code.


Nested Class Summary
static class ReportViewer.Details
          Report details.
static interface ReportViewer.ISection
          Reports section.
static class ReportViewer.Summary
          Report summary.
 
Constructor Summary
ReportViewer()
          Creates instance of the viewer.
ReportViewer(RequestContext context, HeRecord record)
          Creates instance of the viewer.
 
Method Summary
 ReportViewer.ISection[] getAllSections()
          Gets all report sections.
 ReportViewer.Details getDetails()
          Gets report details.
 HeRecord getRecord()
          Gets record.
 RequestContext getRequestContext()
          Gets request context
 ReportViewer.Summary getSummary()
          Gets report summary.
 void setDetails(ReportViewer.Details details)
          Sets details.
 void setRecord(HeRecord record)
          Sets record.
 void setRequestContext(RequestContext context)
          Sets request context
 void setSummary(ReportViewer.Summary summary)
          Sets summary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportViewer

public ReportViewer(RequestContext context,
                    HeRecord record)
Creates instance of the viewer.

Parameters:
context - request context
record - event record

ReportViewer

public ReportViewer()
Creates instance of the viewer.

Method Detail

getRequestContext

public RequestContext getRequestContext()
Gets request context

Returns:
request context

setRequestContext

public void setRequestContext(RequestContext context)
Sets request context

Parameters:
context - request context

getRecord

public HeRecord getRecord()
Gets record.

Returns:
record

setRecord

public void setRecord(HeRecord record)
Sets record.

Parameters:
record - record

getAllSections

public ReportViewer.ISection[] getAllSections()
Gets all report sections.

Returns:
array of sections

getSummary

public ReportViewer.Summary getSummary()
Gets report summary.

Returns:
report summary

setSummary

public void setSummary(ReportViewer.Summary summary)
Sets summary.

Parameters:
summary - summary

getDetails

public ReportViewer.Details getDetails()
Gets report details.

Returns:
report details

setDetails

public void setDetails(ReportViewer.Details details)
Sets details.

Parameters:
details - details

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.