ENTAXY-480 release version 1.8.3

This commit is contained in:
2023-08-03 04:44:09 +03:00
parent 603889d627
commit 5844a2e5cf
2546 changed files with 11242 additions and 207556 deletions

View File

@ -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);
}

View File

@ -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;
}
}

View File

@ -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.

View File

@ -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.