public class DefaultResourceService extends Object implements ResourceService, org.springframework.beans.factory.InitializingBean
DefaultResourceService class.
| Constructor and Description |
|---|
DefaultResourceService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
List<OnmsResource> |
findChildResources(OnmsResource resource,
String... resourceTypeMatches)
findChildResources
|
List<OnmsResource> |
findDomainChildResources(String domain)
findDomainChildResources
|
List<OnmsResource> |
findNodeChildResources(int nodeId)
findNodeChildResources
|
List<OnmsResource> |
findNodeChildResources(OnmsNode node)
findNodeChildResources
|
List<OnmsResource> |
findNodeSourceChildResources(String nodeSource)
findNodeSourceChildResources
|
PrefabGraph[] |
findPrefabGraphsForChildResources(OnmsResource resource,
String... resourceTypeMatches)
findPrefabGraphsForChildResources
|
PrefabGraph[] |
findPrefabGraphsForResource(OnmsResource resource)
findPrefabGraphsForResource
|
List<OnmsResource> |
findTopLevelResources()
findTopLevelResources
|
GraphDao |
getGraphDao()
getGraphDao
|
PrefabGraph |
getPrefabGraph(String name)
getPrefabGraph
|
OnmsResource |
getResourceById(ResourceId id)
getResourceById
|
ResourceDao |
getResourceDao()
getResourceDao
|
void |
promoteGraphAttributesForResource(OnmsResource resource)
promoteGraphAttributesForResource
|
void |
promoteGraphAttributesForResource(ResourceId resourceId)
promoteGraphAttributesForResource
|
void |
setEventProxy(EventProxy eventProxy)
setEventProxy
|
void |
setGraphDao(GraphDao graphDao)
setGraphDao
|
void |
setResourceDao(ResourceDao resourceDao)
setResourceDao
|
public ResourceDao getResourceDao()
getResourceDao
ResourceDao object.public void setResourceDao(ResourceDao resourceDao)
setResourceDao
resourceDao - a ResourceDao object.public void setGraphDao(GraphDao graphDao)
setGraphDao
graphDao - a GraphDao object.public void setEventProxy(EventProxy eventProxy)
setEventProxy
eventProxy - a EventProxy object.public void afterPropertiesSet()
throws Exception
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - if any.public List<OnmsResource> findTopLevelResources()
findTopLevelResources
findTopLevelResources in interface ResourceServiceList object.public List<OnmsResource> findNodeChildResources(OnmsNode node)
findNodeChildResources
findNodeChildResources in interface ResourceServicenode - a OnmsNode object.List object.public List<OnmsResource> findNodeChildResources(int nodeId)
findNodeChildResources
findNodeChildResources in interface ResourceServicenodeId - a int.List object.public List<OnmsResource> findDomainChildResources(String domain)
findDomainChildResources
findDomainChildResources in interface ResourceServicedomain - a String object.List object.public List<OnmsResource> findNodeSourceChildResources(String nodeSource)
findNodeSourceChildResources
findNodeSourceChildResources in interface ResourceServicenodeSource - a String object.List object.public List<OnmsResource> findChildResources(OnmsResource resource, String... resourceTypeMatches)
findChildResources
findChildResources in interface ResourceServiceresource - a OnmsResource object.resourceTypeMatches - a String object.List object.public OnmsResource getResourceById(ResourceId id)
getResourceById
getResourceById in interface ResourceServiceid - a String object.OnmsResource object.public PrefabGraph[] findPrefabGraphsForResource(OnmsResource resource)
findPrefabGraphsForResource
findPrefabGraphsForResource in interface ResourceServiceresource - a OnmsResource object.PrefabGraph objects.public void promoteGraphAttributesForResource(OnmsResource resource)
promoteGraphAttributesForResource
promoteGraphAttributesForResource in interface ResourceServiceresource - a OnmsResource object.public void promoteGraphAttributesForResource(ResourceId resourceId)
promoteGraphAttributesForResource
promoteGraphAttributesForResource in interface ResourceServiceresourceId - a String object.public PrefabGraph[] findPrefabGraphsForChildResources(OnmsResource resource, String... resourceTypeMatches)
findPrefabGraphsForChildResources
findPrefabGraphsForChildResources in interface ResourceServiceresource - a OnmsResource object.resourceTypeMatches - a String object.PrefabGraph objects.public PrefabGraph getPrefabGraph(String name)
getPrefabGraph
getPrefabGraph in interface ResourceServicename - a String object.PrefabGraph object.Copyright © 2022. All rights reserved.