public LookAuroraHelper(HttpSession session) { super(session); delegatedNewsService = DelegatedNewsService.get(); messages = ResourceLocator.getLocalizationBundle( "org.silverpeas.looks.aurora.multilang.lookBundle", getMainSessionController().getFavoriteLanguage()); }
private List<News> getDelegatedNews() { List<News> news = new ArrayList<News>(); List<DelegatedNews> delegatedNews = delegatedNewsService.getAllValidDelegatedNews(); try { for (DelegatedNews delegated : delegatedNews) { if (Administration.get().isComponentAvailable(delegated.getInstanceId(), getUserId())) { News aNews = new News(delegated.getPublicationDetail()); aNews.setPublicationId(delegated.getPublicationDetail().getId()); news.add(aNews); } } } catch (Exception e) { SilverTrace.error("lookAurora", "LookAuroraHelper.getDelegatedNews", "", e); } return news; }