private OnmsApplication getApplicationEntity(Integer applicationId) throws NoSuchElementException { Objects.requireNonNull(applicationId); final OnmsApplication application = applicationDao.get(applicationId); if (application == null) { throw new NoSuchElementException("OnmsApplication with id " + applicationId); } return application; }
/** * <p>findApplication</p> * * @param name a {@link java.lang.String} object. * @return a {@link org.opennms.netmgt.model.OnmsApplication} object. */ public OnmsApplication findApplication(String name) { int applicationId = -1; try { applicationId = WebSecurityUtils.safeParseInt(name); } catch (NumberFormatException e) { throw new IllegalArgumentException("parameter 'applicationid' " + "with value '" + name + "' could not be parsed " + "as an integer"); } OnmsApplication application = m_applicationDao.get(applicationId); if (application == null) { throw new IllegalArgumentException("Could not find application " + "with application ID " + applicationId); } return application; }
/** * <p>findApplication</p> * * @param name a {@link java.lang.String} object. * @return a {@link org.opennms.netmgt.model.OnmsApplication} object. */ public OnmsApplication findApplication(String name) { int applicationId = -1; try { applicationId = WebSecurityUtils.safeParseInt(name); } catch (NumberFormatException e) { throw new IllegalArgumentException("parameter 'applicationid' " + "with value '" + name + "' could not be parsed " + "as an integer"); } OnmsApplication application = m_applicationDao.get(applicationId); if (application == null) { throw new IllegalArgumentException("Could not find application " + "with application ID " + applicationId); } return application; }
+ "' is not an integer"); OnmsApplication application = m_applicationDao.get(id); if (application == null) { throw new IllegalArgumentException("application with " + "' is not an integer"); OnmsApplication application = m_applicationDao.get(id); if (application == null) { throw new IllegalArgumentException("application with "
+ "' is not an integer"); OnmsApplication application = m_applicationDao.get(id); if (application == null) { throw new IllegalArgumentException("application with " + "' is not an integer"); OnmsApplication application = m_applicationDao.get(id); if (application == null) { throw new IllegalArgumentException("application with "