major re-structuring 49/1049/3
authorSerban Jora <sj2381@att.com>
Fri, 23 Feb 2018 12:54:53 +0000 (07:54 -0500)
committerSerban Jora <sj2381@att.com>
Fri, 23 Feb 2018 20:43:48 +0000 (15:43 -0500)
commitf1c66246d3dcfa15ccbe0f93e3a607c25320b8d1
tree0d8e32a9e99d7d85a2b7cff249025537996053e9
parenta6ea7f2c3e648562f1bd09367828329b1c2ea2a4
major re-structuring

Separates between federation and local interface with respect to
network configuration, authorization and availabl REST API.
Switches to a spring application composition based on explicit
configuration rather than component scanning.
Moves to CDS 1.13
(fixed Chris remarks)

Change-Id: I676fe4b45abdcbe081742dcceb6a2e52b9361065
Signed-off-by: Serban Jora <sj2381@att.com>
Issue-ID: ACUMOS-276
76 files changed:
gateway/application-acumosa.properties [new file with mode: 0644]
gateway/application-acumosb.properties [new file with mode: 0644]
gateway/application-gateway.properties
gateway/application-test.properties [new file with mode: 0644]
gateway/application.properties
gateway/pom.xml
gateway/src/main/java/org/acumos/federation/gateway/Application.java
gateway/src/main/java/org/acumos/federation/gateway/adapter/PeerGateway.java
gateway/src/main/java/org/acumos/federation/gateway/adapter/onap/ONAP.java
gateway/src/main/java/org/acumos/federation/gateway/adapter/onap/ONAPAdapterCondition.java
gateway/src/main/java/org/acumos/federation/gateway/cds/PeerStatus.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/cds/SubscriptionScope.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/cds/ValidationStatus.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/common/API.java
gateway/src/main/java/org/acumos/federation/gateway/common/AbstractClient.java [moved from gateway/src/main/java/org/acumos/federation/gateway/service/impl/AbstractClient.java with 95% similarity]
gateway/src/main/java/org/acumos/federation/gateway/common/Clients.java [moved from gateway/src/main/java/org/acumos/federation/gateway/service/impl/Clients.java with 54% similarity]
gateway/src/main/java/org/acumos/federation/gateway/common/FederationClient.java [moved from gateway/src/main/java/org/acumos/federation/gateway/service/impl/FederationClient.java with 61% similarity]
gateway/src/main/java/org/acumos/federation/gateway/common/JSONTags.java
gateway/src/main/java/org/acumos/federation/gateway/common/JsonResponse.java
gateway/src/main/java/org/acumos/federation/gateway/config/AdapterCondition.java [moved from gateway/src/main/java/org/acumos/federation/gateway/common/AdapterCondition.java with 97% similarity]
gateway/src/main/java/org/acumos/federation/gateway/config/AdapterConfiguration.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/config/FederationConfiguration.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/config/FederationInterfaceConfiguration.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/config/GatewayCondition.java [moved from gateway/src/main/java/org/acumos/federation/gateway/common/GatewayCondition.java with 97% similarity]
gateway/src/main/java/org/acumos/federation/gateway/config/GatewayConfiguration.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/config/InterfaceConfiguration.java [moved from gateway/src/main/java/org/acumos/federation/gateway/common/HttpClientConfiguration.java with 55% similarity]
gateway/src/main/java/org/acumos/federation/gateway/config/InterfaceConfigurationBuilder.java [moved from gateway/src/main/java/org/acumos/federation/gateway/common/HttpClientConfigurationBuilder.java with 68% similarity]
gateway/src/main/java/org/acumos/federation/gateway/config/LocalConfiguration.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/config/LocalInterfaceConfiguration.java [moved from gateway/src/main/java/org/acumos/federation/gateway/common/GatewayConfiguration.java with 78% similarity]
gateway/src/main/java/org/acumos/federation/gateway/controller/CatalogController.java
gateway/src/main/java/org/acumos/federation/gateway/controller/PeerCatalogController.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/controller/PeerPingController.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/controller/PeerSubscriptionController.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/controller/PeersController.java [moved from gateway/src/main/java/org/acumos/federation/gateway/controller/PeerController.java with 72% similarity]
gateway/src/main/java/org/acumos/federation/gateway/controller/PingController.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/controller/RegistrationController.java [new file with mode: 0644]
gateway/src/main/java/org/acumos/federation/gateway/security/AuthenticationConfiguration.java [moved from gateway/src/main/java/org/acumos/federation/gateway/security/X509AuthenticationFilter.java with 56% similarity]
gateway/src/main/java/org/acumos/federation/gateway/security/Priviledge.java
gateway/src/main/java/org/acumos/federation/gateway/security/X509ResourceFilter.java.noneed [deleted file]
gateway/src/main/java/org/acumos/federation/gateway/service/LocalWatchService.java [moved from gateway/src/main/java/org/acumos/federation/gateway/util/LocalWatchService.java with 96% similarity]
gateway/src/main/java/org/acumos/federation/gateway/service/PeerService.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/AbstractServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/AbstractServiceLocalImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/CatalogServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/CatalogServiceLocalImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/PeerServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/PeerServiceLocalImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/PeerSubscriptionServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/task/PeerSubscriptionTask.java [moved from gateway/src/main/java/org/acumos/federation/gateway/task/PeerCommunicationTask.java with 59% similarity]
gateway/src/main/java/org/acumos/federation/gateway/task/PeerSubscriptionTaskScheduler.java [moved from gateway/src/main/java/org/acumos/federation/gateway/task/PeerCommunicationTaskScheduler.java with 62% similarity]
gateway/src/main/java/org/acumos/federation/gateway/task/TaskConfiguration.java [new file with mode: 0644]
gateway/src/main/resources/application-gateway.properties [deleted file]
gateway/src/main/resources/application.properties [deleted file]
gateway/src/main/resources/logback.xml
gateway/src/main/resources/peerssubscriptions.json [deleted file]
gateway/src/main/resources/server-keystore.jks [deleted file]
gateway/src/main/resources/server-public.cer [deleted file]
gateway/src/main/resources/server-truststore.jks [deleted file]
gateway/src/test/java/org/acumos/federation/gateway/test/ControllerTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/PeerGatewayTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/TaskTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/TestAdapter.java [moved from gateway/src/main/java/org/acumos/federation/gateway/adapter/Ghost.java with 68% similarity]
gateway/src/test/java/org/acumos/federation/gateway/test/TestAdapterCondition.java [moved from gateway/src/main/java/org/acumos/federation/gateway/common/GhostAdapterCondition.java with 82% similarity]
gateway/src/test/java/org/acumos/federation/gateway/test/TestAdapterConfiguration.java [moved from gateway/src/main/java/org/acumos/federation/gateway/common/FederationClientConfiguration.java with 65% similarity]
gateway/src/test/resources/acumosa-peers.json
gateway/src/test/resources/acumosb-peers.json
gateway/src/test/resources/application-acumosa.properties
gateway/src/test/resources/application-acumosb.properties
gateway/src/test/resources/docker-compose-test.yml
gateway/src/test/resources/docker-compose.yml
gateway/src/test/resources/mockPeerSolutionRevisionArtifactsResponse.json
gateway/src/test/resources/mockPeerSolutionRevisionsResponse.json
gateway/src/test/resources/mockPeerSolutionsResponse.json
gateway/src/test/resources/task-test-peers.json
gateway/src/test/resources/test-peers.json
pom.xml