implemented document creation
this required a major refactoring of the object model
This commit is contained in:
@@ -11,6 +11,7 @@ application{
|
||||
}
|
||||
|
||||
dependencies{
|
||||
implementation(project(":company"))
|
||||
implementation(project(":core"))
|
||||
implementation(project(":documents"))
|
||||
implementation(project(":legacy"))
|
||||
@@ -23,7 +24,6 @@ dependencies{
|
||||
implementation("de.srsoftware:tools.optionals:1.0.0")
|
||||
implementation("de.srsoftware:tools.slf4j2syslog:1.0.1") // this provides a slf4j implementation that forwards to System.Logger
|
||||
implementation("de.srsoftware:tools.util:2.0.3")
|
||||
implementation("org.json:json:20240303")
|
||||
}
|
||||
|
||||
tasks.jar {
|
||||
|
||||
@@ -8,7 +8,8 @@ import static java.lang.System.Logger.Level.INFO;
|
||||
import com.sun.net.httpserver.HttpServer;
|
||||
import de.srsoftware.configuration.JsonConfig;
|
||||
import de.srsoftware.tools.ColorLogger;
|
||||
import de.srsoftware.umbrella.core.UmbrellaException;
|
||||
import de.srsoftware.umbrella.company.CompanyModule;
|
||||
import de.srsoftware.umbrella.core.exceptions.UmbrellaException;
|
||||
import de.srsoftware.umbrella.documents.DocumentApi;
|
||||
import de.srsoftware.umbrella.legacy.LegacyApi;
|
||||
import de.srsoftware.umbrella.message.MessageApi;
|
||||
@@ -49,7 +50,8 @@ public class Application {
|
||||
var server = HttpServer.create(new InetSocketAddress(port), 0);
|
||||
|
||||
var userModule = new UserModule(config,messageSystem);
|
||||
var documentApi = new DocumentApi(userModule, config);
|
||||
var companyModule = new CompanyModule(config, userModule);
|
||||
var documentApi = new DocumentApi(companyModule, config);
|
||||
var legacyApi = new LegacyApi(userModule.userDb(),config);
|
||||
var messageApi = new MessageApi(messageSystem);
|
||||
var webHandler = new WebHandler();
|
||||
|
||||
Reference in New Issue
Block a user