ENTAXY-480 release version 1.8.3
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 * ~~~~~~licensing~~~~~~
 | 
			
		||||
 * connector-impl
 | 
			
		||||
 * ==========
 | 
			
		||||
 * Copyright (C) 2020 - 2021 EmDev LLC
 | 
			
		||||
 * Copyright (C) 2020 - 2023 EmDev LLC
 | 
			
		||||
 * ==========
 | 
			
		||||
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
 * you may not use this file except in compliance with the License.
 | 
			
		||||
@@ -40,5 +40,7 @@ public interface ConnectorService {
 | 
			
		||||
 | 
			
		||||
    Connector addConnector(System system, Connector connector);
 | 
			
		||||
 | 
			
		||||
    Connector addNewConnector(System system, Connector connector);
 | 
			
		||||
 | 
			
		||||
    Connector setBundleEntity(Connector connector, BundleEntity bundleEntity);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * ~~~~~~licensing~~~~~~
 | 
			
		||||
 * connector-impl
 | 
			
		||||
 * ==========
 | 
			
		||||
 * Copyright (C) 2020 - 2021 EmDev LLC
 | 
			
		||||
 * Copyright (C) 2020 - 2023 EmDev LLC
 | 
			
		||||
 * ==========
 | 
			
		||||
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
 * you may not use this file except in compliance with the License.
 | 
			
		||||
@@ -139,6 +139,21 @@ public class ConnectorServiceImpl implements ConnectorService {
 | 
			
		||||
        return connectorEntity;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public Connector addNewConnector(System system, Connector connector) {
 | 
			
		||||
        Connector connectorEntity = getNewConnector(system, connector.getName());
 | 
			
		||||
        if (connectorEntity == null) {
 | 
			
		||||
            connectorEntity = connector;
 | 
			
		||||
            connectorEntity.setSystemId(system.getId());
 | 
			
		||||
            system.getConnectors().add(connectorEntity);
 | 
			
		||||
        } else {
 | 
			
		||||
            connectorEntity.setEditDate(connector.getCreateDate());
 | 
			
		||||
            connectorEntity.setEditedBy(connector.getCreatedBy());
 | 
			
		||||
        }
 | 
			
		||||
        this.saveOrUpdate(system);
 | 
			
		||||
        return connectorEntity;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public Connector setBundleEntity(Connector connector, BundleEntity bundleEntity) {
 | 
			
		||||
        bundleEntity.setVersion(connector.getVersion());
 | 
			
		||||
@@ -177,4 +192,12 @@ public class ConnectorServiceImpl implements ConnectorService {
 | 
			
		||||
        }
 | 
			
		||||
        return null;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private Connector getNewConnector(System system, String name) {
 | 
			
		||||
        for (Connector connector : system.getConnectors()) {
 | 
			
		||||
            if (name.equals(connector.getName()))
 | 
			
		||||
                return connector;
 | 
			
		||||
        }
 | 
			
		||||
        return null;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
  ~~~~~~licensing~~~~~~
 | 
			
		||||
  connector-impl
 | 
			
		||||
  ==========
 | 
			
		||||
  Copyright (C) 2020 - 2021 EmDev LLC
 | 
			
		||||
  Copyright (C) 2020 - 2023 EmDev LLC
 | 
			
		||||
  ==========
 | 
			
		||||
  Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
  you may not use this file except in compliance with the License.
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
  ~~~~~~licensing~~~~~~
 | 
			
		||||
  connector-impl
 | 
			
		||||
  ==========
 | 
			
		||||
  Copyright (C) 2020 - 2021 EmDev LLC
 | 
			
		||||
  Copyright (C) 2020 - 2023 EmDev LLC
 | 
			
		||||
  ==========
 | 
			
		||||
  Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
  you may not use this file except in compliance with the License.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user