@Repository public interface NodeDao extends LegacyOnmsDao<OnmsNode,Integer>
Modifier and Type | Method and Description |
---|---|
void |
deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
deleteObsoleteInterfaces
|
List<OnmsNode> |
findAll()
Returns a list of nodes ordered by label.
|
List<OnmsNode> |
findAllByCategoryList(Collection<OnmsCategory> categories)
findAllByCategoryList
|
List<OnmsNode> |
findAllByCategoryLists(Collection<OnmsCategory> rowCatNames,
Collection<OnmsCategory> colCatNames)
findAllByCategoryLists
|
List<OnmsNode> |
findAllByVarCharAssetColumn(String columnName,
String columnValue)
findAllByVarCharAssetColumn
|
List<OnmsNode> |
findAllByVarCharAssetColumnCategoryList(String columnName,
String columnValue,
Collection<OnmsCategory> categories)
findAllByVarCharAssetColumnCategoryList
|
List<OnmsNode> |
findAllProvisionedNodes()
findAllProvisionedNodes
|
List<OnmsNode> |
findByCategory(OnmsCategory category)
findByCategory
|
OnmsNode |
findByForeignId(String foreignSource,
String foreignId)
findByForeignId
|
List<OnmsNode> |
findByForeignSource(String foreignSource)
findByForeignSource
|
List<OnmsNode> |
findByForeignSourceAndIpAddress(String foreignSource,
String ipAddress)
findByForeignSourceAndIpAddress
|
List<OnmsNode> |
findByIpAddressAndService(InetAddress ipAddress,
String serviceName) |
List<OnmsNode> |
findByLabel(String label)
findByLabel
|
List<OnmsIpInterface> |
findObsoleteIpInterfaces(Integer nodeId,
Date scanStamp)
findObsoleteIpInterfaces
|
SurveillanceStatus |
findSurveillanceStatusByCategoryLists(Collection<OnmsCategory> rowCategories,
Collection<OnmsCategory> columnCategories) |
OnmsNode |
get(String lookupCriteria)
Get a node based on it's node ID or foreignSource:foreignId
|
Map<Integer,String> |
getAllLabelsById()
Retrieves all of node id/label tuples.
|
Set<String> |
getForeignIdsPerForeignSource(String foreignSource)
getForeignIdsPerForeignSource
|
Map<String,Set<String>> |
getForeignIdsPerForeignSourceMap()
getForeignIdsPerForeignSourceMap
|
Map<String,Integer> |
getForeignIdToNodeIdMap(String foreignSource)
getForeignIdToNodeIdMap
|
OnmsNode |
getHierarchy(Integer id)
getHierarchy
|
String |
getLabelForId(Integer id)
Light weight call to simply get the node label without loading the entire node.
|
Integer |
getNextNodeId(Integer nodeId) |
int |
getNodeCountForForeignSource(String groupName)
getNodeCountForForeignSource
|
Collection<Integer> |
getNodeIds()
getNodeIds
|
Map<String,Long> |
getNumberOfNodesBySysOid()
Retrieves the number of nodes for each sysOid.
|
Integer |
getPreviousNodeId(Integer nodeId) |
void |
updateNodeScanStamp(Integer nodeId,
Date scanStamp)
updateNodeScanStamp
|
countMatching, findMatching
clear, countAll, countMatching, delete, delete, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
OnmsNode get(String lookupCriteria)
lookupCriteria
- the criteria, either the node ID, or a colon-separated string of foreignSource:foreignIdMap<Integer,String> getAllLabelsById()
Map
containing all node ids and their associated labels.String getLabelForId(Integer id)
id
- List<OnmsNode> findByLabel(String label)
findByLabel
label
- a String
object.Collection
object.Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
getForeignIdToNodeIdMap
Map<String,Set<String>> getForeignIdsPerForeignSourceMap()
getForeignIdsPerForeignSourceMap
Map
object.Set<String> getForeignIdsPerForeignSource(String foreignSource)
getForeignIdsPerForeignSource
List<OnmsNode> findAllByVarCharAssetColumn(String columnName, String columnValue)
findAllByVarCharAssetColumn
columnName
- a String
object.columnValue
- a String
object.Collection
object.List<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName, String columnValue, Collection<OnmsCategory> categories)
findAllByVarCharAssetColumnCategoryList
columnName
- a String
object.columnValue
- a String
object.categories
- a Collection
object.Collection
object.List<OnmsNode> findByCategory(OnmsCategory category)
findByCategory
category
- a OnmsCategory
object.Collection
object.List<OnmsNode> findAllByCategoryList(Collection<OnmsCategory> categories)
findAllByCategoryList
categories
- a Collection
object.Collection
object.List<OnmsNode> findAllByCategoryLists(Collection<OnmsCategory> rowCatNames, Collection<OnmsCategory> colCatNames)
findAllByCategoryLists
rowCatNames
- a Collection
object.colCatNames
- a Collection
object.Collection
object.List<OnmsNode> findByIpAddressAndService(InetAddress ipAddress, String serviceName)
int getNodeCountForForeignSource(String groupName)
getNodeCountForForeignSource
groupName
- a String
object.List<OnmsNode> findAllProvisionedNodes()
findAllProvisionedNodes
List
object.List<OnmsIpInterface> findObsoleteIpInterfaces(Integer nodeId, Date scanStamp)
findObsoleteIpInterfaces
void deleteObsoleteInterfaces(Integer nodeId, Date scanStamp)
deleteObsoleteInterfaces
Collection<Integer> getNodeIds()
getNodeIds
Collection
object.List<OnmsNode> findByForeignSourceAndIpAddress(String foreignSource, String ipAddress)
findByForeignSourceAndIpAddress
Map<String,Long> getNumberOfNodesBySysOid()
Map
containing the number of nodes for each sysOidSurveillanceStatus findSurveillanceStatusByCategoryLists(Collection<OnmsCategory> rowCategories, Collection<OnmsCategory> columnCategories)
Copyright © 2017. All rights reserved.