Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
Issue #193
  • Loading branch information
rsoika committed Aug 1, 2023
1 parent f23de99 commit 32b6b6d
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 90 deletions.
19 changes: 1 addition & 18 deletions imixs-archive-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,7 @@
</licenses>


<dependencies>
<!-- JEE Dependencies -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
<dependencies>
<dependency>
<groupId>org.imixs.workflow</groupId>
<artifactId>imixs-workflow-core</artifactId>
Expand All @@ -89,16 +82,6 @@
<artifactId>imixs-melman</artifactId>
<scope>compile</scope>
</dependency>


<!-- JSON Parser -->
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<version>1.1</version>
<scope>provided</scope>
</dependency>


</dependencies>

Expand Down
8 changes: 0 additions & 8 deletions imixs-archive-backup/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,6 @@
<artifactId>commons-net</artifactId>
<scope>compile</scope>
</dependency>

<!-- Java EE dependencies -->
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>10.0.0</version>
<scope>provided</scope>
</dependency>

</dependencies>

Expand Down
7 changes: 0 additions & 7 deletions imixs-archive-documents/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
<artifactId>imixs-archive-documents</artifactId>

<dependencies>
<!-- JEE Dependencies -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
<!-- Imixs-Workflow dependencies -->
<dependency>
<groupId>org.imixs.workflow</groupId>
Expand Down
11 changes: 0 additions & 11 deletions imixs-archive-exporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<failOnMissingWebXml>false</failOnMissingWebXml>

<org.imixs.workflow.version>6.0.2</org.imixs.workflow.version>
<jakarta.version>10.0.0</jakarta.version>
<microprofile.version>5.0</microprofile.version>
<microprofile-metrics.version>4.0</microprofile-metrics.version>

Expand Down Expand Up @@ -312,15 +310,6 @@

<dependencies>


<!-- Java EE dependencies -->
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>${jakarta.version}</version>
<scope>provided</scope>
</dependency>

<!-- Microprofile -->
<dependency>
<groupId>org.eclipse.microprofile</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
import java.util.Map;
import java.util.logging.Logger;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.view.ViewScoped;
import javax.inject.Named;

import org.imixs.workflow.ItemCollection;
import org.imixs.workflow.engine.scheduler.SchedulerController;
import org.imixs.workflow.engine.scheduler.SchedulerService;

import jakarta.annotation.PostConstruct;
import jakarta.ejb.EJB;
import jakarta.faces.view.ViewScoped;
import jakarta.inject.Named;

/**
* The DocumentImportController is used to configure the import scheduler.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
import java.util.Map;
import java.util.logging.Logger;

import javax.ejb.EJB;
import javax.enterprise.event.Event;
import javax.inject.Inject;

import org.imixs.workflow.ItemCollection;
import org.imixs.workflow.engine.scheduler.Scheduler;
import org.imixs.workflow.engine.scheduler.SchedulerException;
import org.imixs.workflow.engine.scheduler.SchedulerService;
import org.imixs.workflow.exceptions.QueryException;

import jakarta.ejb.EJB;
import jakarta.enterprise.event.Event;
import jakarta.inject.Inject;

/**
* The DocumentImportScheduler iterates over all source definition and sends a
* DocumentImportEvent to process the source by an external service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
import java.util.Properties;
import java.util.logging.Logger;

import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;

import org.imixs.workflow.ItemCollection;
import org.imixs.workflow.engine.WorkflowService;
import org.imixs.workflow.engine.scheduler.Scheduler;
import org.imixs.workflow.exceptions.PluginException;

import jakarta.ejb.EJB;
import jakarta.ejb.LocalBean;
import jakarta.ejb.Stateless;

/**
* The DocumentImportService provides definitions and methods to process a
* import source.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
import java.util.StringTokenizer;
import java.util.logging.Logger;

import javax.enterprise.event.Observes;
import javax.inject.Inject;
import javax.inject.Named;

import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPSClient;
Expand All @@ -61,6 +57,10 @@
import org.imixs.workflow.exceptions.ProcessingErrorException;
import org.imixs.workflow.exceptions.QueryException;

import jakarta.enterprise.event.Observes;
import jakarta.inject.Inject;
import jakarta.inject.Named;

/**
* The CSVImportService reacts on DocumentImportEvent and importes a CSV file
* form a FTP data source.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
import java.util.Properties;
import java.util.logging.Logger;

import javax.inject.Named;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Store;

import org.imixs.archive.importer.DocumentImportService;
import org.imixs.workflow.ItemCollection;

import jakarta.inject.Named;

/**
* The IMAPBasicAuthenticator authenticates against an Mail store using BASIC
* authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;
import javax.mail.Address;
import javax.mail.BodyPart;
import javax.mail.Folder;
Expand All @@ -67,6 +61,13 @@

import com.sun.mail.imap.IMAPFolder;

import jakarta.ejb.EJB;
import jakarta.ejb.Stateless;
import jakarta.enterprise.event.Observes;
import jakarta.enterprise.inject.Any;
import jakarta.enterprise.inject.Instance;
import jakarta.inject.Inject;

/**
* The EmailImportAdapter scans a IMAP account
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import java.util.Properties;
import java.util.logging.Logger;

import javax.inject.Named;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonReader;
Expand All @@ -49,6 +48,8 @@
import org.imixs.archive.importer.DocumentImportService;
import org.imixs.workflow.ItemCollection;

import jakarta.inject.Named;

/**
* The IMAPOutlookAuthenticator authenticates against Microsoft Outlook using
* OAUTH2.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.mail.BodyPart;
import javax.mail.Message;
import javax.mail.MessagingException;
Expand All @@ -41,6 +39,9 @@
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeUtility;

import jakarta.ejb.LocalBean;
import jakarta.ejb.Stateless;

/**
* The MailConverterService provides methods to convert a Mail Message object
* into a html or pdf document.
Expand Down Expand Up @@ -354,7 +355,7 @@ private MimeBodyPart findMimeBodyPartByID(Multipart mp, String id) throws Messag
* @throws MessagingException
*/
private boolean isImagePart(Part bp, String id) throws MessagingException {
if (bp instanceof javax.mail.internet.MimeBodyPart) {
if (bp instanceof jakarta.mail.internet.MimeBodyPart) {
MimeBodyPart mbp = (MimeBodyPart) bp;
String currentID = mbp.getContentID();
String contentType = mbp.getContentType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@
import java.nio.charset.StandardCharsets;
import java.util.logging.Logger;

import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.mail.Message;
import javax.mail.MessagingException;

import org.imixs.workflow.FileData;
import org.imixs.workflow.ItemCollection;

import jakarta.ejb.EJB;
import jakarta.ejb.LocalBean;
import jakarta.ejb.Stateless;

/**
* The MessageService provides methods attach Message objects as a file to a
* workitem.
Expand Down
10 changes: 0 additions & 10 deletions imixs-archive-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,6 @@

<dependencies>



<!-- Java EE dependencies -->
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>${jakarta.version}</version>
<scope>provided</scope>
</dependency>

<!-- Microprofile -->
<dependency>
<groupId>org.eclipse.microprofile</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
import java.util.Optional;
import java.util.logging.Logger;

import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.ejb.Singleton;
import jakarta.inject.Inject;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManagerFactory;
Expand All @@ -28,14 +24,18 @@

import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.Cluster.Builder;

import com.datastax.driver.core.RemoteEndpointAwareJdkSSLOptions;
import com.datastax.driver.core.SSLOptions;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.exceptions.InvalidQueryException;
import com.datastax.driver.core.policies.DefaultRetryPolicy;
import com.datastax.driver.core.policies.RoundRobinPolicy;

import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.ejb.Singleton;
import jakarta.inject.Inject;

/**
* The ClusterService provides methods to persist the content of a Imixs
* Document into a Cassandra keystore.
Expand Down

0 comments on commit 32b6b6d

Please sign in to comment.