james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Baechler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAILBOX-268) Make attachment an top-level Entity
Date Thu, 19 May 2016 12:56:12 GMT
Matthieu Baechler created MAILBOX-268:
-----------------------------------------

             Summary: Make attachment an top-level Entity
                 Key: MAILBOX-268
                 URL: https://issues.apache.org/jira/browse/MAILBOX-268
             Project: James Mailbox
          Issue Type: Task
          Components: store
            Reporter: Matthieu Baechler


Attachment should be query-able without any message.
It opens the way to direct download and upload of attachment for Jmap but will also allow
attachment de-duplication in storage.

We should create  AttachmentMapper / AttachmentMapperFactory classes.
AttachmentManager should implement :
{code}
void storeAttachment(Attachment)
Attachment getAttachment(AttachmentId)
{code}

We will propose a cassandra implementation.

Attachment table should looks like :
attachmentId (probably a SHA1), payload, type, size

Some test cases :

Asking for a non referenced AttachmentId should throw.
Asking for a referenced AttachmentId should get the attachment.
Asking for a null AttachmentId should throw. 
Asking for a malformed AttachmentId should throw.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message