org.opennms.netmgt.dao.support
Class PropertiesGraphDao

java.lang.Object
  extended by org.opennms.netmgt.dao.support.PropertiesGraphDao
All Implemented Interfaces:
GraphDao, org.springframework.beans.factory.InitializingBean

public class PropertiesGraphDao
extends Object
implements GraphDao, org.springframework.beans.factory.InitializingBean


Field Summary
static String DEFAULT_GRAPH_LIST_KEY
           
 
Constructor Summary
PropertiesGraphDao()
           
 
Method Summary
 void afterPropertiesSet()
           
 AdhocGraphType createAdhocGraphType(String type, InputStream in)
           
 AdhocGraphType findAdhocByName(String name)
           
 PrefabGraphType findByName(String name)
           
 Map<String,org.springframework.core.io.Resource> getAdhocConfigs()
           
 List<PrefabGraph> getAllPrefabGraphs()
           
 Map<String,org.springframework.core.io.Resource> getPrefabConfigs()
           
 PrefabGraph getPrefabGraph(String name)
           
 PrefabGraph[] getPrefabGraphsForResource(OnmsResource resource)
           
 void loadAdhocProperties(String type, InputStream in)
           
 void loadAdhocProperties(String type, org.springframework.core.io.Resource resource)
           
 void loadProperties(String type, InputStream in)
           
 void loadProperties(String type, org.springframework.core.io.Resource resource)
           
 void setAdhocConfigs(Map<String,org.springframework.core.io.Resource> adhocConfigs)
           
 void setPrefabConfigs(Map<String,org.springframework.core.io.Resource> prefabConfigs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_GRAPH_LIST_KEY

public static final String DEFAULT_GRAPH_LIST_KEY
See Also:
Constant Field Values
Constructor Detail

PropertiesGraphDao

public PropertiesGraphDao()
Method Detail

findByName

public PrefabGraphType findByName(String name)
Specified by:
findByName in interface GraphDao

findAdhocByName

public AdhocGraphType findAdhocByName(String name)
Specified by:
findAdhocByName in interface GraphDao

loadProperties

public void loadProperties(String type,
                           org.springframework.core.io.Resource resource)
                    throws IOException
Throws:
IOException

loadProperties

public void loadProperties(String type,
                           InputStream in)
                    throws IOException
Throws:
IOException

loadAdhocProperties

public void loadAdhocProperties(String type,
                                org.springframework.core.io.Resource resource)
                         throws IOException
Throws:
IOException

loadAdhocProperties

public void loadAdhocProperties(String type,
                                InputStream in)
                         throws IOException
Throws:
IOException

createAdhocGraphType

public AdhocGraphType createAdhocGraphType(String type,
                                           InputStream in)
                                    throws IOException
Throws:
IOException

getAllPrefabGraphs

public List<PrefabGraph> getAllPrefabGraphs()
Specified by:
getAllPrefabGraphs in interface GraphDao

getPrefabGraph

public PrefabGraph getPrefabGraph(String name)
Specified by:
getPrefabGraph in interface GraphDao

getPrefabGraphsForResource

public PrefabGraph[] getPrefabGraphsForResource(OnmsResource resource)
Specified by:
getPrefabGraphsForResource in interface GraphDao

afterPropertiesSet

public void afterPropertiesSet()
                        throws IOException
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
IOException

getAdhocConfigs

public Map<String,org.springframework.core.io.Resource> getAdhocConfigs()

setAdhocConfigs

public void setAdhocConfigs(Map<String,org.springframework.core.io.Resource> adhocConfigs)

getPrefabConfigs

public Map<String,org.springframework.core.io.Resource> getPrefabConfigs()

setPrefabConfigs

public void setPrefabConfigs(Map<String,org.springframework.core.io.Resource> prefabConfigs)


Copyright © 2009. All Rights Reserved.