docker compose for usage of mongodb & Login module using mongodb
This commit is contained in:
parent
657a0f9a03
commit
b1d5f53a79
13 changed files with 35 additions and 11 deletions
|
|
@ -1,7 +1,8 @@
|
|||
|
||||
spring.data.mongodb.database=businessProxyDB
|
||||
spring.data.mongodb.host=mongodb:27017
|
||||
|
||||
kie-wb.mainwbintern=http://kie-wb:8080/kie-wb
|
||||
kie-wb.mainwbextern=http://kie-wb:8080/kie-wb
|
||||
server.port=${port:8200}
|
||||
kie-wb.baseurl=http://kie-wb:8080/kie-wb/rest
|
||||
kie-wb.username=admin
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import org.chtijbug.drools.console.service.model.gitlab.GroupElementResponse;
|
|||
import org.chtijbug.drools.console.service.model.gitlab.ProjectMoveResponse;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpMethod;
|
||||
import org.springframework.http.MediaType;
|
||||
|
|
@ -18,6 +19,7 @@ import java.util.List;
|
|||
import java.util.Scanner;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class GitLabRepositoryService {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package org.chtijbug.drools.console.service;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
|
|
@ -9,6 +10,7 @@ import java.io.IOException;
|
|||
import java.io.InputStreamReader;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class GitRepositoryService {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import org.drools.workbench.models.datamodel.rule.InterpolationVariable;
|
|||
import org.drools.workbench.models.guided.template.backend.RuleTemplateModelXMLPersistenceImpl;
|
||||
import org.drools.workbench.models.guided.template.shared.TemplateModel;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.*;
|
||||
|
|
@ -17,6 +18,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class GuidedRuleTemplateExcelService {
|
||||
|
||||
@Value("${adminConsole.tmpdir}")
|
||||
|
|
|
|||
|
|
@ -4,12 +4,14 @@ package org.chtijbug.drools.console.service;
|
|||
import org.chtijbug.drools.proxy.persistence.repository.BusinessTransactionActionRepository;
|
||||
import org.chtijbug.drools.proxy.persistence.repository.BusinessTransactionPersistenceRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class IndexerService {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import org.apache.commons.io.IOUtils;
|
|||
import org.chtijbug.drools.console.service.model.gitlab.GitLabConfigurationData;
|
||||
import org.chtijbug.drools.console.service.model.jenkins.JenkinsConfigurationData;
|
||||
import org.chtijbug.drools.console.service.util.AppContext;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
|
@ -18,6 +19,7 @@ import java.net.URISyntaxException;
|
|||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class JenkinsService {
|
||||
JenkinsServer jenkins = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import org.drools.workbench.models.guided.template.shared.TemplateModel;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.http.*;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.client.RequestCallback;
|
||||
|
|
@ -25,6 +26,7 @@ import java.nio.charset.Charset;
|
|||
import java.util.*;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class KieRepositoryService {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import org.chtijbug.drools.proxy.persistence.repository.ProjectRepository;
|
|||
import org.chtijbug.drools.proxy.persistence.repository.RuntimeRepository;
|
||||
import org.chtijbug.guvnor.server.jaxrs.model.PlatformProjectResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -25,6 +26,7 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class ProjectPersistService {
|
||||
|
||||
public static String PROJECT = "4";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import org.kie.server.api.model.KieServerInfo;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.core.ParameterizedTypeReference;
|
||||
import org.springframework.http.HttpEntity;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
|
|
@ -16,6 +17,7 @@ import org.springframework.stereotype.Service;
|
|||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class RuntimeService {
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,11 @@ package org.chtijbug.drools.console.service;
|
|||
|
||||
import com.vaadin.flow.server.VaadinSession;
|
||||
import org.chtijbug.drools.console.service.model.UserConnected;
|
||||
import org.springframework.context.annotation.DependsOn;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@DependsOn("applicationContext")
|
||||
public class UserConnectedService {
|
||||
|
||||
public static String USER = "1";
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue