예제 #1
0
 @Override
 public ObjBase getObject() {
   Attachment.AttachmentDatum d = (AttachmentDatum) getObjBaseDatum();
   Attachment att = new Attachment(d);
   Attachment.convertToFile(d._myFile, this.fileBlob);
   return att;
 }
예제 #2
0
 public AttachmentTable(Attachment a) {
   this.idAttachment = a.getUUID();
   this.fileName = a.getName();
   this.attachmentType = a.getAttachmentTypeAsString();
   this.dateCreated = a.getDateCreated();
   this.lastModified = a.getLastModified();
   if (a.getWiki() != null) {
     this.wikitextTable = new WikitextTable(a.getWiki().getUUID());
   }
   this.fileBlob = a.getBytes();
 }