Package org.opennms.web.controller.ksc
Class KscReportEditor
- java.lang.Object
-
- org.opennms.web.controller.ksc.KscReportEditor
-
- All Implemented Interfaces:
java.io.Serializable
public class KscReportEditor extends java.lang.Object implements java.io.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 KscReportEditor
getFromSession(javax.servlet.http.HttpSession session, boolean required)
getFromSessionGraph
getWorkingGraph()
Returns the working graph objectint
getWorkingGraphIndex()
Returns the working graph indexReport
getWorkingReport()
Returns the working report objectvoid
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 existvoid
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.static void
unloadFromSession(javax.servlet.http.HttpSession session)
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
-
-
-
Method Detail
-
getWorkingReport
public Report getWorkingReport()
Returns the working report object- Returns:
- a
Report
object.
-
getWorkingGraph
public Graph getWorkingGraph()
Returns the working graph object- Returns:
- a
Graph
object.
-
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
- aReport
object.
-
loadWorkingReport
public void loadWorkingReport(KSC_PerformanceReportFactory factory, int index)
Loads the indexed report into the working report object.- Parameters:
factory
- aKSC_PerformanceReportFactory
object.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_PerformanceReportFactory
object.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_PerformanceReportFactory
object.
-
getFromSession
public static KscReportEditor getFromSession(javax.servlet.http.HttpSession session, boolean required)
getFromSession
- Parameters:
session
- aHttpSession
object.required
- a boolean.- Returns:
- a
KscReportEditor
object.
-
unloadFromSession
public static void unloadFromSession(javax.servlet.http.HttpSession session)
-
-