Tellier Benoit created JAMES-2156:
-------------------------------------

             Summary: JPA Attachment Mapper
                 Key: JAMES-2156
                 URL: https://issues.apache.org/jira/browse/JAMES-2156
             Project: James Server
          Issue Type: New Feature
          Components: jpa, mailbox
    Affects Versions: master
            Reporter: Tellier Benoit


Attachments can be stored separately in the mailbox. This allows protocols and 
user defined interfaces to directly interact with attachments.

Nowadays, the JPA mailbox does not support such storage. Your goal is to add 
it. This is a first step to get JPA support for JMAP.

To do so :
 - Implement the *AttachmentMapper* interface in *mailbox-jpa* *mail* package.
 - You can easily check your implementation by writing a 
*JPAAttachmentMapperTest*. To do so, extend the *AttachmentMapperTest* and 
allow Attachment mapper creation in *JPAMapperProvider* (createAttachmentMapper 
method as well as add Attachment to supported capabilities).
 - You need to store attachment ids on JPA messages. Add the related properties 
in *AbstractJPAMailboxMessage*. Then implement 
*MessageWithAttachmentMapperTest* in *JPAMessageWithAttachmentMapperTest* to 
check your work. 
 - *JPAMailboxSessionMapperFactory* should then implement 
*AttachmentMapperFactory*
 - Add the Attachment Message capability as part of *JPAMailboxManager*



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to