Ejemplo n.º 1
0
 private String getFileName(CourseComponent component) {
   StringBuilder sb = new StringBuilder();
   sb.append(component.getPresentationId().replaceAll(" ", "_"));
   if (null != component.getWhen()) {
     sb.append("_");
     sb.append(component.getWhen().replaceAll(" ", "_"));
   }
   return sb.toString();
 }
Ejemplo n.º 2
0
 private String startsText(CourseComponent component) {
   if (null != component.getStartsText() && !component.getStartsText().isEmpty()) {
     return component.getStartsText();
   }
   if (null != component.getStarts()) {
     return new SimpleDateFormat("EEE d MMM yyyy").format(component.getStarts());
   }
   return "";
 }