You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2020/12/28 07:43:37 UTC
[james-project] 05/16: JAMES-3469 EmailChangeRepository interface
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit d3bfd8e171ce9ac1e42559f3736931a50b6ed5a6
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Dec 21 11:05:46 2020 +0700
JAMES-3469 EmailChangeRepository interface
---
.../jmap/api/change/EmailChangeRepository.java | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/change/EmailChangeRepository.java b/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/change/EmailChangeRepository.java
new file mode 100644
index 0000000..dd611bb
--- /dev/null
+++ b/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/change/EmailChangeRepository.java
@@ -0,0 +1,38 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
+
+package org.apache.james.jmap.api.change;
+
+import java.util.Optional;
+
+import org.apache.james.jmap.api.model.AccountId;
+
+import reactor.core.publisher.Mono;
+
+public interface EmailChangeRepository {
+ Mono<Void> save(EmailChange change);
+
+ Mono<EmailChanges> getSinceState(AccountId accountId, State state, Optional<Limit> maxIdsToReturn);
+
+ Mono<EmailChanges> getSinceStateWithDelegation(AccountId accountId, State state, Optional<Limit> maxIdsToReturn);
+
+ Mono<State> getLatestState(AccountId accountId);
+
+ Mono<State> getLatestStateWithDelegation(AccountId accountId);
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org