/** {@inheritDoc} */ @Override public Set<OnmsMonitoredService> findByApplication(OnmsApplication application) { return application.getMonitoredServices(); }
/** {@inheritDoc} */ @Override public OnmsApplication addNewApplication(String name) { OnmsApplication application = new OnmsApplication(); application.setName(name); m_applicationDao.save(application); return application; }
@Override public String getApplicationName() { return m_entity.getName(); }
@Override public Integer getId(final OnmsApplication app) { return app.getId(); }
OnmsApplication application = new OnmsApplication(); if (applicationName == null) { if (!sortedApplications.isEmpty()) {
@Override public int hashCode() { return getEntity().hashCode(); }
@Override protected Integer getId(OnmsApplication bean) { return bean == null ? null : bean.getId(); }
OnmsApplication application = new OnmsApplication(); if (applicationName == null) { if (!sortedApplications.isEmpty()) {
/** * <p>addMonitoredService</p> * * @param service a {@link org.opennms.netmgt.model.OnmsMonitoredService} object. * @since 1.8.1 */ public void addMonitoredService(OnmsMonitoredService service) { getMonitoredServices().add(service); }
@Override public int getId() { return m_entity.getId(); }
/** {@inheritDoc} */ @Override public OnmsApplication addNewApplication(String name) { OnmsApplication application = new OnmsApplication(); application.setName(name); m_applicationDao.save(application); return application; }
/** {@inheritDoc} */ @Override public int hashCode() { return getName().hashCode(); }
public static Set<String> getReductionKeys(final OnmsApplication application) { Objects.requireNonNull(application); Set<String> reductionKeys = new HashSet<>(); for (OnmsMonitoredService monitoredService : application.getMonitoredServices()) { reductionKeys.addAll(getReductionKeys(monitoredService)); } return reductionKeys; }
@Override protected Integer getId(OnmsApplication bean) { return bean == null ? null : bean.getId(); }