@Test @Transactional public void dwoTestGetNodeLabel(){ String nodeLabel = m_nodeLinkService.getNodeLabel(END_POINT1_ID); assertNotNull(nodeLabel); assertEquals("node1", nodeLabel); }
@Transactional(readOnly=true) public String getNodeLabel(int nodeId) { OnmsNode node = m_nodeDao.get(nodeId); if(node != null){ return node.getLabel(); } return null; }
DefaultNodeLinkService implements NodeLinkService, InitializingBean { @Transactional(readOnly=true) public String getNodeLabel(int nodeId) { OnmsNode node = m_nodeDao.get(nodeId); if(node != null){ return node.getLabel(); } return null; } }
DefaultNodeLinkService implements NodeLinkService, InitializingBean { @Transactional(readOnly=true) public String getNodeLabel(int nodeId) { OnmsNode node = m_nodeDao.get(nodeId); if(node != null){ return node.getLabel(); } return null; }  }
DefaultNodeLinkService implements NodeLinkService, InitializingBean { @Transactional(readOnly=true) public String getNodeLabel(int nodeId) { OnmsNode node = m_nodeDao.get(nodeId); if(node != null){ return node.getLabel(); } return null; }  @Override void afterPropertiesSet(); @Transactional void saveLinkState(OnmsLinkState state); @Transactional void createLink(final int nodeParentId, final int nodeId); @Transactional(readOnly=true) Integer getNodeId(String endPoint); @Transactional(readOnly=true) String getNodeLabel(int nodeId); @Transactional(readOnly=true) Collection<DataLinkInterface> getLinkContainingNodeId(int nodeId); @Transactional(readOnly=true) OnmsLinkState getLinkStateForInterface(DataLinkInterface dataLinkInterface); @Transactional void updateLinkStatus(int nodeParentId, int nodeId, String status); @Transactional(readOnly=true) String getPrimaryAddress(int nodeId); @Transactional(readOnly=true) boolean nodeHasEndPointService(int nodeId); @Transactional(readOnly=true) Boolean getEndPointStatus(int nodeId); }
DefaultNodeLinkService implements NodeLinkService, InitializingBean { @Transactional(readOnly=true) public String getNodeLabel(int nodeId) { OnmsNode node = m_nodeDao.get(nodeId); if(node != null){ return node.getLabel(); } return null; }  @Override void afterPropertiesSet(); @Transactional void saveLinkState(OnmsLinkState state); @Transactional void createLink(final int nodeParentId, final int nodeId); @Transactional(readOnly=true) Integer getNodeId(String endPoint); @Transactional(readOnly=true) String getNodeLabel(int nodeId); @Transactional(readOnly=true) Collection<DataLinkInterface> getLinkContainingNodeId(int nodeId); @Transactional(readOnly=true) OnmsLinkState getLinkStateForInterface(DataLinkInterface dataLinkInterface); @Transactional void updateLinkStatus(int nodeParentId, int nodeId, String status); @Transactional(readOnly=true) String getPrimaryAddress(int nodeId); @Transactional(readOnly=true) boolean nodeHasEndPointService(int nodeId); @Transactional(readOnly=true) Boolean getEndPointStatus(int nodeId);  }