public class MemorizedItemManager extends BasePropertyChangeReporter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GRAPH_MEMORIZED
Property change event name for when a graph was memorized.
|
static java.lang.String |
GRAPH_NAME_CHANGED
Property change event name for when the name of a graph was changed.
|
static java.lang.String |
GRAPH_REMOVED
Property change event name for when a memorized graph was removed.
|
static java.lang.String |
REPORT_MEMORIZED
Property change event name for when a report was memorized.
|
static java.lang.String |
REPORT_NAME_CHANGED
Property change event name for when the name of a report was changed.
|
static java.lang.String |
REPORT_REMOVED
Property change event name for when a memorized report was removed.
|
_eventNotify, ALL_PROPERTIES| Constructor and Description |
|---|
MemorizedItemManager(RootAccount rootAccount)
Constructor to allow the data file to be an immutable field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeMemorizedGraphName(java.lang.String oldName,
java.lang.String newName)
Modify a memorized graph's name.
|
void |
changeMemorizedReportName(java.lang.String oldName,
java.lang.String newName)
Modify a memorized report's name.
|
java.lang.String |
getGraphClassFromUri(java.lang.String graphUri)
Given a graph URI, return the class name of the underlying graph object.
|
java.lang.String |
getGraphURI(java.lang.String graphName)
Given a memorized graph name, return the URI associated with that graph.
|
java.lang.String |
getGraphURIFromSettings(StreamTable graphSettings)
Given a memorized graph settings table, return the URI associated with that graph.
|
java.util.Map<java.lang.String,StreamTable> |
getMemorizedGraphs()
Read the user's memorized graphs settings from the current data file.
|
java.util.Map<java.lang.String,StreamTable> |
getMemorizedReports()
Read the user's memorized reports settings from the current data file.
|
java.lang.String |
getReportClassFromUri(java.lang.String reportUri)
Given a report URI, return the class name of the underlying graph object.
|
java.lang.String |
getReportURI(java.lang.String reportName)
Given a memorized report name, return the URI associated with that report.
|
java.lang.String |
getReportURIFromSettings(StreamTable reportSettings)
Given a memorized report settings table, return the URI associated with that report.
|
void |
memorizeGraph(java.lang.String graphName,
java.lang.String graphURI)
Save a memorized graph.
|
void |
memorizeReport(java.lang.String reportName,
java.lang.String reportURI)
Save a memorized report.
|
void |
removeMemorizedGraph(java.lang.String graphName)
Remove a memorized graph.
|
void |
removeMemorizedReport(java.lang.String reportName)
Remove a memorized report.
|
addPropertyChangeListener, notifyAllListeners, removePropertyChangeListenerpublic static final java.lang.String REPORT_NAME_CHANGED
public static final java.lang.String REPORT_MEMORIZED
public static final java.lang.String REPORT_REMOVED
public static final java.lang.String GRAPH_NAME_CHANGED
public static final java.lang.String GRAPH_MEMORIZED
public static final java.lang.String GRAPH_REMOVED
public MemorizedItemManager(RootAccount rootAccount)
rootAccount - The associated data file.public void removeMemorizedGraph(java.lang.String graphName)
graphName - The name of the memorized graph to remove.public void changeMemorizedGraphName(java.lang.String oldName,
java.lang.String newName)
oldName - The previous name of the memorized graph.newName - The new, valid name for the same graph.public void memorizeGraph(java.lang.String graphName,
java.lang.String graphURI)
graphName - The name of the graph to memorize.graphURI - The graph parameters to save.public java.lang.String getGraphURI(java.lang.String graphName)
graphName - The unique name of the memorized graph.null if the graph cannot be found.public java.lang.String getGraphURIFromSettings(StreamTable graphSettings)
graphSettings - The settings for the memorized graph.public java.util.Map<java.lang.String,StreamTable> getMemorizedGraphs()
public java.lang.String getGraphClassFromUri(java.lang.String graphUri)
graphUri - The URI for the graph.null if not found.public void removeMemorizedReport(java.lang.String reportName)
reportName - The name of the memorized report to remove.public void changeMemorizedReportName(java.lang.String oldName,
java.lang.String newName)
oldName - The previous name of the memorized report.newName - The new, valid name for the same report.public void memorizeReport(java.lang.String reportName,
java.lang.String reportURI)
reportName - The name of the report to memorize.reportURI - The report parameters to save.public java.lang.String getReportURI(java.lang.String reportName)
reportName - The unique name of the memorized report.null if the report cannot be found.public java.lang.String getReportURIFromSettings(StreamTable reportSettings)
reportSettings - The settings for the memorized report.public java.util.Map<java.lang.String,StreamTable> getMemorizedReports()
public java.lang.String getReportClassFromUri(java.lang.String reportUri)
reportUri - The URI for the report.null if not found.