@Override public Map<Integer, LocalPage> getCategories(Language language, int articleId) throws DaoException { Collection<Integer> categoryIds = getCategoryIds(language, articleId); return localPageDao.getByIds(language, categoryIds); }
@Override public Map<Integer, LocalPage> getCategories(LocalPage localArticle) throws DaoException { Collection<Integer> categoryIds = getCategoryIds(localArticle); return localPageDao.getByIds(localArticle.getLanguage(), categoryIds); }
@Override public Collection<Integer> getCategoryIds(LocalPage localArticle) throws DaoException { return getCategoryIds(localArticle.getLanguage(), localArticle.getLocalId()); }
for (int catId : getCategoryIds(language, pageId)) { int i = graph.catIdToIndex(catId); if (i >= 0) frontier.add(new CatCost(null, -1, i, graph.catCosts[i]));