Package org.opennms.netmgt.dao.api
Interface ResourceDao
-
- All Known Implementing Classes:
DefaultResourceDao
,MockResourceDao
public interface ResourceDao
ResourceDao interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deleteResourceById(ResourceId resourceId)
Deletes the resource identified by the given resource ID.List<OnmsResource>
findTopLevelResources()
findTopLevelResourcesOnmsResource
getResourceById(ResourceId id)
getResourceByIdOnmsResource
getResourceForNode(OnmsNode node)
getResourceForNodeResourceId
getResourceId(CollectionResource resource, long nodeId)
Collection<OnmsResourceType>
getResourceTypes()
getResourceTypes
-
-
-
Method Detail
-
getResourceTypes
Collection<OnmsResourceType> getResourceTypes()
getResourceTypes
- Returns:
- a
Collection
object.
-
findTopLevelResources
List<OnmsResource> findTopLevelResources()
findTopLevelResources
- Returns:
- a
List
object.
-
getResourceById
OnmsResource getResourceById(ResourceId id)
getResourceById
- Parameters:
id
- aString
object.- Returns:
- a
OnmsResource
object.
-
getResourceForNode
OnmsResource getResourceForNode(OnmsNode node)
getResourceForNode
- Parameters:
node
- aOnmsNode
object.- Returns:
- a
OnmsResource
object.
-
deleteResourceById
boolean deleteResourceById(ResourceId resourceId)
Deletes the resource identified by the given resource ID.- Parameters:
resourceId
- the ID of the resource to delete- Returns:
true
iff, the resource was found and deleted
-
getResourceId
ResourceId getResourceId(CollectionResource resource, long nodeId)
-
-