| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_GRAPH_LIST_KEY
Constant  
DEFAULT_GRAPH_LIST_KEY="reports" | 
| Constructor and Description | 
|---|
PropertiesGraphDao()
 Constructor for PropertiesGraphDao. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterPropertiesSet()
 afterPropertiesSet 
 | 
AdhocGraphType | 
findAdhocGraphTypeByName(String name)
findAdhocByName 
 | 
PrefabGraphType | 
findPrefabGraphTypeByName(String name)
findByName 
 | 
protected Map<String,org.springframework.core.io.Resource> | 
getAdhocConfigs()
 getAdhocConfigs 
 | 
List<PrefabGraph> | 
getAllPrefabGraphs()
 getAllPrefabGraphs 
 | 
protected Map<String,org.springframework.core.io.Resource> | 
getPrefabConfigs()
 getPrefabConfigs 
 | 
PrefabGraph | 
getPrefabGraph(String name)
getPrefabGraph 
 | 
PrefabGraph[] | 
getPrefabGraphsForResource(OnmsResource resource)
getPrefabGraphsForResource 
 | 
void | 
loadAdhocProperties(String type,
                   InputStream in)
 loadAdhocProperties 
 | 
void | 
loadAdhocProperties(String type,
                   org.springframework.core.io.Resource resource)
createPrefabGraphType
 loadAdhocProperties 
 | 
void | 
loadProperties(String type,
              InputStream in)
 loadProperties 
 | 
void | 
loadProperties(String typeName,
              org.springframework.core.io.Resource resource)
 loadProperties 
 | 
void | 
setAdhocConfigs(Map<String,org.springframework.core.io.Resource> adhocConfigs)
 setAdhocConfigs 
 | 
void | 
setPrefabConfigs(Map<String,org.springframework.core.io.Resource> prefabConfigs)
 setPrefabConfigs 
 | 
public static final String DEFAULT_GRAPH_LIST_KEY
DEFAULT_GRAPH_LIST_KEY="reports"public PropertiesGraphDao()
Constructor for PropertiesGraphDao.
public PrefabGraphType findPrefabGraphTypeByName(String name)
findByName
findPrefabGraphTypeByName in interface GraphDaoname - a String object.PrefabGraphType object.public AdhocGraphType findAdhocGraphTypeByName(String name)
findAdhocByName
findAdhocGraphTypeByName in interface GraphDaoname - a String object.AdhocGraphType object.public void loadProperties(String typeName, org.springframework.core.io.Resource resource) throws IOException
loadProperties
typeName - a String object.resource - a Resource object.IOException - if any.public void loadProperties(String type, InputStream in) throws IOException
loadProperties
Used exclusively by test code. Will ignore an "include.directory" because we don't have a resource/path to do any useful "relative" pathing to. Also anything loaded in this fashion will *not* have auto reloading on changes, because there's no underlying Resource/File to check against. Like, duh!type - a String object.in - a InputStream object.IOException - if any.public void loadAdhocProperties(String type, org.springframework.core.io.Resource resource) throws IOException
createPrefabGraphType loadAdhocProperties
type - a String object.resource - a Resource object.IOException - if any.public void loadAdhocProperties(String type, InputStream in) throws IOException
loadAdhocProperties
type - a String object.in - a InputStream object.IOException - if any.public List<PrefabGraph> getAllPrefabGraphs()
getAllPrefabGraphs
getAllPrefabGraphs in interface GraphDaoList object.public PrefabGraph getPrefabGraph(String name)
getPrefabGraph
getPrefabGraph in interface GraphDaoname - a String object.PrefabGraph object.public PrefabGraph[] getPrefabGraphsForResource(OnmsResource resource)
getPrefabGraphsForResource
getPrefabGraphsForResource in interface GraphDaoresource - a OnmsResource object.PrefabGraph objects.public void afterPropertiesSet()
                        throws IOException
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOException - if any.protected Map<String,org.springframework.core.io.Resource> getAdhocConfigs()
getAdhocConfigs
Map object.public void setAdhocConfigs(Map<String,org.springframework.core.io.Resource> adhocConfigs)
setAdhocConfigs
adhocConfigs - a Map object.protected Map<String,org.springframework.core.io.Resource> getPrefabConfigs()
getPrefabConfigs
Map object.Copyright © 2020. All rights reserved.