19 package org.turro.attach.search;
21 import java.text.DateFormat;
22 import java.util.Date;
23 import org.amic.util.date.DateFormats;
24 import org.turro.formatter.BytesFormatter;
25 import org.turro.html.FontAwesome;
26 import org.turro.i18n.I_;
34 private final Long id;
35 private final String bytes, modification, icon;
37 public AttachmentNode(Long
id,
long size, Date modification, String extension) {
41 this.modification =
null;
42 this.icon = FontAwesome.getMimeIcon(
"folder");
44 this.bytes =
new BytesFormatter(size).toString();
45 this.modification = DateFormats.format(modification, DateFormat.SHORT,
I_.
api().used());
46 this.icon = FontAwesome.getMimeIcon(extension);
AttachmentNode(Long id, long size, Date modification, String extension)
static I18nApiWrapper api()