1 5 6 package org.exoplatform.services.communication.message.impl; 7 8 import org.exoplatform.services.communication.message.Attachment; 9 10 18 public class AttachmentImpl implements Attachment{ 19 20 private String id; 21 private String messageId_; 22 private String folderId_ ; 23 private String name_; 24 private byte[] content_; 25 26 29 public String getId() { return id; } 30 public void setId(String id) { this.id = id; } 31 32 35 public String getMessageId() { return messageId_; } 36 public void setMessageId(String messageId) { this.messageId_ = messageId; } 37 38 41 public String getFolderId() { return folderId_; } 42 public void setFolderId(String folderId) { folderId_ = folderId; } 43 44 47 public String getName() { return name_; } 48 public void setName(String name) { this.name_ = name; } 49 50 53 public byte[] getContent() { return content_; } 54 public void setContent(byte[] content) { this.content_ = content; } 55 56 public Attachment cloneAttachment() { 57 AttachmentImpl newAttachment = new AttachmentImpl() ; 58 newAttachment.setName(getName()) ; 59 newAttachment.setContent(getContent()) ; 60 return newAttachment ; 61 } 62 } | Popular Tags |