This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch postgresql
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/postgresql by this push:
     new b229f5faf1 JAMES-2586 Rename JPAAttachmentContentLoader to 
PostgresAttachmentContentLoader
b229f5faf1 is described below

commit b229f5faf1acbe47db400d9fa3e897d179dc2f43
Author: Rene Cordier <[email protected]>
AuthorDate: Thu Dec 7 11:18:58 2023 +0700

    JAMES-2586 Rename JPAAttachmentContentLoader to 
PostgresAttachmentContentLoader
---
 ...achmentContentLoader.java => PostgresAttachmentContentLoader.java} | 4 ++--
 .../apache/james/mailbox/postgres/PostgresMailboxManagerProvider.java | 2 +-
 .../java/org/apache/james/modules/mailbox/PostgresMailboxModule.java  | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/JPAAttachmentContentLoader.java
 
b/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/PostgresAttachmentContentLoader.java
similarity index 88%
rename from 
mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/JPAAttachmentContentLoader.java
rename to 
mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/PostgresAttachmentContentLoader.java
index 02e4bb570d..f78d3e35a9 100644
--- 
a/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/JPAAttachmentContentLoader.java
+++ 
b/mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/PostgresAttachmentContentLoader.java
@@ -26,9 +26,9 @@ import org.apache.james.mailbox.AttachmentContentLoader;
 import org.apache.james.mailbox.MailboxSession;
 import org.apache.james.mailbox.model.AttachmentMetadata;
 
-public class JPAAttachmentContentLoader implements AttachmentContentLoader {
+public class PostgresAttachmentContentLoader implements 
AttachmentContentLoader {
     @Override
     public InputStream load(AttachmentMetadata attachment, MailboxSession 
mailboxSession) {
-        throw new NotImplementedException("JPA doesn't support loading 
attachment separately from Message");
+        throw new NotImplementedException("Postgresql doesn't support loading 
attachment separately from Message");
     }
 }
diff --git 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresMailboxManagerProvider.java
 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresMailboxManagerProvider.java
index d7eca629f6..ac6a948d15 100644
--- 
a/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresMailboxManagerProvider.java
+++ 
b/mailbox/postgres/src/test/java/org/apache/james/mailbox/postgres/PostgresMailboxManagerProvider.java
@@ -70,7 +70,7 @@ public class PostgresMailboxManagerProvider {
             LIMIT_ANNOTATIONS, LIMIT_ANNOTATION_SIZE);
         SessionProviderImpl sessionProvider = new 
SessionProviderImpl(noAuthenticator, noAuthorizator);
         QuotaComponents quotaComponents = 
QuotaComponents.disabled(sessionProvider, mf);
-        MessageSearchIndex index = new SimpleMessageSearchIndex(mf, mf, new 
DefaultTextExtractor(), new JPAAttachmentContentLoader());
+        MessageSearchIndex index = new SimpleMessageSearchIndex(mf, mf, new 
DefaultTextExtractor(), new PostgresAttachmentContentLoader());
 
         return new 
PostgresMailboxManager((PostgresMailboxSessionMapperFactory) mf, 
sessionProvider,
             messageParser, new PostgresMessageId.Factory(),
diff --git 
a/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresMailboxModule.java
 
b/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresMailboxModule.java
index 2d8d79ec7b..8b64558d6a 100644
--- 
a/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresMailboxModule.java
+++ 
b/server/container/guice/mailbox-postgres/src/main/java/org/apache/james/modules/mailbox/PostgresMailboxModule.java
@@ -42,7 +42,7 @@ import org.apache.james.mailbox.acl.UnionMailboxACLResolver;
 import org.apache.james.mailbox.indexer.ReIndexer;
 import org.apache.james.mailbox.model.MailboxId;
 import org.apache.james.mailbox.model.MessageId;
-import org.apache.james.mailbox.postgres.JPAAttachmentContentLoader;
+import org.apache.james.mailbox.postgres.PostgresAttachmentContentLoader;
 import org.apache.james.mailbox.postgres.PostgresMailboxAggregateModule;
 import org.apache.james.mailbox.postgres.PostgresMailboxId;
 import org.apache.james.mailbox.postgres.PostgresMailboxSessionMapperFactory;
@@ -117,7 +117,7 @@ public class PostgresMailboxModule extends AbstractModule {
         bind(Authorizator.class).to(UserRepositoryAuthorizator.class);
         bind(MailboxId.Factory.class).to(PostgresMailboxId.Factory.class);
         bind(MailboxACLResolver.class).to(UnionMailboxACLResolver.class);
-        
bind(AttachmentContentLoader.class).to(JPAAttachmentContentLoader.class);
+        
bind(AttachmentContentLoader.class).to(PostgresAttachmentContentLoader.class);
 
         bind(ReIndexer.class).to(ReIndexerImpl.class);
 


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

Reply via email to