This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit c75c7dbc27cd053b8442a2a9dc94d46b0c34e59b Author: Rene Cordier <rcord...@linagora.com> AuthorDate: Fri Aug 25 15:40:10 2023 +0700 JAMES-3926 Implement FakeCassandraCurrentQuotaManager --- .../quota/FakeCassandraCurrentQuotaManager.java | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/quota/FakeCassandraCurrentQuotaManager.java b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/quota/FakeCassandraCurrentQuotaManager.java new file mode 100644 index 0000000000..0392af55a9 --- /dev/null +++ b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/quota/FakeCassandraCurrentQuotaManager.java @@ -0,0 +1,69 @@ +/**************************************************************** + * 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.mailbox.cassandra.quota; + +import javax.inject.Inject; + +import org.apache.commons.lang3.NotImplementedException; +import org.apache.james.core.quota.QuotaCountUsage; +import org.apache.james.core.quota.QuotaSizeUsage; +import org.apache.james.mailbox.model.CurrentQuotas; +import org.apache.james.mailbox.model.QuotaOperation; +import org.apache.james.mailbox.model.QuotaRoot; +import org.apache.james.mailbox.quota.CurrentQuotaManager; + +import reactor.core.publisher.Mono; + +public class FakeCassandraCurrentQuotaManager implements CurrentQuotaManager { + @Inject + public FakeCassandraCurrentQuotaManager() { + + } + + @Override + public Mono<QuotaCountUsage> getCurrentMessageCount(QuotaRoot quotaRoot) { + return Mono.error(new NotImplementedException()); + } + + @Override + public Mono<QuotaSizeUsage> getCurrentStorage(QuotaRoot quotaRoot) { + return Mono.error(new NotImplementedException()); + } + + @Override + public Mono<CurrentQuotas> getCurrentQuotas(QuotaRoot quotaRoot) { + return Mono.error(new NotImplementedException()); + } + + @Override + public Mono<Void> increase(QuotaOperation quotaOperation) { + return Mono.error(new NotImplementedException()); + } + + @Override + public Mono<Void> decrease(QuotaOperation quotaOperation) { + return Mono.error(new NotImplementedException()); + } + + @Override + public Mono<Void> setCurrentQuotas(QuotaOperation quotaOperation) { + return Mono.error(new NotImplementedException()); + } +} --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org