org.opennms.netmgt.config
Class KscReportEditor

java.lang.Object
  extended by org.opennms.netmgt.config.KscReportEditor
All Implemented Interfaces:
Serializable

public class KscReportEditor
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
KscReportEditor()
           
 
Method Summary
static KscReportEditor getFromSession(HttpSession session, boolean required)
           
static Graph getNewGraph()
          Create a new blank graph & initialize it
 Graph getWorkingGraph()
          Returns the working graph object
 int getWorkingGraphIndex()
          Returns the working graph index
 Report getWorkingReport()
          Returns the working report object
 void loadNewWorkingReport()
          Loads a newly created report into the working report object.
 void loadWorkingGraph(int index)
          Loads the indexed graph from the working report into the working graph object or creates a new one if the object does not exist
 void loadWorkingReport(KSC_PerformanceReportFactory factory, int index)
          Loads the indexed report into the working report object.
 void loadWorkingReport(Report report)
          Loads the source report into the working report object as a new report.
 void loadWorkingReportDuplicate(KSC_PerformanceReportFactory factory, int index)
          Loads the indexed report into the working report object as a duplicate report.
 void unloadWorkingGraph(int requested_graphnum)
          Unloads the working graph into the working report list at the requested graph number.
 void unloadWorkingReport(KSC_PerformanceReportFactory factory)
          Unloads the working report into the indexed report list at the point identified by working_index (this should have been set when the working report was loaded), then create a new blank working report
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KscReportEditor

public KscReportEditor()
Method Detail

getWorkingReport

public Report getWorkingReport()
Returns the working report object


getWorkingGraph

public Graph getWorkingGraph()
Returns the working graph object


getWorkingGraphIndex

public int getWorkingGraphIndex()
Returns the working graph index


getNewGraph

public static Graph getNewGraph()
Create a new blank graph & initialize it


loadWorkingGraph

public void loadWorkingGraph(int index)
                      throws org.exolab.castor.xml.MarshalException,
                             org.exolab.castor.xml.ValidationException
Loads the indexed graph from the working report into the working graph object or creates a new one if the object does not exist

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

unloadWorkingGraph

public void unloadWorkingGraph(int requested_graphnum)
                        throws org.exolab.castor.xml.MarshalException,
                               org.exolab.castor.xml.ValidationException
Unloads the working graph into the working report list at the requested graph number. If the graph was modified from an existing graph, then the old one is replaced. A new blank working graph is then created

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

loadWorkingReport

public void loadWorkingReport(Report report)
                       throws org.exolab.castor.xml.MarshalException,
                              org.exolab.castor.xml.ValidationException
Loads the source report into the working report object as a new report.

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

loadWorkingReport

public void loadWorkingReport(KSC_PerformanceReportFactory factory,
                              int index)
                       throws org.exolab.castor.xml.MarshalException,
                              org.exolab.castor.xml.ValidationException
Loads the indexed report into the working report object.

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

loadWorkingReportDuplicate

public void loadWorkingReportDuplicate(KSC_PerformanceReportFactory factory,
                                       int index)
                                throws org.exolab.castor.xml.MarshalException,
                                       org.exolab.castor.xml.ValidationException
Loads the indexed report into the working report object as a duplicate report. The ID in the loaded report will be removed so a new ID will be created when the duplicated report is saved.

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

loadNewWorkingReport

public void loadNewWorkingReport()
Loads a newly created report into the working report object.


unloadWorkingReport

public void unloadWorkingReport(KSC_PerformanceReportFactory factory)
                         throws org.exolab.castor.xml.MarshalException,
                                org.exolab.castor.xml.ValidationException
Unloads the working report into the indexed report list at the point identified by working_index (this should have been set when the working report was loaded), then create a new blank working report

Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

getFromSession

public static KscReportEditor getFromSession(HttpSession session,
                                             boolean required)


Copyright © 2009. All Rights Reserved.