@Repository public interface NodeDao extends LegacyOnmsDao<OnmsNode,Integer>
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
- String getLocationForId(Integer id)
id
- List<OnmsNode> findByLabel(String label)
findByLabel
label
- a String
object.Collection
object.List<OnmsNode> findByLabelForLocation(String label, String location)
findByLabel
label
- a String
object.location
- 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> findByForeignIdForLocation(String foreignId, String location)
findByForeignIdForLocation
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)
void markHavingFlows(Collection<Integer> ingressIds, Collection<Integer> egressIds)
OnmsNode getDefaultFocusPoint()
Copyright © 2021. All rights reserved.