You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Rene Cordier (JIRA)" <se...@james.apache.org> on 2019/01/18 08:11:00 UTC

[jira] [Commented] (JAMES-2646) Aliases: listSources Cassandra version: DAO

    [ https://issues.apache.org/jira/browse/JAMES-2646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16745874#comment-16745874 ] 

Rene Cordier commented on JAMES-2646:
-------------------------------------

PR : https://github.com/linagora/james-project/pull/2115

> Aliases: listSources Cassandra version: DAO
> -------------------------------------------
>
>                 Key: JAMES-2646
>                 URL: https://issues.apache.org/jira/browse/JAMES-2646
>             Project: James Server
>          Issue Type: New Feature
>          Components: cassandra, RRT
>            Reporter: Rene Cordier
>            Priority: Major
>
> Implement a CassandraMappingsSourcesDAO in `server/data/data-cassandra` `rrt package`
> We should be able to:
> * add a mapping to source association
> * remove a mapping to source association
> * list sources associated to a mapping
> You will represent the data as:
> * Primary Key: (mappingType: text, mappingValue: text (mail address))
> * Column: source: text mail address
> * Create the interface for defining table names
> * Register the new module in the RRT Cassandra module
> * Implement your DAO and related -unit- test
> Finally, you will plug your DAO in CassandraRecipientRewriteTable - only add+remove - migration is needed for safely delegating `listSources` to your DAO. Add a small test to demonstrate CassandraRecipientRewriteTable is updating your DAO.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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