Repository: james-project
Updated Branches:
  refs/heads/master 1f390f4f3 -> 21cde6d28


JAMES-2641 MessageMoves should return impactedMailboxIds

This is needed to get the registration keys to dispatch related events


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/8cf25c79
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/8cf25c79
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/8cf25c79

Branch: refs/heads/master
Commit: 8cf25c79fef04218938368d6cedd5798746a7421
Parents: 0947b1b
Author: Benoit Tellier <[email protected]>
Authored: Thu Jan 10 11:18:15 2019 +0700
Committer: Benoit Tellier <[email protected]>
Committed: Thu Jan 17 10:23:40 2019 +0700

----------------------------------------------------------------------
 .../java/org/apache/james/mailbox/model/MessageMoves.java     | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/8cf25c79/mailbox/api/src/main/java/org/apache/james/mailbox/model/MessageMoves.java
----------------------------------------------------------------------
diff --git 
a/mailbox/api/src/main/java/org/apache/james/mailbox/model/MessageMoves.java 
b/mailbox/api/src/main/java/org/apache/james/mailbox/model/MessageMoves.java
index b4ef7ea..a6a9d19 100644
--- a/mailbox/api/src/main/java/org/apache/james/mailbox/model/MessageMoves.java
+++ b/mailbox/api/src/main/java/org/apache/james/mailbox/model/MessageMoves.java
@@ -22,6 +22,7 @@ import java.util.Arrays;
 import java.util.Collection;
 import java.util.Objects;
 import java.util.Set;
+import java.util.stream.Stream;
 
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Sets;
@@ -94,6 +95,12 @@ public class MessageMoves {
         return targetMailboxIds;
     }
 
+    public Stream<MailboxId> impactedMailboxIds() {
+        return Stream.concat(
+            addedMailboxIds().stream(),
+            removedMailboxIds().stream());
+    }
+
     @Override
     public final boolean equals(Object o) {
         if (o instanceof MessageMoves) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to