Package org.opennms.web.controller.ksc
Class KscReportEditor
- java.lang.Object
-
- org.opennms.web.controller.ksc.KscReportEditor
-
- All Implemented Interfaces:
Serializable
public class KscReportEditor extends Object implements Serializable
KscReportEditor class.
- Version:
- $Id: $
- Author:
- ranger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KscReportEditor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KscReportEditorgetFromSession(javax.servlet.http.HttpSession session, boolean required)getFromSessionGraphgetWorkingGraph()Returns the working graph objectintgetWorkingGraphIndex()Returns the working graph indexReportgetWorkingReport()Returns the working report objectvoidloadNewWorkingReport()Loads a newly created report into the working report object.voidloadWorkingGraph(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 existvoidloadWorkingReport(KSC_PerformanceReportFactory factory, int index)Loads the indexed report into the working report object.voidloadWorkingReport(Report report)Loads the source report into the working report object as a new report.voidloadWorkingReportDuplicate(KSC_PerformanceReportFactory factory, int index)Loads the indexed report into the working report object as a duplicate report.static voidunloadFromSession(javax.servlet.http.HttpSession session)voidunloadWorkingGraph(int requested_graphnum)Unloads the working graph into the working report list at the requested graph number.voidunloadWorkingReport(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
-
-
-
Method Detail
-
getWorkingReport
public Report getWorkingReport()
Returns the working report object- Returns:
- a
Reportobject.
-
getWorkingGraph
public Graph getWorkingGraph()
Returns the working graph object- Returns:
- a
Graphobject.
-
getWorkingGraphIndex
public int getWorkingGraphIndex()
Returns the working graph index- Returns:
- a int.
-
loadWorkingGraph
public 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- Parameters:
index- a int.
-
unloadWorkingGraph
public void unloadWorkingGraph(int requested_graphnum)
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- Parameters:
requested_graphnum- a int.
-
loadWorkingReport
public void loadWorkingReport(Report report)
Loads the source report into the working report object as a new report.- Parameters:
report- aReportobject.
-
loadWorkingReport
public void loadWorkingReport(KSC_PerformanceReportFactory factory, int index)
Loads the indexed report into the working report object.- Parameters:
factory- aKSC_PerformanceReportFactoryobject.index- a int.
-
loadWorkingReportDuplicate
public void loadWorkingReportDuplicate(KSC_PerformanceReportFactory factory, int index)
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.- Parameters:
factory- aKSC_PerformanceReportFactoryobject.index- a int.
-
loadNewWorkingReport
public void loadNewWorkingReport()
Loads a newly created report into the working report object.
-
unloadWorkingReport
public 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- Parameters:
factory- aKSC_PerformanceReportFactoryobject.
-
getFromSession
public static KscReportEditor getFromSession(javax.servlet.http.HttpSession session, boolean required)
getFromSession
- Parameters:
session- aHttpSessionobject.required- a boolean.- Returns:
- a
KscReportEditorobject.
-
unloadFromSession
public static void unloadFromSession(javax.servlet.http.HttpSession session)
-
-