Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web2): Updated web2 for the new network service #4353

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

pierantoniomerlino
Copy link
Contributor

Note: We are using the Conventional Commits convention for our pull request titles. Please take a look at the PR title format document for the supported types and scopes.

This PR updates the web2 bundle for the new network services that will be implemented in #4326.
The code is developed by @marcellorinaldo and I've only extracted it from the #4326 and put in a separate PR.

Related Issue: This PR fixes/closes N/A

Description of the solution adopted: In order to be compatible with the old network services, the GwtNetworkServiceImplFacade is used to hide the implementation. If the NetworkAdminService is found, the old GwtNetworkServiceImpl will be used. If, instead, it is not present, the new GwtNetworkServiceImpl and the new NetworkStatusService will be used for retrieving the network configuration and status.

Signed-off-by: pierantoniomerlino [email protected]

@@ -50,8 +50,7 @@
import org.eclipse.kura.web.server.GwtKeystoreServiceImpl;
import org.eclipse.kura.web.server.GwtLogServiceImpl;
import org.eclipse.kura.web.server.GwtLoginInfoServiceImpl;
import org.eclipse.kura.web.server.GwtNetworkServiceImpl;
import org.eclipse.kura.web.server.GwtPackageServiceImpl;
import org.eclipse.kura.web.server.GwtNetworkServiceImplFacade;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update copyright header

@@ -0,0 +1,426 @@
package org.eclipse.kura.web.server.net2.utils;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright header is missing

Signed-off-by: pierantoniomerlino <[email protected]>
@pierantoniomerlino pierantoniomerlino merged commit 7b290c6 into develop Feb 1, 2023
@pierantoniomerlino pierantoniomerlino deleted the web2_nm branch February 1, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants