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 rc...@apache.org on 2020/05/13 02:03:30 UTC
[james-project] 09/09: JAMES-3091 Mailbox/Get POJO
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 88d05d912c647fe4cad7e06d8c68a9d3d60195e6
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Mon May 11 17:42:47 2020 +0700
JAMES-3091 Mailbox/Get POJO
---
.../org/apache/james/jmap/mail/MailboxGet.scala | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/MailboxGet.scala b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/MailboxGet.scala
new file mode 100644
index 0000000..ac2cc8a
--- /dev/null
+++ b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/MailboxGet.scala
@@ -0,0 +1,40 @@
+/****************************************************************
+ * 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.mail
+
+import eu.timepit.refined.types.string.NonEmptyString
+import org.apache.james.jmap.model.AccountId
+import org.apache.james.jmap.model.State.State
+import org.apache.james.mailbox.model.MailboxId
+
+case class Ids(value: List[MailboxId])
+
+case class Properties(value: List[NonEmptyString])
+
+case class MailboxGetRequest(accountId: AccountId,
+ ids: Ids,
+ properties: Option[Properties])
+
+case class NotFound(value: List[MailboxId])
+
+case class MailboxGetResponse(accountId: AccountId,
+ state: State,
+ list: List[Mailbox],
+ notFound: NotFound)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org