diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4b902e59..1a2fb3ad4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,22 +5,28 @@ on: [push, pull_request] jobs: build: name: Build the project - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v5 with: fetch-depth: 2 + - name: Setup JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v5 with: java-version: 17 + java-package: jdk + distribution: adopt + architecture: x64 + - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- + - name: mvn build run: ./mvnw clean install -Djib.skip -B diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index c212ee59f..fef42d997 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -5,17 +5,17 @@ on: [workflow_dispatch] jobs: build: name: Release - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v5 with: fetch-depth: 0 # We need a personal access token to be able to push to a protected branch token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - name: Setup JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v5 with: java-version: 17 java-package: jdk diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12498cbf2..7ec3e7ac0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,17 +15,17 @@ on: jobs: build: name: Release - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v5 with: fetch-depth: 0 # We need a personal access token to be able to push to a protected branch token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - name: Setup JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v5 with: java-version: 17 java-package: jdk diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/HandlerService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/HandlerService.java index c8b717952..8689cd52c 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/HandlerService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/HandlerService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,9 +24,6 @@ import java.util.Set; import java.util.function.Function; -import lombok.Value; -import lombok.extern.slf4j.Slf4j; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.ValidationException; @@ -47,6 +44,9 @@ import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; import com.expediagroup.streamplatform.streamregistry.model.Zone; +import lombok.Value; +import lombok.extern.slf4j.Slf4j; + @Component @Slf4j public class HandlerService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/IdentityHandler.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/IdentityHandler.java index aafd50a7c..529c53a50 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/IdentityHandler.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/IdentityHandler.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.core.handlers; -import lombok.RequiredArgsConstructor; - import com.expediagroup.streamplatform.streamregistry.handler.Handler; import com.expediagroup.streamplatform.streamregistry.model.Entity; import com.expediagroup.streamplatform.streamregistry.model.Specification; +import lombok.RequiredArgsConstructor; + @RequiredArgsConstructor public class IdentityHandler implements Handler { public static final String DEFAULT = "default"; diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerBindingService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerBindingService.java index 543101960..d7bde4bfe 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerBindingService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerBindingService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -39,6 +36,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; import com.expediagroup.streamplatform.streamregistry.repository.ConsumerBindingRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class ConsumerBindingService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerService.java index aba269859..e080f5fc9 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -39,6 +36,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; import com.expediagroup.streamplatform.streamregistry.repository.ConsumerRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class ConsumerService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/DomainService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/DomainService.java index 0e6dd7cd8..c96e82165 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/DomainService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/DomainService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -43,6 +40,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.DomainKey; import com.expediagroup.streamplatform.streamregistry.repository.DomainRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class DomainService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/InfrastructureService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/InfrastructureService.java index d096e2f8c..a4041df2e 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/InfrastructureService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/InfrastructureService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -43,6 +40,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.InfrastructureKey; import com.expediagroup.streamplatform.streamregistry.repository.InfrastructureRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class InfrastructureService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessBindingService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessBindingService.java index 70c35c40a..28b3ab624 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessBindingService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessBindingService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -38,6 +35,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey; import com.expediagroup.streamplatform.streamregistry.repository.ProcessBindingRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class ProcessBindingService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessService.java index ea2b63288..7b04ef89f 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -34,18 +31,18 @@ import com.expediagroup.streamplatform.streamregistry.core.validators.ValidationException; import com.expediagroup.streamplatform.streamregistry.core.views.ProcessBindingView; import com.expediagroup.streamplatform.streamregistry.core.views.ProcessView; -import com.expediagroup.streamplatform.streamregistry.model.Consumer; +import com.expediagroup.streamplatform.streamregistry.core.views.StreamView; +import com.expediagroup.streamplatform.streamregistry.model.*; import com.expediagroup.streamplatform.streamregistry.model.Process; -import com.expediagroup.streamplatform.streamregistry.model.ProcessInputStream; -import com.expediagroup.streamplatform.streamregistry.model.ProcessOutputStream; -import com.expediagroup.streamplatform.streamregistry.model.Producer; -import com.expediagroup.streamplatform.streamregistry.model.Status; import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessKey; import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; import com.expediagroup.streamplatform.streamregistry.repository.ProcessRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class ProcessService { @@ -57,6 +54,7 @@ public class ProcessService { private final ProcessView processView; private final ConsumerService consumerService; private final ProducerService producerService; + private final StreamView streamView; @PreAuthorize("hasPermission(#process, 'CREATE')") public Optional create(Process process) throws ValidationException { @@ -78,6 +76,11 @@ public Optional create(Process process) throws ValidationException { } private Producer buildProducer(Process process, ZoneKey zoneKey, ProcessOutputStream output) { + val stream = streamView.get(output.getStream()); + if (stream.isEmpty()) { + throw new ValidationException("Can't authorize output for " + output.getStream() + " because the stream doesn't exist."); + } + return new Producer( new ProducerKey( output.getStream().getDomainKey().getName(), @@ -86,7 +89,7 @@ private Producer buildProducer(Process process, ZoneKey zoneKey, ProcessOutputSt zoneKey.getName(), process.getKey().getName() ), - process.getSpecification(), + secureSpecification(process.getSpecification(), stream.get()), process.getStatus() ); } @@ -123,6 +126,11 @@ public Optional update(Process process) throws ValidationException { } private Consumer buildConsumer(Process process, ZoneKey zoneKey, ProcessInputStream input) { + val stream = streamView.get(input.getStream()); + if (stream.isEmpty()) { + throw new ValidationException("Can't authorize input for " + input.getStream() + " because the stream doesn't exist."); + } + return new Consumer( new ConsumerKey( input.getStream().getDomainKey().getName(), @@ -131,11 +139,22 @@ private Consumer buildConsumer(Process process, ZoneKey zoneKey, ProcessInputStr zoneKey.getName(), process.getKey().getName() ), - process.getSpecification(), + secureSpecification(process.getSpecification(), stream.get()), process.getStatus() ); } + private Specification secureSpecification(Specification specification, Stream stream) { + return new Specification( + specification.getDescription(), + specification.getTags(), + specification.getType(), + specification.getConfiguration(), + stream.getSpecification().getSecurity(), + specification.getFunction() + ); + } + @PreAuthorize("hasPermission(#process, 'UPDATE_STATUS')") public Optional updateStatus(Process process, Status status) { process.setStatus(status); diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerBindingService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerBindingService.java index 6435bdaaa..d16db2a08 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerBindingService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerBindingService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -39,6 +36,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; import com.expediagroup.streamplatform.streamregistry.repository.ProducerBindingRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class ProducerBindingService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerService.java index 9c33f77de..5116dcfba 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProducerService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -39,6 +36,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; import com.expediagroup.streamplatform.streamregistry.repository.ProducerRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class ProducerService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/SchemaService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/SchemaService.java index 1ce5327f2..fad95d16b 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/SchemaService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/SchemaService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -38,6 +35,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; import com.expediagroup.streamplatform.streamregistry.repository.SchemaRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class SchemaService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamBindingService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamBindingService.java index 4cd916f89..48076ce99 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamBindingService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamBindingService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -44,6 +41,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; import com.expediagroup.streamplatform.streamregistry.repository.StreamBindingRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class StreamBindingService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamService.java index e94d9c70e..caff0861f 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,9 +22,6 @@ import java.util.Set; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -48,6 +45,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; import com.expediagroup.streamplatform.streamregistry.repository.StreamRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class StreamService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ZoneService.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ZoneService.java index 3e1734168..8f13be628 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ZoneService.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ZoneService.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; -import lombok.val; - import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostFilter; import org.springframework.security.access.prepost.PreAuthorize; @@ -45,6 +42,9 @@ import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; import com.expediagroup.streamplatform.streamregistry.repository.ZoneRepository; +import lombok.RequiredArgsConstructor; +import lombok.val; + @Component @RequiredArgsConstructor public class ZoneService { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerBindingValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerBindingValidator.java index 05ec75821..367e4ca9f 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerBindingValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerBindingValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; @@ -24,6 +22,8 @@ import com.expediagroup.streamplatform.streamregistry.core.views.StreamBindingView; import com.expediagroup.streamplatform.streamregistry.model.ConsumerBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerBindingValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerValidator.java index 4ec9b3065..70aeb53df 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ConsumerValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.core.views.ZoneView; import com.expediagroup.streamplatform.streamregistry.model.Consumer; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/DomainValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/DomainValidator.java index 12430e754..f7ab4b14e 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/DomainValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/DomainValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; import com.expediagroup.streamplatform.streamregistry.model.Domain; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class DomainValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/InfrastructureValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/InfrastructureValidator.java index b6e09976d..08f82be28 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/InfrastructureValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/InfrastructureValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; import com.expediagroup.streamplatform.streamregistry.core.views.ZoneView; import com.expediagroup.streamplatform.streamregistry.model.Infrastructure; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessBindingValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessBindingValidator.java index 323171c73..87c242fef 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessBindingValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessBindingValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.core.views.ZoneView; import com.expediagroup.streamplatform.streamregistry.model.ProcessBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessBindingValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessValidator.java index e87ea8e05..8983be59a 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProcessValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.core.views.ZoneView; import com.expediagroup.streamplatform.streamregistry.model.Process; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerBindingValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerBindingValidator.java index f49f34f9c..40fedd619 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerBindingValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerBindingValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; import com.expediagroup.streamplatform.streamregistry.core.views.ProducerView; import com.expediagroup.streamplatform.streamregistry.model.ProducerBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerBindingValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerValidator.java index 35351a782..fe4592ac0 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ProducerValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.core.views.ZoneView; import com.expediagroup.streamplatform.streamregistry.model.Producer; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/SchemaValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/SchemaValidator.java index dfa90f0ba..b9bdd736e 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/SchemaValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/SchemaValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; import com.expediagroup.streamplatform.streamregistry.core.views.DomainView; import com.expediagroup.streamplatform.streamregistry.model.Schema; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class SchemaValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamBindingValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamBindingValidator.java index 31fe206f5..cf0a40deb 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamBindingValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamBindingValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; @@ -24,6 +22,8 @@ import com.expediagroup.streamplatform.streamregistry.core.views.StreamView; import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamBindingValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamValidator.java index 43c4551ca..b687d94e6 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/StreamValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; @@ -24,6 +22,8 @@ import com.expediagroup.streamplatform.streamregistry.core.views.SchemaView; import com.expediagroup.streamplatform.streamregistry.model.Stream; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ZoneValidator.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ZoneValidator.java index 2d7a19dc5..309c2ef48 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ZoneValidator.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/validators/ZoneValidator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.core.validators; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.validators.key.KeyValidator; import com.expediagroup.streamplatform.streamregistry.model.Zone; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ZoneValidator implements Validator { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerBindingView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerBindingView.java index 2c5fc3f87..7c1978011 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerBindingView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerBindingView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.ConsumerBinding; import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerBindingKey; import com.expediagroup.streamplatform.streamregistry.repository.ConsumerBindingRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerBindingView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerView.java index 9abde5a54..71e770a8c 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ConsumerView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Consumer; import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; import com.expediagroup.streamplatform.streamregistry.repository.ConsumerRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/DomainView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/DomainView.java index 475f7cd62..d6b35cc3f 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/DomainView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/DomainView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Domain; import com.expediagroup.streamplatform.streamregistry.model.keys.DomainKey; import com.expediagroup.streamplatform.streamregistry.repository.DomainRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class DomainView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/InfrastructureView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/InfrastructureView.java index 937a753de..cb5c0d4ed 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/InfrastructureView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/InfrastructureView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Infrastructure; import com.expediagroup.streamplatform.streamregistry.model.keys.InfrastructureKey; import com.expediagroup.streamplatform.streamregistry.repository.InfrastructureRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class InfrastructureView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessBindingView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessBindingView.java index fd5d1a542..b6281d52c 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessBindingView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessBindingView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.ProcessBinding; import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey; import com.expediagroup.streamplatform.streamregistry.repository.ProcessBindingRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessBindingView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessView.java index 8fe942713..d071e9a9e 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProcessView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Process; import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessKey; import com.expediagroup.streamplatform.streamregistry.repository.ProcessRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerBindingView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerBindingView.java index 83d6bf48f..5c119d537 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerBindingView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerBindingView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.ProducerBinding; import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerBindingKey; import com.expediagroup.streamplatform.streamregistry.repository.ProducerBindingRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerBindingView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerView.java index f32d7d16b..eaa9e49d0 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ProducerView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Producer; import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; import com.expediagroup.streamplatform.streamregistry.repository.ProducerRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/SchemaView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/SchemaView.java index b0db1f4cf..0d07ee0c2 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/SchemaView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/SchemaView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Schema; import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; import com.expediagroup.streamplatform.streamregistry.repository.SchemaRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class SchemaView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamBindingView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamBindingView.java index c66664b4b..f72ccd820 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamBindingView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamBindingView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import java.util.function.Predicate; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; import com.expediagroup.streamplatform.streamregistry.repository.StreamBindingRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamBindingView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamView.java index 1c0f1046d..3a0b8f0ec 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/StreamView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,14 +18,14 @@ import java.util.Optional; import java.util.function.Predicate; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Stream; import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; import com.expediagroup.streamplatform.streamregistry.repository.StreamRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamView { diff --git a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ZoneView.java b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ZoneView.java index d154ed36b..3f6e9ea31 100644 --- a/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ZoneView.java +++ b/core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/views/ZoneView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.model.Zone; import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; import com.expediagroup.streamplatform.streamregistry.repository.ZoneRepository; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ZoneView { diff --git a/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessServiceTest.java b/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessServiceTest.java index d2250ef6b..d84b51735 100644 --- a/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessServiceTest.java +++ b/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessServiceTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,14 +24,10 @@ import static org.mockito.Mockito.inOrder; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; -import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Optional; +import java.util.*; import com.fasterxml.jackson.databind.ObjectMapper; @@ -48,18 +44,10 @@ import com.expediagroup.streamplatform.streamregistry.core.validators.ValidationException; import com.expediagroup.streamplatform.streamregistry.core.views.ProcessBindingView; import com.expediagroup.streamplatform.streamregistry.core.views.ProcessView; -import com.expediagroup.streamplatform.streamregistry.model.Consumer; +import com.expediagroup.streamplatform.streamregistry.core.views.StreamView; +import com.expediagroup.streamplatform.streamregistry.model.*; import com.expediagroup.streamplatform.streamregistry.model.Process; -import com.expediagroup.streamplatform.streamregistry.model.ProcessBinding; -import com.expediagroup.streamplatform.streamregistry.model.ProcessInputStream; -import com.expediagroup.streamplatform.streamregistry.model.ProcessOutputStream; -import com.expediagroup.streamplatform.streamregistry.model.Producer; -import com.expediagroup.streamplatform.streamregistry.model.Specification; -import com.expediagroup.streamplatform.streamregistry.model.Status; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessKey; -import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; -import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; +import com.expediagroup.streamplatform.streamregistry.model.keys.*; import com.expediagroup.streamplatform.streamregistry.repository.ProcessBindingRepository; import com.expediagroup.streamplatform.streamregistry.repository.ProcessRepository; @@ -89,6 +77,18 @@ public class ProcessServiceTest { private ProcessService processService; + @Mock + private StreamView streamView; + + ZoneKey zoneKey = new ZoneKey("aws_us_east_1"); + Stream inputStream = createTestStream("input"); + Stream outputStream = createTestStream("output"); + Process entity = createTestProcess(inputStream.getKey(), outputStream.getKey()); + + Stream newInputStream = createTestStream("new_input"); + Stream newOutputStream = createTestStream("new_output"); + Process newEntity = createTestProcess(newInputStream.getKey(), newOutputStream.getKey()); + @Before public void before() { processService = new ProcessService( @@ -99,148 +99,229 @@ public void before() { new ProcessBindingView(processBindingRepository), new ProcessView(processRepository), consumerService, - producerService + producerService, + streamView ); - } - - @Test - public void create() { - final Specification specification = mock(Specification.class); - Process entity = createTestProcess(); when(processRepository.findById(entity.getKey())).thenReturn(empty()); doNothing().when(processValidator).validateForCreate(entity); - when(handlerService.handleInsert(entity)).thenReturn(specification); + when(handlerService.handleInsert(entity)).thenReturn(entity.getSpecification()); when(processRepository.saveSpecification(entity)).thenReturn(entity); + when(streamView.get(inputStream.getKey())).thenReturn(Optional.of(inputStream)); + when(streamView.get(outputStream.getKey())).thenReturn(Optional.of(outputStream)); + + doNothing().when(processValidator).validateForUpdate(newEntity, entity); + when(handlerService.handleUpdate(newEntity, entity)).thenReturn(newEntity.getSpecification()); + when(streamView.get(newInputStream.getKey())).thenReturn(Optional.of(newInputStream)); + when(streamView.get(newOutputStream.getKey())).thenReturn(Optional.of(newOutputStream)); + } + @Test + public void create() { processService.create(entity); verify(processRepository).findById(entity.getKey()); verify(processValidator).validateForCreate(entity); verify(handlerService).handleInsert(entity); verify(processRepository).saveSpecification(entity); + verify(consumerService).canCreateConsumer( + new Consumer( + new ConsumerKey( + inputStream.getKey().getDomainKey().getName(), + inputStream.getKey().getName(), + inputStream.getKey().getVersion(), + zoneKey.getName(), + entity.getKey().getName() + ), + new Specification( + entity.getSpecification().getDescription(), + entity.getSpecification().getTags(), + entity.getSpecification().getType(), + entity.getSpecification().getConfiguration(), + inputStream.getSpecification().getSecurity(), + entity.getSpecification().getFunction() + ), + entity.getStatus() + ) + ); + verify(producerService).canCreateProducer( + new Producer( + new ProducerKey( + outputStream.getKey().getDomainKey().getName(), + outputStream.getKey().getName(), + outputStream.getKey().getVersion(), + zoneKey.getName(), + entity.getKey().getName() + ), + new Specification( + entity.getSpecification().getDescription(), + entity.getSpecification().getTags(), + entity.getSpecification().getType(), + entity.getSpecification().getConfiguration(), + outputStream.getSpecification().getSecurity(), + entity.getSpecification().getFunction() + ), + entity.getStatus() + ) + ); } @Test(expected = ValidationException.class) - public void createFailedWhenDomainNotExists() { - Process entity = createTestProcess(); - when(processRepository.findById(entity.getKey())).thenReturn(empty()); + public void createFailedWhenProcessNotExists() { + when(processRepository.findById(entity.getKey())).thenReturn(Optional.empty()); + processService.update(newEntity); + } + + @Test(expected = ValidationException.class) + public void createFailedWhenValidationFails() { doThrow(ValidationException.class).when(processValidator).validateForCreate(entity); processService.create(entity); } @Test(expected = AccessDeniedException.class) public void createFailAuthConsumer() { - Process p = createTestProcess(); when(consumerService.canCreateConsumer(any(Consumer.class))).thenThrow(AccessDeniedException.class); - processService.create(p); + processService.create(entity); + } + + @Test(expected = ValidationException.class) + public void createFailInputNotExists() { + when(streamView.get(inputStream.getKey())).thenReturn(Optional.empty()); + processService.create(entity); } @Test(expected = AccessDeniedException.class) public void createFailAuthProducer() { - Process p = createTestProcess(); when(producerService.canCreateProducer(any(Producer.class))).thenThrow(AccessDeniedException.class); - processService.create(p); + processService.create(entity); + } + + @Test(expected = ValidationException.class) + public void createFailOutputNotExists() { + when(streamView.get(outputStream.getKey())).thenReturn(Optional.empty()); + processService.create(entity); } @Test public void updateNoInputOutputChanges() { - final Specification specification = mock(Specification.class); + when(processRepository.findById(entity.getKey())).thenReturn(Optional.of(entity)); - Process existing = createTestProcess(); - Process newEntity = createTestProcess(); - - when(processRepository.findById(existing.getKey())).thenReturn(Optional.of(existing)); - doNothing().when(processValidator).validateForUpdate(newEntity, existing); - when(handlerService.handleUpdate(newEntity, existing)).thenReturn(specification); - when(processRepository.saveSpecification(newEntity)).thenReturn(newEntity); - - processService.update(newEntity); + processService.update(entity); - verify(processRepository).findById(existing.getKey()); - verify(processValidator).validateForUpdate(newEntity, existing); - verify(handlerService).handleUpdate(newEntity, existing); + verify(processRepository).findById(entity.getKey()); + verify(processValidator).validateForUpdate(entity, entity); + verify(handlerService).handleUpdate(entity, entity); verify(consumerService, never()).canCreateConsumer(any(Consumer.class)); verify(producerService, never()).canCreateProducer(any(Producer.class)); - verify(processRepository).saveSpecification(newEntity); + verify(processRepository).saveSpecification(entity); } @Test public void updateWithInputOutputChanges() { final Specification specification = mock(Specification.class); - Process existing = createTestProcess(); - Process newEntity = createTestProcess(); - ProcessInputStream pis = new ProcessInputStream(new StreamKey("inputDomain","streamInputName2",1), new ObjectMapper().createObjectNode()); - newEntity.getInputs().add(pis); - ProcessOutputStream pos = new ProcessOutputStream(new StreamKey("outputDomain","streamOutputName2",1), new ObjectMapper().createObjectNode()); - newEntity.getOutputs().add(pos); + Stream newInputStream = createTestStream("streamInputName2"); + Stream newOutputStream = createTestStream("streamOutputName2"); + Process newEntity = createTestProcess(newInputStream.getKey(), newOutputStream.getKey()); - when(processRepository.findById(existing.getKey())).thenReturn(Optional.of(existing)); - doNothing().when(processValidator).validateForUpdate(newEntity, existing); - when(handlerService.handleUpdate(newEntity, existing)).thenReturn(specification); + when(processRepository.findById(newEntity.getKey())).thenReturn(Optional.of(entity)); + when(streamView.get(newInputStream.getKey())).thenReturn(Optional.of(newInputStream)); + when(streamView.get(newOutputStream.getKey())).thenReturn(Optional.of(newOutputStream)); + doNothing().when(processValidator).validateForUpdate(newEntity, entity); + when(handlerService.handleUpdate(newEntity, entity)).thenReturn(specification); when(processRepository.saveSpecification(newEntity)).thenReturn(newEntity); processService.update(newEntity); - verify(processRepository).findById(existing.getKey()); - verify(processValidator).validateForUpdate(newEntity, existing); - verify(handlerService).handleUpdate(newEntity, existing); - verify(consumerService, times(1)).canCreateConsumer(any(Consumer.class)); - verify(producerService, times(1)).canCreateProducer(any(Producer.class)); + verify(processRepository).findById(entity.getKey()); + verify(processValidator).validateForUpdate(newEntity, entity); + verify(handlerService).handleUpdate(newEntity, entity); verify(processRepository).saveSpecification(newEntity); + verify(consumerService).canCreateConsumer( + new Consumer( + new ConsumerKey( + newInputStream.getKey().getDomainKey().getName(), + newInputStream.getKey().getName(), + newInputStream.getKey().getVersion(), + zoneKey.getName(), + newEntity.getKey().getName() + ), + new Specification( + newEntity.getSpecification().getDescription(), + newEntity.getSpecification().getTags(), + newEntity.getSpecification().getType(), + newEntity.getSpecification().getConfiguration(), + newInputStream.getSpecification().getSecurity(), + newEntity.getSpecification().getFunction() + ), + newEntity.getStatus() + ) + ); + verify(producerService).canCreateProducer( + new Producer( + new ProducerKey( + newOutputStream.getKey().getDomainKey().getName(), + newOutputStream.getKey().getName(), + newOutputStream.getKey().getVersion(), + zoneKey.getName(), + newEntity.getKey().getName() + ), + new Specification( + newEntity.getSpecification().getDescription(), + newEntity.getSpecification().getTags(), + newEntity.getSpecification().getType(), + newEntity.getSpecification().getConfiguration(), + newOutputStream.getSpecification().getSecurity(), + newEntity.getSpecification().getFunction() + ), + newEntity.getStatus() + ) + ); } @Test(expected = ValidationException.class) public void updateValidationException() { - Process p = createTestProcess(); - processService.update(p); + when(processRepository.findById(newEntity.getKey())).thenReturn(Optional.of(entity)); + doThrow(ValidationException.class).when(processValidator).validateForUpdate(newEntity, entity); + processService.update(newEntity); } @Test(expected = ValidationException.class) - public void updateFailedWhenDomainNotExists() { - Process entity = createTestProcess(); - Process existing = createTestProcess(); - when(processRepository.findById(existing.getKey())).thenReturn(Optional.of(existing)); - doThrow(ValidationException.class).when(processValidator).validateForUpdate(entity, existing); - processService.update(entity); + public void updateFailedWhenProcessNotExists() { + when(processRepository.findById(newEntity.getKey())).thenReturn(Optional.empty()); + processService.update(newEntity); } @Test(expected = AccessDeniedException.class) public void updateFailAuthConsumer() { - final Specification specification = mock(Specification.class); - - Process existing = createTestProcess(); - Process newEntity = createTestProcess(); - - ProcessInputStream pis = new ProcessInputStream(new StreamKey("inputDomain","streamInputName2",1), new ObjectMapper().createObjectNode()); - newEntity.getInputs().add(pis); - - when(processRepository.findById(existing.getKey())).thenReturn(Optional.of(existing)); - doNothing().when(processValidator).validateForUpdate(newEntity, existing); - when(handlerService.handleUpdate(newEntity, existing)).thenReturn(specification); + when(processRepository.findById(newEntity.getKey())).thenReturn(Optional.of(entity)); when(consumerService.canCreateConsumer(any(Consumer.class))).thenThrow(AccessDeniedException.class); processService.update(newEntity); } + @Test(expected = ValidationException.class) + public void updateFailInputNotExists() { + when(processRepository.findById(newEntity.getKey())).thenReturn(Optional.of(entity)); + when(streamView.get(newInputStream.getKey())).thenReturn(Optional.empty()); + processService.update(newEntity); + } + @Test(expected = AccessDeniedException.class) public void updateFailAuthProducer() { - final Specification specification = mock(Specification.class); - - Process existing = createTestProcess(); - Process newEntity = createTestProcess(); - ProcessOutputStream pos = new ProcessOutputStream(new StreamKey("outputDomain","streamOutputName2",1), new ObjectMapper().createObjectNode()); - newEntity.getOutputs().add(pos); - - when(processRepository.findById(existing.getKey())).thenReturn(Optional.of(existing)); - doNothing().when(processValidator).validateForUpdate(newEntity, existing); - when(handlerService.handleUpdate(newEntity, existing)).thenReturn(specification); + when(processRepository.findById(newEntity.getKey())).thenReturn(Optional.of(entity)); when(producerService.canCreateProducer(any(Producer.class))).thenThrow(AccessDeniedException.class); processService.update(newEntity); } + @Test(expected = ValidationException.class) + public void updateFailOutputNotExists() { + when(processRepository.findById(newEntity.getKey())).thenReturn(Optional.of(entity)); + when(streamView.get(newOutputStream.getKey())).thenReturn(Optional.empty()); + processService.update(newEntity); + } + @Test public void updateStatus() { final Status status = mock(Status.class); @@ -314,20 +395,39 @@ public void delete_multi() { inOrder.verify(processRepository).delete(entity); } - private Process createTestProcess() { + private Process createTestProcess(StreamKey input, StreamKey output) { Process p = new Process(); List inputs = new ArrayList<>(); - ProcessInputStream pis = new ProcessInputStream(new StreamKey("inputDomain","streamInputName",1), new ObjectMapper().createObjectNode()); + ProcessInputStream pis = new ProcessInputStream(input, new ObjectMapper().createObjectNode()); inputs.add(pis); p.setInputs(inputs); List outputs = new ArrayList<>(); - ProcessOutputStream pos = new ProcessOutputStream(new StreamKey("outputDomain","streamOutputName",1), new ObjectMapper().createObjectNode()); + ProcessOutputStream pos = new ProcessOutputStream(output, new ObjectMapper().createObjectNode()); outputs.add(pos); p.setOutputs(outputs); p.setKey(new ProcessKey("domain","name")); List zones = new ArrayList<>(); - zones.add(new ZoneKey("aws_us_east_1")); + zones.add(zoneKey); p.setZones(zones); + Specification specification = new Specification("", emptyList(), "generic", new ObjectMapper().createObjectNode(), emptyList(), ""); + p.setSpecification(specification); return p; } + + private Stream createTestStream(String name) { + Stream stream = new Stream(); + Specification specification = new Specification( + "", + emptyList(), + "egsp.kafka", + new ObjectMapper().createObjectNode(), + emptyList(), + "" + ); + + stream.setKey(new StreamKey("domain", name, 1)); + stream.setSpecification(specification); + + return stream; + } } diff --git a/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamServiceTest.java b/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamServiceTest.java index 041358f09..5a86e5dfa 100644 --- a/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamServiceTest.java +++ b/core/src/test/java/com/expediagroup/streamplatform/streamregistry/core/services/StreamServiceTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLBeanPostProcessor.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLBeanPostProcessor.java index 75caae3c6..e30c18516 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLBeanPostProcessor.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLBeanPostProcessor.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,9 +17,6 @@ import static java.lang.reflect.Proxy.newProxyInstance; -import lombok.Setter; -import lombok.extern.slf4j.Slf4j; - import io.micrometer.core.instrument.MeterRegistry; import org.springframework.beans.BeansException; @@ -28,6 +25,9 @@ import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; +import lombok.Setter; +import lombok.extern.slf4j.Slf4j; + @Slf4j @Component public class GraphQLBeanPostProcessor implements BeanPostProcessor, ApplicationContextAware { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLConfiguration.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLConfiguration.java index 29c52ad16..849f904c6 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLConfiguration.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLConfiguration.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import org.springframework.context.annotation.Configuration; import com.expediagroup.streamplatform.streamregistry.graphql.type.Scalars; + import graphql.schema.GraphQLScalarType; @Configuration diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLMetricHandler.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLMetricHandler.java index 8513aca74..f968e63e8 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLMetricHandler.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLMetricHandler.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,10 +22,6 @@ import java.lang.reflect.Method; import java.util.function.Supplier; -import lombok.Getter; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; - import com.google.common.base.Stopwatch; import io.micrometer.core.instrument.MeterRegistry; @@ -35,6 +31,10 @@ import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; +import lombok.Getter; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + @Slf4j @RequiredArgsConstructor(access = PACKAGE) @Getter(PACKAGE) diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerBindingKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerBindingKeyInput.java index 360c004ed..f42ce1499 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerBindingKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerBindingKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerBindingKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerBindingKey; - @Value @Builder public class ConsumerBindingKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerKeyInput.java index 55cbacf00..461aada4b 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ConsumerKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; - @Value @Builder public class ConsumerKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/DomainKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/DomainKeyInput.java index 615d5302e..72b72d00b 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/DomainKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/DomainKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.DomainKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.DomainKey; - @Value @Builder public class DomainKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/InfrastructureKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/InfrastructureKeyInput.java index 782f6ce5b..fd0a67875 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/InfrastructureKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/InfrastructureKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.InfrastructureKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.InfrastructureKey; - @Value @Builder public class InfrastructureKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessBindingKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessBindingKeyInput.java index 1323e08f3..888a3b3b4 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessBindingKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessBindingKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey; - @Value @Builder public class ProcessBindingKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamBindingInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamBindingInput.java index 5c70018bd..a94d17bd1 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamBindingInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamBindingInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; -import lombok.Builder; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.ProcessInputStreamBinding; +import lombok.Builder; +import lombok.Value; + @Value @Builder public class ProcessInputStreamBindingInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamInput.java index 1d641c9f8..ca118ba01 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessInputStreamInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; -import lombok.Builder; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.ProcessInputStream; +import lombok.Builder; +import lombok.Value; + @Value @Builder public class ProcessInputStreamInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessKeyInput.java index 697730f8b..744a97933 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessKey; - @Value @Builder public class ProcessKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamBindingInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamBindingInput.java index 21fbd40a7..df932f760 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamBindingInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamBindingInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; -import lombok.Builder; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.ProcessOutputStreamBinding; +import lombok.Builder; +import lombok.Value; + @Value @Builder public class ProcessOutputStreamBindingInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamInput.java index a1e5f363b..d0466f902 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProcessOutputStreamInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; -import lombok.Builder; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.ProcessOutputStream; +import lombok.Builder; +import lombok.Value; + @Value @Builder public class ProcessOutputStreamInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerBindingKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerBindingKeyInput.java index b4b642f4a..39932074e 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerBindingKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerBindingKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerBindingKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerBindingKey; - @Value @Builder public class ProducerBindingKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerKeyInput.java index e1145b78f..a00d0c4d0 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ProducerKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; - @Value @Builder public class ProducerKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SchemaKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SchemaKeyInput.java index c31a57ee8..20a4384f9 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SchemaKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SchemaKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; - @Value @Builder public class SchemaKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SpecificationInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SpecificationInput.java index bb1f8d62d..d58eb08b3 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SpecificationInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/SpecificationInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import java.util.List; import java.util.stream.Collectors; -import lombok.Builder; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.Principal; @@ -30,6 +27,9 @@ import com.expediagroup.streamplatform.streamregistry.model.Specification; import com.expediagroup.streamplatform.streamregistry.model.Tag; +import lombok.Builder; +import lombok.Value; + @Value @Builder public class SpecificationInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StatusInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StatusInput.java index a9309a6f1..0325c9cbc 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StatusInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StatusInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; -import lombok.Builder; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.Status; +import lombok.Builder; +import lombok.Value; + @Value @Builder public class StatusInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamBindingKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamBindingKeyInput.java index b4408569b..ebf27b07a 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamBindingKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamBindingKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; - @Value @Builder public class StreamBindingKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamKeyInput.java index 5d2f7c5c4..da2c5ce15 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/StreamKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; - @Value @Builder public class StreamKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/TagInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/TagInput.java index 712214b5d..374427449 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/TagInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/TagInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.Tag; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.Tag; - @Value @Builder public class TagInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ZoneKeyInput.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ZoneKeyInput.java index 430707b0e..c0b872eff 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ZoneKeyInput.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/model/inputs/ZoneKeyInput.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2022 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.model.inputs; +import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; + import lombok.Builder; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; - @Value @Builder public class ZoneKeyInput { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/Mutation.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/Mutation.java index 62dcfd01e..562bde309 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/Mutation.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/Mutation.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.mutation; -import lombok.Getter; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import graphql.kickstart.tools.GraphQLMutationResolver; +import lombok.Getter; +import lombok.RequiredArgsConstructor; @Component @RequiredArgsConstructor diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerBindingMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerBindingMutationImpl.java index fdb18920a..2b748db71 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerBindingMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerBindingMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -33,6 +31,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.ConsumerBindingMutation; import com.expediagroup.streamplatform.streamregistry.model.ConsumerBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerBindingMutationImpl implements ConsumerBindingMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerMutationImpl.java index 523b9ead3..9e278d276 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ConsumerMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -33,6 +31,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.ConsumerMutation; import com.expediagroup.streamplatform.streamregistry.model.Consumer; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerMutationImpl implements ConsumerMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/DomainMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/DomainMutationImpl.java index bfa8df993..27846cdf1 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/DomainMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/DomainMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import static com.expediagroup.streamplatform.streamregistry.graphql.StateHelper.maintainState; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.DomainService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.DomainMutation; import com.expediagroup.streamplatform.streamregistry.model.Domain; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class DomainMutationImpl implements DomainMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/InfrastructureMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/InfrastructureMutationImpl.java index c8f0cfd6e..5965cac7f 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/InfrastructureMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/InfrastructureMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import static com.expediagroup.streamplatform.streamregistry.graphql.StateHelper.maintainState; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.InfrastructureService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.InfrastructureMutation; import com.expediagroup.streamplatform.streamregistry.model.Infrastructure; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class InfrastructureMutationImpl implements InfrastructureMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessBindingMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessBindingMutationImpl.java index 4c3068534..534bdce79 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessBindingMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessBindingMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import java.util.List; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProcessBindingService; @@ -30,6 +28,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.ProcessBindingMutation; import com.expediagroup.streamplatform.streamregistry.model.ProcessBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessBindingMutationImpl implements ProcessBindingMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessMutationImpl.java index e446fc880..8a659aec8 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProcessMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import java.util.List; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProcessService; @@ -30,6 +28,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.ProcessMutation; import com.expediagroup.streamplatform.streamregistry.model.Process; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessMutationImpl implements ProcessMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerBindingMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerBindingMutationImpl.java index f56e7bea5..c9cc60764 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerBindingMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerBindingMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -33,6 +31,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.ProducerBindingMutation; import com.expediagroup.streamplatform.streamregistry.model.ProducerBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerBindingMutationImpl implements ProducerBindingMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerMutationImpl.java index 9b175c0bb..5854998ff 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ProducerMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -33,6 +31,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.ProducerMutation; import com.expediagroup.streamplatform.streamregistry.model.Producer; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerMutationImpl implements ProducerMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/SchemaMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/SchemaMutationImpl.java index c40e48dd5..77d90d8ce 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/SchemaMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/SchemaMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import static com.expediagroup.streamplatform.streamregistry.graphql.StateHelper.maintainState; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.SchemaService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.SchemaMutation; import com.expediagroup.streamplatform.streamregistry.model.Schema; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class SchemaMutationImpl implements SchemaMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamBindingMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamBindingMutationImpl.java index 2d3c9612a..71dcc55a2 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamBindingMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamBindingMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -33,6 +31,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.StreamBindingMutation; import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamBindingMutationImpl implements StreamBindingMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamMutationImpl.java index 7a5d6a915..b67746730 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/StreamMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -34,6 +32,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.StreamMutation; import com.expediagroup.streamplatform.streamregistry.model.Stream; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamMutationImpl implements StreamMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ZoneMutationImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ZoneMutationImpl.java index 97d9bcca7..b54bc8153 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ZoneMutationImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/mutation/impl/ZoneMutationImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import static com.expediagroup.streamplatform.streamregistry.graphql.StateHelper.maintainState; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ZoneService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.mutation.ZoneMutation; import com.expediagroup.streamplatform.streamregistry.model.Zone; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ZoneMutationImpl implements ZoneMutation { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/Query.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/Query.java index 491d8ad7f..99c60b932 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/Query.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/Query.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.query; -import lombok.Getter; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import graphql.kickstart.tools.GraphQLQueryResolver; +import lombok.Getter; +import lombok.RequiredArgsConstructor; @Component @RequiredArgsConstructor diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerBindingQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerBindingQueryImpl.java index e969d6a3b..16d7fbe3c 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerBindingQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerBindingQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ConsumerBindingService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.ConsumerBindingQuery; import com.expediagroup.streamplatform.streamregistry.model.ConsumerBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerBindingQueryImpl implements ConsumerBindingQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerQueryImpl.java index 00ba003bd..b5db50534 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ConsumerQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ConsumerService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.ConsumerQuery; import com.expediagroup.streamplatform.streamregistry.model.Consumer; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerQueryImpl implements ConsumerQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/DomainQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/DomainQueryImpl.java index 7c8912554..da751cc3f 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/DomainQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/DomainQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.DomainService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.DomainQuery; import com.expediagroup.streamplatform.streamregistry.model.Domain; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class DomainQueryImpl implements DomainQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/InfrastructureQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/InfrastructureQueryImpl.java index 385696d57..171995cf4 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/InfrastructureQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/InfrastructureQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.InfrastructureService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.InfrastructureQuery; import com.expediagroup.streamplatform.streamregistry.model.Infrastructure; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class InfrastructureQueryImpl implements InfrastructureQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessBindingQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessBindingQueryImpl.java index 2322aecbd..4a1a93695 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessBindingQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessBindingQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import java.util.List; import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProcessBindingService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.ProcessBindingQuery; import com.expediagroup.streamplatform.streamregistry.model.ProcessBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessBindingQueryImpl implements ProcessBindingQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessQueryImpl.java index 61ca5b866..21bb6e62d 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProcessQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import java.util.List; import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProcessService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.ProcessQuery; import com.expediagroup.streamplatform.streamregistry.model.Process; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessQueryImpl implements ProcessQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerBindingQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerBindingQueryImpl.java index 71961a291..ef182a74a 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerBindingQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerBindingQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProducerBindingService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.ProducerBindingQuery; import com.expediagroup.streamplatform.streamregistry.model.ProducerBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerBindingQueryImpl implements ProducerBindingQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerQueryImpl.java index 1fd769553..d2c3d3072 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ProducerQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProducerService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.ProducerQuery; import com.expediagroup.streamplatform.streamregistry.model.Producer; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerQueryImpl implements ProducerQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/SchemaQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/SchemaQueryImpl.java index aa27c5e11..741859af7 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/SchemaQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/SchemaQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.SchemaService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.SchemaQuery; import com.expediagroup.streamplatform.streamregistry.model.Schema; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class SchemaQueryImpl implements SchemaQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamBindingQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamBindingQueryImpl.java index 9039a0275..e202d5be6 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamBindingQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamBindingQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.StreamBindingService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.StreamBindingQuery; import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamBindingQueryImpl implements StreamBindingQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamQueryImpl.java index dabc64c7b..1be06b35c 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/StreamQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.StreamService; @@ -30,6 +28,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.StreamQuery; import com.expediagroup.streamplatform.streamregistry.model.Stream; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamQueryImpl implements StreamQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ZoneQueryImpl.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ZoneQueryImpl.java index 8114cc0cd..aa2727b8a 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ZoneQueryImpl.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/query/impl/ZoneQueryImpl.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ZoneService; @@ -29,6 +27,8 @@ import com.expediagroup.streamplatform.streamregistry.graphql.query.ZoneQuery; import com.expediagroup.streamplatform.streamregistry.model.Zone; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ZoneQueryImpl implements ZoneQuery { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerBindingResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerBindingResolver.java index ad9c42f85..5e69cc9f3 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerBindingResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerBindingResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ConsumerService; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.model.ConsumerBinding; import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerBindingResolver implements Resolvers.ConsumerBindingResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerResolver.java index 2ad0270b8..9f13587b4 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ConsumerResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ConsumerBindingService; @@ -27,6 +25,8 @@ import com.expediagroup.streamplatform.streamregistry.model.Stream; import com.expediagroup.streamplatform.streamregistry.model.Zone; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ConsumerResolver implements Resolvers.ConsumerResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/DomainResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/DomainResolver.java index 1636cbe8a..1e223b080 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/DomainResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/DomainResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ import java.util.List; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.SchemaService; import com.expediagroup.streamplatform.streamregistry.model.Domain; import com.expediagroup.streamplatform.streamregistry.model.Schema; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class DomainResolver implements Resolvers.DomainResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/InfrastructureResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/InfrastructureResolver.java index cfc811d91..c3fa7bdc0 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/InfrastructureResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/InfrastructureResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ZoneService; import com.expediagroup.streamplatform.streamregistry.model.Infrastructure; import com.expediagroup.streamplatform.streamregistry.model.Zone; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class InfrastructureResolver implements Resolvers.InfrastructureResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessBindingResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessBindingResolver.java index dcc5a0f32..ab28f33a7 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessBindingResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessBindingResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.DomainService; @@ -26,6 +24,8 @@ import com.expediagroup.streamplatform.streamregistry.model.ProcessBinding; import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessBindingResolver implements Resolvers.ProcessBindingResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessResolver.java index a3af12420..1f44a5e05 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProcessResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.DomainService; import com.expediagroup.streamplatform.streamregistry.model.Domain; import com.expediagroup.streamplatform.streamregistry.model.Process; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProcessResolver implements Resolvers.ProcessResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerBindingResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerBindingResolver.java index a08917db3..5866efc76 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerBindingResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerBindingResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProducerService; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.model.ProducerBinding; import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerBindingResolver implements Resolvers.ProducerBindingResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerResolver.java index afe2cbb4b..d44a9b9b4 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ProducerResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.ProducerBindingService; @@ -27,6 +25,8 @@ import com.expediagroup.streamplatform.streamregistry.model.Stream; import com.expediagroup.streamplatform.streamregistry.model.Zone; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ProducerResolver implements Resolvers.ProducerResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/Resolvers.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/Resolvers.java index 9c70c53b2..7828eed9f 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/Resolvers.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/Resolvers.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,6 +24,7 @@ import com.expediagroup.streamplatform.streamregistry.model.*; import com.expediagroup.streamplatform.streamregistry.model.Process; import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; + import graphql.kickstart.tools.GraphQLResolver; interface Resolvers { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/SchemaResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/SchemaResolver.java index c27a02db9..09a62c318 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/SchemaResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/SchemaResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.DomainService; import com.expediagroup.streamplatform.streamregistry.model.Domain; import com.expediagroup.streamplatform.streamregistry.model.Schema; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class SchemaResolver implements Resolvers.SchemaResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamBindingResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamBindingResolver.java index a19e9302f..0a537c25b 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamBindingResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamBindingResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.InfrastructureService; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.model.Stream; import com.expediagroup.streamplatform.streamregistry.model.StreamBinding; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamBindingResolver implements Resolvers.StreamBindingResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamResolver.java index 5797aff5e..fa47dd5bc 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/StreamResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; import com.expediagroup.streamplatform.streamregistry.core.services.DomainService; @@ -25,6 +23,8 @@ import com.expediagroup.streamplatform.streamregistry.model.Schema; import com.expediagroup.streamplatform.streamregistry.model.Stream; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class StreamResolver implements Resolvers.StreamResolver { diff --git a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ZoneResolver.java b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ZoneResolver.java index d880fb7c2..96f6035a8 100644 --- a/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ZoneResolver.java +++ b/graphql/api/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/resolvers/ZoneResolver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,10 +15,10 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql.resolvers; -import lombok.RequiredArgsConstructor; - import org.springframework.stereotype.Component; +import lombok.RequiredArgsConstructor; + @Component @RequiredArgsConstructor public class ZoneResolver implements Resolvers.ZoneResolver {} diff --git a/graphql/maven-plugin/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLIntrospectionFileGeneratorMojo.java b/graphql/maven-plugin/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLIntrospectionFileGeneratorMojo.java index 64404320f..5f082ae47 100644 --- a/graphql/maven-plugin/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLIntrospectionFileGeneratorMojo.java +++ b/graphql/maven-plugin/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/GraphQLIntrospectionFileGeneratorMojo.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,15 +15,15 @@ */ package com.expediagroup.streamplatform.streamregistry.graphql; -import lombok.AccessLevel; -import lombok.RequiredArgsConstructor; -import lombok.Setter; - import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; +import lombok.AccessLevel; +import lombok.RequiredArgsConstructor; +import lombok.Setter; + @Mojo(name = "generate", defaultPhase = LifecyclePhase.GENERATE_SOURCES) @RequiredArgsConstructor(access = AccessLevel.PACKAGE) public class GraphQLIntrospectionFileGeneratorMojo extends AbstractMojo { diff --git a/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/JsonCoercingUtil.java b/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/JsonCoercingUtil.java index 848209945..6c0b41d5c 100644 --- a/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/JsonCoercingUtil.java +++ b/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/JsonCoercingUtil.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import java.util.Map; -import lombok.extern.slf4j.Slf4j; import graphql.language.ArrayValue; import graphql.language.BooleanValue; import graphql.language.EnumValue; @@ -32,6 +31,7 @@ import graphql.language.Value; import graphql.language.VariableReference; import graphql.schema.CoercingParseLiteralException; +import lombok.extern.slf4j.Slf4j; @Slf4j class JsonCoercingUtil { diff --git a/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/ObjectNodeCoercing.java b/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/ObjectNodeCoercing.java index 225fdda1e..270b5b153 100644 --- a/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/ObjectNodeCoercing.java +++ b/graphql/scalars/src/main/java/com/expediagroup/streamplatform/streamregistry/graphql/type/ObjectNodeCoercing.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,14 +18,13 @@ import java.io.IOException; import java.util.Map; -import lombok.extern.slf4j.Slf4j; - import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import graphql.language.ObjectValue; import graphql.schema.CoercingParseLiteralException; import graphql.schema.CoercingParseValueException; +import lombok.extern.slf4j.Slf4j; @Slf4j class ObjectNodeCoercing extends BaseCoercing { diff --git a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java index 7db8e5e59..05f932123 100644 --- a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java +++ b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import java.io.IOException; import java.net.ServerSocket; -import lombok.extern.slf4j.Slf4j; - import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.ClassRule; @@ -34,6 +32,8 @@ import com.expediagroup.streamplatform.streamregistry.TestUtils; import com.expediagroup.streamplatform.streamregistry.it.helpers.ITestClient; +import lombok.extern.slf4j.Slf4j; + @RunWith(Suite.class) @SuiteClasses({ DomainTestStage.class, diff --git a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamTestStage.java b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamTestStage.java index 087a23ed0..10a5e1ca6 100644 --- a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamTestStage.java +++ b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamTestStage.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/AbstractTestStage.java b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/AbstractTestStage.java index c3c046067..60b1c67a4 100644 --- a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/AbstractTestStage.java +++ b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/AbstractTestStage.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import static org.junit.Assert.assertTrue; -import junit.framework.TestCase; - import com.apollographql.apollo.api.Mutation; import org.junit.Before; @@ -26,6 +24,8 @@ import com.expediagroup.streamplatform.streamregistry.it.StreamRegistryIT; +import junit.framework.TestCase; + public abstract class AbstractTestStage { protected ITestDataFactory factory = new ITestDataFactory(getClass().getSimpleName().toLowerCase()); diff --git a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/StreamRegistryClient.java b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/StreamRegistryClient.java index 2a491deb9..2d0587233 100644 --- a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/StreamRegistryClient.java +++ b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/StreamRegistryClient.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import java.util.Optional; -import lombok.RequiredArgsConstructor; - import com.apollographql.apollo.ApolloClient; import com.apollographql.apollo.api.Mutation; import com.apollographql.apollo.api.Operation; @@ -42,6 +40,8 @@ import com.expediagroup.streamplatform.streamregistry.state.graphql.Credentials; import com.expediagroup.streamplatform.streamregistry.state.graphql.DefaultApolloClientFactory; +import lombok.RequiredArgsConstructor; + @RequiredArgsConstructor public class StreamRegistryClient { private final ApolloExecutor executor; diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Consumer.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Consumer.java index 3cf47932b..36cecd747 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Consumer.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Consumer.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ConsumerBinding.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ConsumerBinding.java index 9c6bd1bcc..6047f03df 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ConsumerBinding.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ConsumerBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerBindingKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerBindingKey; - @AllArgsConstructor @NoArgsConstructor @Data diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Domain.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Domain.java index b138bdca9..d19439952 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Domain.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Domain.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.DomainKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.DomainKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Infrastructure.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Infrastructure.java index a96d2a476..1db502397 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Infrastructure.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Infrastructure.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.InfrastructureKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.InfrastructureKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Process.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Process.java index 60d1f6bc0..e392287f1 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Process.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Process.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ import java.util.List; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessKey; +import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessKey; -import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessBinding.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessBinding.java index aee4d4007..6201e8a84 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessBinding.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ import java.util.List; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey; +import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey; -import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStream.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStream.java index 0871f0d66..b960efb5a 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStream.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStream.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; +import lombok.Value; + @Value public class ProcessInputStream { StreamKey stream; diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStreamBinding.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStreamBinding.java index 117e5cbfa..722a4c187 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStreamBinding.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessInputStreamBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; +import lombok.Value; + @Value public class ProcessInputStreamBinding { StreamBindingKey streamBindingKey; diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStream.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStream.java index 9711aef84..e01d23405 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStream.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStream.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; +import lombok.Value; + @Value public class ProcessOutputStream { StreamKey stream; diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStreamBinding.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStreamBinding.java index c90a8f30a..e988b8382 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStreamBinding.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProcessOutputStreamBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; +import lombok.Value; + @Value public class ProcessOutputStreamBinding { StreamBindingKey streamBindingKey; diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Producer.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Producer.java index 8ba87d759..c4e9646c3 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Producer.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Producer.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProducerBinding.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProducerBinding.java index a5719c3dc..647e7df6a 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProducerBinding.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/ProducerBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerBindingKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.ProducerBindingKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Schema.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Schema.java index 3edcb4539..6cdaa9cf3 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Schema.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Schema.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Specification.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Specification.java index 86ee18756..1b982b03b 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Specification.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Specification.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,11 +19,11 @@ import java.util.Collections; import java.util.List; +import com.fasterxml.jackson.databind.node.ObjectNode; + import lombok.Data; import lombok.NoArgsConstructor; -import com.fasterxml.jackson.databind.node.ObjectNode; - @Data @NoArgsConstructor public class Specification { diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Status.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Status.java index 09cba7366..904e6971d 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Status.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Status.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; - import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; + @NoArgsConstructor @EqualsAndHashCode public class Status { diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Stream.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Stream.java index d4d2813e8..8c2a6a641 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Stream.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Stream.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,13 +16,13 @@ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; +import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.SchemaKey; -import com.expediagroup.streamplatform.streamregistry.model.keys.StreamKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/StreamBinding.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/StreamBinding.java index 0366fb063..5dd0a2808 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/StreamBinding.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/StreamBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.StreamBindingKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Zone.java b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Zone.java index 2ca721819..978ae4343 100644 --- a/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Zone.java +++ b/model/src/main/java/com/expediagroup/streamplatform/streamregistry/model/Zone.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,12 +16,12 @@ package com.expediagroup.streamplatform.streamregistry.model; +import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import com.expediagroup.streamplatform.streamregistry.model.keys.ZoneKey; - @Data @AllArgsConstructor @NoArgsConstructor diff --git a/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/Converter.java b/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/Converter.java index dc9765891..5b4180836 100644 --- a/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/Converter.java +++ b/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/Converter.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,6 @@ import java.util.Optional; import java.util.stream.Collectors; -import lombok.RequiredArgsConstructor; - import com.fasterxml.jackson.databind.node.ObjectNode; import org.springframework.stereotype.Component; @@ -68,6 +66,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.status.DefaultStatus; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.RequiredArgsConstructor; + interface Converter, MK, SK extends Entity.Key, SS extends com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification> { MK convertKey(SK key); diff --git a/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/DefaultRepository.java b/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/DefaultRepository.java index 20e02174d..72f52be4e 100644 --- a/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/DefaultRepository.java +++ b/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/DefaultRepository.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,14 +22,14 @@ import java.util.Optional; import java.util.concurrent.CompletableFuture; -import lombok.RequiredArgsConstructor; - import com.expediagroup.streamplatform.streamregistry.state.EntityView; import com.expediagroup.streamplatform.streamregistry.state.EventSender; import com.expediagroup.streamplatform.streamregistry.state.model.Entity; import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.RequiredArgsConstructor; + /** * @param Model Entity * @param Model Key diff --git a/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/PurgingEntityViewListener.java b/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/PurgingEntityViewListener.java index a8120d25a..ca06acef0 100644 --- a/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/PurgingEntityViewListener.java +++ b/repository/kafka/src/main/java/com/expediagroup/streamplatform/streamregistry/repository/kafka/PurgingEntityViewListener.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,9 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.repository.kafka; -import lombok.AllArgsConstructor; -import lombok.NonNull; - import com.expediagroup.streamplatform.streamregistry.state.EntityView; import com.expediagroup.streamplatform.streamregistry.state.EntityViewListener; import com.expediagroup.streamplatform.streamregistry.state.model.Entity; @@ -25,6 +22,9 @@ import com.expediagroup.streamplatform.streamregistry.state.model.event.SpecificationDeletionEvent; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; +import lombok.AllArgsConstructor; +import lombok.NonNull; + @AllArgsConstructor class PurgingEntityViewListener implements EntityViewListener { private final EntityView entityView; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewListener.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewListener.java index 868b67b86..f4f9ef5ff 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewListener.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewListener.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.state; -import lombok.NonNull; - import com.expediagroup.streamplatform.streamregistry.state.model.Entity; import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; +import lombok.NonNull; + /** * A listener that is invoked for each event after the {@link EntityView} is fully loaded. */ diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/Entity.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/Entity.java index 38057b4b9..fd39eb4f0 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/Entity.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/Entity.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,6 @@ */ package com.expediagroup.streamplatform.streamregistry.state.model; -import lombok.AllArgsConstructor; -import lombok.NonNull; -import lombok.Value; -import lombok.With; - import com.expediagroup.streamplatform.streamregistry.state.model.specification.DefaultSpecification; import com.expediagroup.streamplatform.streamregistry.state.model.specification.ProcessBindingSpecification; import com.expediagroup.streamplatform.streamregistry.state.model.specification.ProcessSpecification; @@ -28,6 +23,11 @@ import com.expediagroup.streamplatform.streamregistry.state.model.status.DefaultStatus; import com.expediagroup.streamplatform.streamregistry.state.model.status.Status; +import lombok.AllArgsConstructor; +import lombok.NonNull; +import lombok.Value; +import lombok.With; + @Value @AllArgsConstructor public class Entity, S extends Specification> { diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/Event.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/Event.java index 821b67e9d..e472b3041 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/Event.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/Event.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ */ package com.expediagroup.streamplatform.streamregistry.state.model.event; -import lombok.NonNull; - import com.expediagroup.streamplatform.streamregistry.state.model.Entity; import com.expediagroup.streamplatform.streamregistry.state.model.Entity.DomainKey; import com.expediagroup.streamplatform.streamregistry.state.model.specification.DefaultSpecification; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.NonNull; + public interface Event, S extends Specification> { K getKey(); diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationDeletionEvent.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationDeletionEvent.java index 94e8e1ff9..0a71047f2 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationDeletionEvent.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationDeletionEvent.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ import static lombok.AccessLevel.PACKAGE; +import com.expediagroup.streamplatform.streamregistry.state.model.Entity; +import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; + import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.state.model.Entity; -import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; - @Value @RequiredArgsConstructor(access = PACKAGE) public class SpecificationDeletionEvent, S extends Specification> implements Event { diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationEvent.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationEvent.java index b3029775b..81ba01036 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationEvent.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/SpecificationEvent.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ import static lombok.AccessLevel.PACKAGE; +import com.expediagroup.streamplatform.streamregistry.state.model.Entity; +import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; + import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.state.model.Entity; -import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; - @Value @RequiredArgsConstructor(access = PACKAGE) public class SpecificationEvent, S extends Specification> implements Event { diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusDeletionEvent.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusDeletionEvent.java index c3a917fea..535a0bee1 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusDeletionEvent.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusDeletionEvent.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,13 +17,13 @@ import static lombok.AccessLevel.PACKAGE; +import com.expediagroup.streamplatform.streamregistry.state.model.Entity; +import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; + import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.Value; -import com.expediagroup.streamplatform.streamregistry.state.model.Entity; -import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; - @Value @RequiredArgsConstructor(access = PACKAGE) public class StatusDeletionEvent, S extends Specification> implements Event { diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusEvent.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusEvent.java index 4620e4f2c..42abf52c4 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusEvent.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/event/StatusEvent.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,14 +17,14 @@ import static lombok.AccessLevel.PACKAGE; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.Value; - import com.expediagroup.streamplatform.streamregistry.state.model.Entity; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.Value; + @Value @RequiredArgsConstructor(access = PACKAGE) public class StatusEvent, S extends Specification> implements Event { diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/DefaultSpecification.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/DefaultSpecification.java index fc2953cd5..e564b77fa 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/DefaultSpecification.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/DefaultSpecification.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,12 +18,12 @@ import java.util.List; import java.util.Map; +import com.fasterxml.jackson.databind.node.ObjectNode; + import lombok.NonNull; import lombok.Value; import lombok.With; -import com.fasterxml.jackson.databind.node.ObjectNode; - @Value public class DefaultSpecification implements Specification { @With diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessBindingSpecification.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessBindingSpecification.java index 1a49278e1..bd995c69e 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessBindingSpecification.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessBindingSpecification.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,13 +18,13 @@ import java.util.List; import java.util.Map; -import lombok.NonNull; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.state.model.Entity.ZoneKey; +import lombok.NonNull; +import lombok.Value; + @Value public class ProcessBindingSpecification implements Specification { @NonNull ZoneKey zone; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStream.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStream.java index a566d7718..a15db6e8f 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStream.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStream.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.state.model.specification; -import lombok.NonNull; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.state.model.Entity; +import lombok.NonNull; +import lombok.Value; + @Value public class ProcessInputStream { @NonNull Entity.StreamKey stream; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStreamBinding.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStreamBinding.java index 8ce07cd13..db03f8592 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStreamBinding.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessInputStreamBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.state.model.specification; -import lombok.NonNull; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.state.model.Entity.StreamBindingKey; +import lombok.NonNull; +import lombok.Value; + @Value public class ProcessInputStreamBinding { @NonNull StreamBindingKey streamBindingKey; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStream.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStream.java index 934b7dc1f..6c3c7b9f4 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStream.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStream.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.state.model.specification; -import lombok.NonNull; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.state.model.Entity; +import lombok.NonNull; +import lombok.Value; + @Value public class ProcessOutputStream { @NonNull Entity.StreamKey stream; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStreamBinding.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStreamBinding.java index 8f7b24f0d..88d5bbf5c 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStreamBinding.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessOutputStreamBinding.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package com.expediagroup.streamplatform.streamregistry.state.model.specification; -import lombok.NonNull; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.state.model.Entity.StreamBindingKey; +import lombok.NonNull; +import lombok.Value; + @Value public class ProcessOutputStreamBinding { @NonNull StreamBindingKey streamBindingKey; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessSpecification.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessSpecification.java index a0ceab8ae..96f1514d2 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessSpecification.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/ProcessSpecification.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,13 +18,13 @@ import java.util.List; import java.util.Map; -import lombok.NonNull; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.state.model.Entity.ZoneKey; +import lombok.NonNull; +import lombok.Value; + @Value public class ProcessSpecification implements Specification { @NonNull List zones; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/StreamSpecification.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/StreamSpecification.java index e12004c4e..1c3d46787 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/StreamSpecification.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/specification/StreamSpecification.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,13 +18,13 @@ import java.util.List; import java.util.Map; -import lombok.NonNull; -import lombok.Value; - import com.fasterxml.jackson.databind.node.ObjectNode; import com.expediagroup.streamplatform.streamregistry.state.model.Entity.SchemaKey; +import lombok.NonNull; +import lombok.Value; + @Value public class StreamSpecification implements Specification { @NonNull String description; diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/DefaultStatus.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/DefaultStatus.java index 5bdd3e6f9..be5e35295 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/DefaultStatus.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/DefaultStatus.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,14 +23,14 @@ import java.util.Set; import java.util.stream.Collectors; +import com.fasterxml.jackson.databind.node.ObjectNode; + import lombok.EqualsAndHashCode; import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.ToString; import lombok.val; -import com.fasterxml.jackson.databind.node.ObjectNode; - @EqualsAndHashCode @ToString @RequiredArgsConstructor(access = PACKAGE) diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/Status.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/Status.java index a8d5820b3..e7f924684 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/Status.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/Status.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,10 +18,10 @@ import java.util.List; import java.util.Set; -import lombok.NonNull; - import com.fasterxml.jackson.databind.node.ObjectNode; +import lombok.NonNull; + public interface Status { Set getNames(); diff --git a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/StatusEntry.java b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/StatusEntry.java index 37a79e9f1..b23854045 100644 --- a/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/StatusEntry.java +++ b/state/api/src/main/java/com/expediagroup/streamplatform/streamregistry/state/model/status/StatusEntry.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,11 @@ */ package com.expediagroup.streamplatform.streamregistry.state.model.status; +import com.fasterxml.jackson.databind.node.ObjectNode; + import lombok.NonNull; import lombok.Value; -import com.fasterxml.jackson.databind.node.ObjectNode; - @Value public class StatusEntry { @NonNull String name; diff --git a/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverter.java b/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverter.java index daa36f12b..e80a925cc 100644 --- a/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverter.java +++ b/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverter.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,11 +24,6 @@ import java.util.List; import java.util.Map; -import lombok.Getter; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.val; - import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.introspect.VisibilityChecker.Std; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -60,6 +55,11 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.StreamSpecification; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.Getter; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.val; + @RequiredArgsConstructor public class AvroConverter { private final ObjectMapper mapper = new ObjectMapper() diff --git a/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectDeserializer.java b/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectDeserializer.java index 4e7244c4f..b0a598685 100644 --- a/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectDeserializer.java +++ b/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectDeserializer.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,13 +24,13 @@ import java.util.HashMap; import java.util.function.BiConsumer; -import lombok.val; - import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; +import lombok.val; + class AvroObjectDeserializer extends JsonDeserializer { @Override public AvroObject deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { diff --git a/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectSerializer.java b/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectSerializer.java index 5bc77fc93..cafe9ae9e 100644 --- a/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectSerializer.java +++ b/state/avro/src/main/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectSerializer.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2020 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,12 +18,12 @@ import java.io.IOException; import java.util.Map; -import lombok.extern.slf4j.Slf4j; - import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import lombok.extern.slf4j.Slf4j; + @Slf4j class AvroObjectSerializer extends StdSerializer { AvroObjectSerializer() { diff --git a/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverterTest.java b/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverterTest.java index e36fc89ac..cf3e9b570 100644 --- a/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverterTest.java +++ b/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroConverterTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,8 +26,6 @@ import java.util.HashMap; import java.util.List; -import lombok.val; - import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.Test; @@ -44,6 +42,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.*; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.val; + public class AvroConverterTest { private final ObjectMapper mapper = new ObjectMapper(); diff --git a/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectModuleTest.java b/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectModuleTest.java index ebc1793a9..2bef40954 100644 --- a/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectModuleTest.java +++ b/state/avro/src/test/java/com/expediagroup/streamplatform/streamregistry/state/avro/AvroObjectModuleTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,13 +22,13 @@ import java.util.Collections; import java.util.HashMap; -import lombok.val; - import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; import org.junit.Test; +import lombok.val; + public class AvroObjectModuleTest { private final ObjectMapper mapper = new ObjectMapper() diff --git a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityView.java b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityView.java index d87c1c516..303869e78 100644 --- a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityView.java +++ b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityView.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,15 +25,15 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import com.expediagroup.streamplatform.streamregistry.state.model.Entity; +import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; +import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; + import lombok.Getter; import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.val; -import com.expediagroup.streamplatform.streamregistry.state.model.Entity; -import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; -import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; - @RequiredArgsConstructor(access = PACKAGE) public class DefaultEntityView implements EntityView { @NonNull diff --git a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewUpdater.java b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewUpdater.java index 0f4c18a81..7a6dbfc45 100644 --- a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewUpdater.java +++ b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewUpdater.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,11 +21,6 @@ import java.util.Map; import java.util.Optional; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import lombok.val; - import com.expediagroup.streamplatform.streamregistry.state.model.Entity; import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; import com.expediagroup.streamplatform.streamregistry.state.model.event.SpecificationDeletionEvent; @@ -35,6 +30,11 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; import com.expediagroup.streamplatform.streamregistry.state.model.status.DefaultStatus; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import lombok.val; + @Slf4j @RequiredArgsConstructor class DefaultEntityViewUpdater implements EntityViewUpdater { diff --git a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelator.java b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelator.java index eb43534c9..13389e333 100644 --- a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelator.java +++ b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelator.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,12 +23,12 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; +import com.expediagroup.streamplatform.streamregistry.state.internal.EventCorrelator; + import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import lombok.val; -import com.expediagroup.streamplatform.streamregistry.state.internal.EventCorrelator; - @Slf4j @RequiredArgsConstructor(access = PACKAGE) public class DefaultEventCorrelator implements EventCorrelator { diff --git a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViews.java b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViews.java index e6ea2d321..173e7d5d2 100644 --- a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViews.java +++ b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/EntityViews.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,9 +23,6 @@ import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; - import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.Tag; import io.micrometer.core.instrument.Tags; @@ -34,6 +31,9 @@ import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; + public final class EntityViews { @NonNull diff --git a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/StateValue.java b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/StateValue.java index 33de2e442..d6ccc2358 100644 --- a/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/StateValue.java +++ b/state/core/src/main/java/com/expediagroup/streamplatform/streamregistry/state/StateValue.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package com.expediagroup.streamplatform.streamregistry.state; +import com.expediagroup.streamplatform.streamregistry.state.model.Entity; + import lombok.AllArgsConstructor; import lombok.EqualsAndHashCode; import lombok.ToString; -import com.expediagroup.streamplatform.streamregistry.state.model.Entity; - @EqualsAndHashCode @ToString @AllArgsConstructor diff --git a/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewTest.java b/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewTest.java index a38b7d0c8..329a0ea34 100644 --- a/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewTest.java +++ b/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEntityViewTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,8 +36,6 @@ import java.util.Map; import java.util.Optional; -import lombok.val; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -49,6 +47,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.Entity; import com.expediagroup.streamplatform.streamregistry.state.model.Entity.DomainKey; +import lombok.val; + @RunWith(MockitoJUnitRunner.class) public class DefaultEntityViewTest { @Mock private EventReceiver receiver; diff --git a/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelatorTest.java b/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelatorTest.java index e28d6c462..99848df9e 100644 --- a/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelatorTest.java +++ b/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/DefaultEventCorrelatorTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,10 +22,10 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; -import lombok.val; - import org.junit.Test; +import lombok.val; + public class DefaultEventCorrelatorTest { private final Map> futures = new ConcurrentHashMap<>(); private final DefaultEventCorrelator underTest = new DefaultEventCorrelator(futures); diff --git a/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewUpdaterTest.java b/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewUpdaterTest.java index 81728394e..80489950e 100644 --- a/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewUpdaterTest.java +++ b/state/core/src/test/java/com/expediagroup/streamplatform/streamregistry/state/EntityViewUpdaterTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,8 +36,6 @@ import java.util.Map; import java.util.Optional; -import lombok.val; - import org.junit.After; import org.junit.Test; @@ -47,6 +45,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.DefaultSpecification; import com.expediagroup.streamplatform.streamregistry.state.model.status.DefaultStatus; +import lombok.val; + public abstract class EntityViewUpdaterTest { private final Map, StateValue> entities = new HashMap<>(); diff --git a/state/example/src/main/java/com/expediagroup/streamplatform/streamregistry/state/example/ExampleAgent.java b/state/example/src/main/java/com/expediagroup/streamplatform/streamregistry/state/example/ExampleAgent.java index b7865b0e3..6b9d71171 100644 --- a/state/example/src/main/java/com/expediagroup/streamplatform/streamregistry/state/example/ExampleAgent.java +++ b/state/example/src/main/java/com/expediagroup/streamplatform/streamregistry/state/example/ExampleAgent.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,12 +23,8 @@ import java.util.concurrent.CompletableFuture; import java.util.stream.Stream; -import lombok.RequiredArgsConstructor; - import com.fasterxml.jackson.databind.ObjectMapper; -import jakarta.annotation.PostConstruct; - import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @@ -44,6 +40,9 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Tag; +import jakarta.annotation.PostConstruct; +import lombok.RequiredArgsConstructor; + @EnableScheduling @Component @RequiredArgsConstructor diff --git a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutor.java b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutor.java index d6a0443da..44db3a7c4 100644 --- a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutor.java +++ b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutor.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,11 +20,6 @@ import java.util.List; import java.util.concurrent.CompletableFuture; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import lombok.val; - import com.apollographql.apollo.ApolloCall; import com.apollographql.apollo.ApolloClient; import com.apollographql.apollo.api.Error; @@ -37,6 +32,11 @@ import org.jetbrains.annotations.NotNull; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import lombok.val; + @Slf4j @RequiredArgsConstructor public class ApolloExecutor { diff --git a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloResponseException.java b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloResponseException.java index 713d575d9..3f0154da3 100644 --- a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloResponseException.java +++ b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloResponseException.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,10 +15,10 @@ */ package com.expediagroup.streamplatform.streamregistry.state.graphql; -import lombok.Getter; - import com.apollographql.apollo.api.Response; +import lombok.Getter; + @Getter public class ApolloResponseException extends IllegalStateException { diff --git a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactory.java b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactory.java index 43a5222cb..f45071f04 100644 --- a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactory.java +++ b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactory.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,8 @@ import java.util.function.Consumer; +import com.apollographql.apollo.ApolloClient; + import lombok.AllArgsConstructor; import lombok.NonNull; import lombok.SneakyThrows; @@ -27,8 +29,6 @@ import okhttp3.OkHttpClient; import okhttp3.OkHttpClient.Builder; -import com.apollographql.apollo.ApolloClient; - @AllArgsConstructor public class DefaultApolloClientFactory implements ApolloClientFactory { @NonNull private final String streamRegistryUrl; diff --git a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverter.java b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverter.java index ad03b63e2..6566561d7 100644 --- a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverter.java +++ b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverter.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +21,6 @@ import java.util.Map; import java.util.stream.Collectors; -import lombok.val; - import com.apollographql.apollo.api.InputType; import com.apollographql.apollo.api.Mutation; @@ -72,6 +70,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.StreamSpecification; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.val; + class GraphQLConverter { private final Map>, Converter> converters = new HashMap>, Converter>() {{ diff --git a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSender.java b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSender.java index ed9abb3c5..884ac3e51 100644 --- a/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSender.java +++ b/state/graphql-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSender.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,10 +19,6 @@ import java.util.concurrent.CompletableFuture; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.val; - import com.apollographql.apollo.ApolloClient; import com.expediagroup.streamplatform.streamregistry.state.EventSender; @@ -30,6 +26,10 @@ import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.val; + @RequiredArgsConstructor(access = PACKAGE) public class GraphQLEventSender implements EventSender { @NonNull private final ApolloExecutor executor; diff --git a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutorTest.java b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutorTest.java index 49d838ad8..8a7e60797 100644 --- a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutorTest.java +++ b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ApolloExecutorTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import java.util.concurrent.CompletableFuture; -import lombok.val; - import com.apollographql.apollo.ApolloClient; import com.apollographql.apollo.ApolloMutationCall; import com.apollographql.apollo.api.Mutation; @@ -41,6 +39,8 @@ import com.expediagroup.streamplatform.streamregistry.state.graphql.ApolloExecutor.Callback; +import lombok.val; + @RunWith(MockitoJUnitRunner.class) public class ApolloExecutorTest { @Mock private ApolloClient client; diff --git a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactoryTest.java b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactoryTest.java index ff256da6b..f342ad48d 100644 --- a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactoryTest.java +++ b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/DefaultApolloClientFactoryTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,9 +25,6 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -import lombok.val; -import okhttp3.OkHttpClient; - import com.apollographql.apollo.ApolloClient; import org.junit.Test; @@ -36,6 +33,9 @@ import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; +import lombok.val; +import okhttp3.OkHttpClient; + @RunWith(MockitoJUnitRunner.class) public class DefaultApolloClientFactoryTest { @Mock private ApolloClient.Builder builder; diff --git a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverterTest.java b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverterTest.java index 85714ac92..f4db0cca9 100644 --- a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverterTest.java +++ b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLConverterTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,6 @@ import java.util.List; import java.util.Map; -import lombok.val; - import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -39,6 +37,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.*; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.val; + public class GraphQLConverterTest { private final GraphQLConverter underTest = new GraphQLConverter(); diff --git a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSenderTest.java b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSenderTest.java index baf594d7f..beed8c6c6 100644 --- a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSenderTest.java +++ b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/GraphQLEventSenderTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,8 +23,6 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Function; -import lombok.val; - import com.apollographql.apollo.api.Mutation; import com.apollographql.apollo.api.Response; @@ -36,6 +34,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.event.Event; +import lombok.val; + @RunWith(MockitoJUnitRunner.class) public class GraphQLEventSenderTest { @Mock private ApolloExecutor executor; diff --git a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ObjectNodeTypeAdapterTest.java b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ObjectNodeTypeAdapterTest.java index 5b232aa73..f253b57c0 100644 --- a/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ObjectNodeTypeAdapterTest.java +++ b/state/graphql-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/graphql/ObjectNodeTypeAdapterTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import java.util.Collections; -import lombok.val; - import com.apollographql.apollo.api.CustomTypeValue; import com.apollographql.apollo.api.CustomTypeValue.GraphQLJsonObject; import com.apollographql.apollo.api.CustomTypeValue.GraphQLString; @@ -30,6 +28,8 @@ import org.junit.Test; +import lombok.val; + public class ObjectNodeTypeAdapterTest { private final ObjectMapper mapper = new ObjectMapper(); diff --git a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/AgentData.java b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/AgentData.java index 85d932d79..d2f97e95d 100644 --- a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/AgentData.java +++ b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/AgentData.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,10 +24,6 @@ import java.util.List; import java.util.Map; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.val; - import com.fasterxml.jackson.databind.ObjectMapper; import com.expediagroup.streamplatform.streamregistry.state.model.Entity; @@ -40,6 +36,10 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.Tag; import com.expediagroup.streamplatform.streamregistry.state.model.status.DefaultStatus; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.val; + @AllArgsConstructor(access = PRIVATE) @Getter public final class AgentData { diff --git a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java index 2a3bbde85..92b818648 100644 --- a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java +++ b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,11 +36,6 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; -import lombok.Getter; -import lombok.NonNull; -import lombok.SneakyThrows; -import lombok.val; - import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.simple.SimpleMeterRegistry; @@ -67,6 +62,11 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.DefaultSpecification; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; +import lombok.Getter; +import lombok.NonNull; +import lombok.SneakyThrows; +import lombok.val; + public class AgentIT { private final MeterRegistry meterRegistry = new SimpleMeterRegistry(); diff --git a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java index 269ceae4c..4106211ca 100644 --- a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java +++ b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2023 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,8 +27,6 @@ import java.util.Map; import java.util.Optional; -import lombok.val; - import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -51,6 +49,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.status.DefaultStatus; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.val; + public class StateIT { @Rule public KafkaContainer kafka = new KafkaContainer(TestUtils.KAFKA_IMAGE_NAME); diff --git a/state/kafka-receiver/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiver.java b/state/kafka-receiver/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiver.java index 9614629c5..0c814316a 100644 --- a/state/kafka-receiver/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiver.java +++ b/state/kafka-receiver/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiver.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,13 +42,6 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.atomic.*; -import lombok.Builder; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.Value; -import lombok.extern.slf4j.Slf4j; -import lombok.val; - import io.confluent.kafka.serializers.KafkaAvroDeserializer; import org.apache.kafka.clients.consumer.ConsumerRecord; @@ -65,6 +58,13 @@ import com.expediagroup.streamplatform.streamregistry.state.model.event.StatusDeletionEvent; import com.expediagroup.streamplatform.streamregistry.state.model.event.StatusEvent; +import lombok.Builder; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.Value; +import lombok.extern.slf4j.Slf4j; +import lombok.val; + @Slf4j @RequiredArgsConstructor(access = PACKAGE) public class KafkaEventReceiver implements EventReceiver { diff --git a/state/kafka-receiver/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiverTest.java b/state/kafka-receiver/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiverTest.java index 8e485efbf..6d87606f5 100644 --- a/state/kafka-receiver/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiverTest.java +++ b/state/kafka-receiver/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventReceiverTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,8 +41,6 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.atomic.*; -import lombok.val; - import io.confluent.kafka.serializers.KafkaAvroDeserializer; import org.apache.kafka.clients.consumer.ConsumerRecord; @@ -71,6 +69,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.event.*; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; +import lombok.val; + @RunWith(MockitoJUnitRunner.Silent.class) public class KafkaEventReceiverTest { @Mock diff --git a/state/kafka-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSender.java b/state/kafka-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSender.java index 46a54682d..02ee0bcdd 100644 --- a/state/kafka-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSender.java +++ b/state/kafka-sender/src/main/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSender.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,13 +30,6 @@ import java.util.Map; import java.util.concurrent.CompletableFuture; -import lombok.Builder; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.Value; -import lombok.extern.slf4j.Slf4j; -import lombok.val; - import io.confluent.kafka.serializers.KafkaAvroSerializer; import org.apache.kafka.clients.producer.Callback; @@ -57,6 +50,13 @@ import com.expediagroup.streamplatform.streamregistry.state.model.event.StatusEvent; import com.expediagroup.streamplatform.streamregistry.state.model.specification.Specification; +import lombok.Builder; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.Value; +import lombok.extern.slf4j.Slf4j; +import lombok.val; + @Slf4j @RequiredArgsConstructor(access = PACKAGE) public class KafkaEventSender implements EventSender { diff --git a/state/kafka-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSenderTest.java b/state/kafka-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSenderTest.java index 629780973..f2d9a1979 100644 --- a/state/kafka-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSenderTest.java +++ b/state/kafka-sender/src/test/java/com/expediagroup/streamplatform/streamregistry/state/kafka/KafkaEventSenderTest.java @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2024 Expedia, Inc. + * Copyright (C) 2018-2025 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,8 +32,6 @@ import java.util.List; import java.util.Map; -import lombok.val; - import com.fasterxml.jackson.databind.ObjectMapper; import io.confluent.kafka.serializers.KafkaAvroSerializer; @@ -65,6 +63,8 @@ import com.expediagroup.streamplatform.streamregistry.state.model.specification.Principal; import com.expediagroup.streamplatform.streamregistry.state.model.status.StatusEntry; +import lombok.val; + @RunWith(MockitoJUnitRunner.class) public class KafkaEventSenderTest { @Mock private Config config;