public String getYear(AbstractPost post) { for (String year : getYears()) { for (Keyword keyword : post.getKeywords()) { if (StringUtils.equalsIgnoreCase(year, keyword.getName())) { return year; } } } return ""; }
public List<String> getGrades(AbstractPost post) { List<String> grades = new ArrayList<String>(); for (String grade : getGrades()) { for (Keyword keyword : post.getKeywords()) { if (StringUtils.equalsIgnoreCase(grade, keyword.getName())) { grades.add(grade); } } } return grades; }
public String getFlashCardImageLink(AbstractPost post) { String localPath = deploymentContext.imageLocation(); localPath += FLASH_CARDS_FOLDER + "/" + post.getUuid() + ".jpg"; return getLink(localPath); }
public String getLessonPlanImageLink(AbstractPost post) { String localPath = deploymentContext.imageLocation(); localPath += LESSON_PLAN_FOLDER + "/" + post.getUuid() + ".jpg"; return getLink(localPath); }