/** {@inheritDoc} */ public List getResult(RequestContext context) { User user = context.getCurrentUser(); Long sid = context.getRequiredParam("sid"); String type = context.getParam(SELECTOR, false); String synopsis = ""; Boolean currency = false; LocalizationService ls = LocalizationService.getInstance(); String eType = new String(); if (ls.getMessage(SECUR_CRIT).equals(type)) { eType = ErrataFactory.ERRATA_TYPE_SECURITY; synopsis = "C"; currency = true; } else if (ls.getMessage(SECUR_IMP).equals(type)) { eType = ErrataFactory.ERRATA_TYPE_SECURITY; synopsis = "I"; currency = true; } else if (ls.getMessage(SECUR_MOD).equals(type)) { eType = ErrataFactory.ERRATA_TYPE_SECURITY; synopsis = "M"; currency = true; } else if (ls.getMessage(SECUR_LOW).equals(type)) { eType = ErrataFactory.ERRATA_TYPE_SECURITY; synopsis = "L"; currency = true; } if (currency) { return SystemManager.relevantCurrencyErrata(user, sid, eType, synopsis); } List<String> typeList = getTypes(type); return SystemManager.relevantErrata(user, sid, typeList); }