org.opennms.web.svclayer.support
Class DefaultResourceService
java.lang.Object
org.opennms.web.svclayer.support.DefaultResourceService
- All Implemented Interfaces:
- ResourceService, org.springframework.beans.factory.InitializingBean
public class DefaultResourceService
- extends Object
- implements ResourceService, org.springframework.beans.factory.InitializingBean
- Author:
- DJ Gregor, Mathew Brozowski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResourceService
public DefaultResourceService()
getResourceDao
public ResourceDao getResourceDao()
setResourceDao
public void setResourceDao(ResourceDao resourceDao)
getGraphDao
public GraphDao getGraphDao()
setGraphDao
public void setGraphDao(GraphDao graphDao)
setEventProxy
public void setEventProxy(EventProxy eventProxy)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
getRrdDirectory
public File getRrdDirectory()
- Specified by:
getRrdDirectory in interface ResourceService
findDomainResources
public List<OnmsResource> findDomainResources()
- Specified by:
findDomainResources in interface ResourceService
findNodeResources
public List<OnmsResource> findNodeResources()
- Specified by:
findNodeResources in interface ResourceService
findTopLevelResources
public List<OnmsResource> findTopLevelResources()
- Specified by:
findTopLevelResources in interface ResourceService
findNodeChildResources
public List<OnmsResource> findNodeChildResources(int nodeId)
- Specified by:
findNodeChildResources in interface ResourceService
findDomainChildResources
public List<OnmsResource> findDomainChildResources(String domain)
- Specified by:
findDomainChildResources in interface ResourceService
findChildResources
public List<OnmsResource> findChildResources(OnmsResource resource,
String... resourceTypeMatches)
- Specified by:
findChildResources in interface ResourceService
getResourceById
public OnmsResource getResourceById(String id)
- Specified by:
getResourceById in interface ResourceService
loadResourceById
public OnmsResource loadResourceById(String id)
- Specified by:
loadResourceById in interface ResourceService
getResourceListById
public List<OnmsResource> getResourceListById(String resourceId)
- Specified by:
getResourceListById in interface ResourceService
findPrefabGraphsForResource
public PrefabGraph[] findPrefabGraphsForResource(OnmsResource resource)
- Specified by:
findPrefabGraphsForResource in interface ResourceService
promoteGraphAttributesForResource
public void promoteGraphAttributesForResource(OnmsResource resource)
- Specified by:
promoteGraphAttributesForResource in interface ResourceService
promoteGraphAttributesForResource
public void promoteGraphAttributesForResource(String resourceId)
- Specified by:
promoteGraphAttributesForResource in interface ResourceService
findPrefabGraphsForChildResources
public PrefabGraph[] findPrefabGraphsForChildResources(OnmsResource resource,
String... resourceTypeMatches)
- Specified by:
findPrefabGraphsForChildResources in interface ResourceService
getPrefabGraph
public PrefabGraph getPrefabGraph(String name)
- Specified by:
getPrefabGraph in interface ResourceService
Copyright © 2009. All Rights Reserved.