public class MockResourceDao extends Object implements ResourceDao
| Constructor and Description |
|---|
MockResourceDao() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteResourceById(String resourceId)
Deletes the resource identified by the given resource ID.
|
List<OnmsResource> |
findTopLevelResources()
findTopLevelResources
|
OnmsResource |
getResourceById(String id)
getResourceById
|
OnmsResource |
getResourceForIpInterface(OnmsIpInterface ipInterface,
OnmsLocationMonitor locationMonitor)
getResourceForIpInterface
|
OnmsResource |
getResourceForNode(OnmsNode node)
getResourceForNode
|
Collection<OnmsResourceType> |
getResourceTypes()
getResourceTypes
|
public Collection<OnmsResourceType> getResourceTypes()
ResourceDaogetResourceTypes
getResourceTypes in interface ResourceDaoCollection object.public OnmsResource getResourceById(String id)
ResourceDaogetResourceById
getResourceById in interface ResourceDaoid - a String object.OnmsResource object.public List<OnmsResource> findTopLevelResources()
ResourceDaofindTopLevelResources
findTopLevelResources in interface ResourceDaoList object.public OnmsResource getResourceForNode(OnmsNode node)
ResourceDaogetResourceForNode
getResourceForNode in interface ResourceDaonode - a OnmsNode object.OnmsResource object.public OnmsResource getResourceForIpInterface(OnmsIpInterface ipInterface, OnmsLocationMonitor locationMonitor)
ResourceDaogetResourceForIpInterface
getResourceForIpInterface in interface ResourceDaoipInterface - a OnmsIpInterface object.locationMonitor - a OnmsLocationMonitor object.OnmsResource object.public boolean deleteResourceById(String resourceId)
ResourceDaodeleteResourceById in interface ResourceDaoresourceId - the ID of the resource to deletetrue iff, the resource was found and deletedCopyright © 2017. All rights reserved.