Author: btellier
Date: Tue Sep 22 10:14:05 2015
New Revision: 1704514
URL: http://svn.apache.org/viewvc?rev=1704514&view=rev
Log:
MAILBOX-64 Moving quota related interfaces to a new package
Added:
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/quota/QuotaManager.java
Removed:
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/QuotaManager.java
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
Added:
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/quota/QuotaManager.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/quota/QuotaManager.java?rev=1704514&view=auto
==============================================================================
---
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/quota/QuotaManager.java
(added)
+++
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/quota/QuotaManager.java
Tue Sep 22 10:14:05 2015
@@ -0,0 +1,53 @@
+/****************************************************************
+ * 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.quota;
+
+import org.apache.james.mailbox.MailboxSession;
+import org.apache.james.mailbox.exception.MailboxException;
+import org.apache.james.mailbox.model.Quota;
+
+
+/**
+ * Allows to get quotas for {@link MailboxSession} which are bound to a user.
+ *
+ */
+public interface QuotaManager {
+
+ /**
+ * Return the message count {@link Quota} for the given {@link
MailboxSession} (which in fact is
+ * bound to a user)
+ *
+ * @param session
+ * @return quota
+ * @throws MailboxException
+ */
+ public Quota getMessageQuota(MailboxSession session) throws
MailboxException;
+
+
+ /**
+ * Return the message storage {@link Quota} for the given {@link
MailboxSession} (which in fact is
+ * bound to a user)
+ *
+ * @param session
+ * @return quota
+ * @throws MailboxException
+ */
+ public Quota getStorageQuota(MailboxSession session) throws
MailboxException;
+
+}
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java?rev=1704514&r1=1704513&r2=1704514&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
Tue Sep 22 10:14:05 2015
@@ -25,7 +25,7 @@ import java.util.concurrent.atomic.Atomi
import org.apache.james.mailbox.MailboxListener;
import org.apache.james.mailbox.MailboxSession;
-import org.apache.james.mailbox.QuotaManager;
+import org.apache.james.mailbox.quota.QuotaManager;
import org.apache.james.mailbox.exception.MailboxException;
import org.apache.james.mailbox.model.MailboxPath;
import org.apache.james.mailbox.model.MessageRange;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]