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..45157ea35 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-2024 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..b8983a598 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-2024 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..65e43e142 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 @@ -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..88b6152f9 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 @@ -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..5d393caa5 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 @@ -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..926f5ff44 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 @@ -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..199193915 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 @@ -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..3d27fc105 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 @@ -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; @@ -46,6 +43,9 @@ 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 { 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..770c36904 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 @@ -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..7391a323b 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 @@ -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..65f90ce8a 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 @@ -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..63fddf82f 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 @@ -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 07a4e3cf2..4dd216a0d 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 @@ -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..ee6c743f8 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 @@ -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..cd62ca53d 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-2024 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..e19fdb433 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-2024 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..9e970a57f 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-2024 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..470e4ab72 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-2024 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..e95c50d7c 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-2024 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..3fccaa14d 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-2024 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..dc00c16bf 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-2024 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..80b52648d 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-2024 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..016499365 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-2024 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..404707930 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-2024 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..936328c33 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-2024 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..65fef10fe 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-2024 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..ca3d45bf6 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-2024 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..bd4a8cb11 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-2024 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..169eff995 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-2024 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..7566bcd81 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 @@ -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..0ca245c80 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-2024 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..9d37aff3c 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-2024 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..99675d431 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-2024 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..1b4777099 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-2024 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..baf3bf2e2 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-2024 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..bea8da37e 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-2024 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..ea84e8566 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-2024 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..febe6c919 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-2024 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/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..860b6df3c 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-2024 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..85739c0ad 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-2024 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..59f3b80e0 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-2024 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..54a8b492c 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-2024 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..8732e528c 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-2024 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..a9f3ae1a8 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-2024 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..a19e49e76 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-2024 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..856a10676 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-2024 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..8f42ae77d 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-2024 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..0f0060a2a 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-2024 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..03c5f00ac 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-2024 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..8ac572eab 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-2024 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..eac49470d 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-2024 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..caa7b5605 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-2024 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..cbda710ce 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-2024 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..b019fb834 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-2024 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..25b09d841 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-2024 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..da372c9b9 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-2024 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..7a0fdda36 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-2024 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..ac7d2c096 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-2024 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..41d79d8e5 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-2024 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..be22776a8 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-2024 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..4b3103777 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-2024 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..f38a05ed9 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 @@ -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..b46910776 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 @@ -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..caf52118f 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 @@ -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..30dafec52 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 @@ -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..424450206 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-2024 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..17db5d2c1 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-2024 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..4cbb18bd0 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 @@ -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..09f133832 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 @@ -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..ac3e217a9 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 @@ -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..efaab8301 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 @@ -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..801b9445f 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 @@ -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..c8c350d2e 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 @@ -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..7bc106c6b 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-2024 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..435ad2bb1 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-2024 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..268d136ac 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-2024 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..48168435d 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-2024 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..481161491 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-2024 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..791157167 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-2024 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..9a9d3476a 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-2024 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..0b67098ad 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-2024 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..04cf54a65 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-2024 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..f6b32a5e9 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-2024 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..c7d50b721 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-2024 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..66392af95 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-2024 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..d2e94fde2 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-2024 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..e4bcb7246 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-2024 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..318589339 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-2024 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..29da3e7a0 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-2024 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..ec63dd873 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-2024 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..b42fc8e38 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-2024 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..51d28a944 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-2024 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..3371bacdd 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-2024 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..8c611766c 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-2024 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..5066297d5 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-2024 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..589e07d43 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-2024 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..96b6495fc 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-2024 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..e90f5b695 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-2024 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..6a8fb4a8b 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-2024 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/pom.xml b/graphql/maven-plugin/pom.xml index b69476d14..467af8d5f 100644 --- a/graphql/maven-plugin/pom.xml +++ b/graphql/maven-plugin/pom.xml @@ -33,12 +33,10 @@ org.apache.maven maven-plugin-api - 3.6.1 org.apache.maven.plugin-tools maven-plugin-annotations - 3.6.0 provided 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..90d5b8e73 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-2024 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..36c2b9710 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-2024 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..727af2cd7 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-2024 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/pom.xml b/it/pom.xml index afdd6b3a5..d8cb03d72 100644 --- a/it/pom.xml +++ b/it/pom.xml @@ -105,7 +105,7 @@ com.github.sparow199 apollo-client-maven-plugin - 3.3.1 + ${apollo-client-maven-plugin.version} graphql-generate-sources @@ -129,7 +129,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.1.0 + ${build-helper-maven-plugin.version} add-test-sources 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..999d3a9de 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-2024 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/helpers/AbstractTestStage.java b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/helpers/AbstractTestStage.java index c3c046067..7896d7ea0 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-2024 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..6af63ee3e 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-2024 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..76c875cd3 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 @@ -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..c0f89753e 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 @@ -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..3ac6f1e4b 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 @@ -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..9e45521dc 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 @@ -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..835e2513c 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 @@ -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..3ccdee67b 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 @@ -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..a516bd693 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-2024 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..72ec36d52 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-2024 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..b8e53aba9 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-2024 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..02fad80c3 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-2024 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..890c1293b 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 @@ -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..ed0c7ebdb 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 @@ -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..b8ebcc4df 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 @@ -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..9ef535d22 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-2024 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..43eb9de90 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-2024 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..c07f2b8ed 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 @@ -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..85fbae4cf 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 @@ -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..a8e9b9762 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 @@ -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/pom.xml b/pom.xml index b04578522..0a190683f 100644 --- a/pom.xml +++ b/pom.xml @@ -43,11 +43,13 @@ app + bom core graphql/api graphql/maven-plugin graphql/scalars handler-spi + it model repository/api repository/kafka @@ -60,8 +62,6 @@ state/it state/kafka-sender state/kafka-receiver - it - bom @@ -70,30 +70,34 @@ UTF-8 0.8.11 - 1.10.0 - 7.5.2 + 1.12.0 + 7.7.2 1.11.3 2.5.14 - 3.1.6 - 32.1.3-jre + 4.2.2 + 33.3.1-jre 21.0 - 1.8.22 - 24.0.1 + 2.1.0 + 26.0.1 1.7.26 - 2.0 - 3.1.6 - 1.18.3 - 2.17.1 - 3.3.3 + 2.3 + 3.3.6 + 1.20.4 + 2.24.2 + 3.4.0 + 3.9.9 + 3.15.1 - 1.24.0 - 3.0.0-M3 - 3.0.0-M2 - 3.1.0 - 3.8.0 - 3.10.1 - 3.4.0 + 2.43.0 + 3.5.2 + 3.5.0 + 3.11.2 + 3.13.0 + 3.15.1 + 3.3.1 + 3.6.0 + 3.4.4 dockerBuild @@ -119,7 +123,6 @@ - org.apache.avro avro @@ -184,6 +187,17 @@ kotlin-reflect ${kotlin.version} + + org.apache.maven + maven-plugin-api + ${maven-plugin-api.version} + + + org.apache.maven.plugin-tools + maven-plugin-annotations + ${maven-plugin-annotations.version} + + org.awaitility awaitility 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..18e89d844 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-2024 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..23945ffbf 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 @@ -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..e2bf4e781 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-2024 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..53826a153 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-2024 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..07ab8ce97 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 @@ -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..d03fb9ef7 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-2024 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..a9cd29a9b 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-2024 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..8492ddfd0 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-2024 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..19b7451b7 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-2024 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..5595eba97 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-2024 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..771cb0662 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-2024 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..539c81db4 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-2024 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..af4d11f9d 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-2024 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..35a34588c 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-2024 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..32f29ba0b 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-2024 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..86591d80e 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-2024 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..90b15658a 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-2024 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..793929d82 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-2024 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..0aed15eed 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-2024 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..ebed8f0be 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-2024 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..465a417b6 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-2024 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..0eb532ee8 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-2024 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..7ec985ae9 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-2024 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..34278fef0 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-2024 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..7c122ea4f 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-2024 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..32aaa3b72 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-2024 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..d85653c75 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-2024 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..629f86fef 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-2024 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..e21995120 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-2024 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..3d0ff3b1d 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-2024 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..66bd0393e 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-2024 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..2cfbf6e3c 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-2024 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..282ff3a5b 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-2024 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..6480e121e 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-2024 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..4c0f30855 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-2024 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/pom.xml b/state/graphql-sender/pom.xml index e8fe3bf09..276060c79 100644 --- a/state/graphql-sender/pom.xml +++ b/state/graphql-sender/pom.xml @@ -96,7 +96,7 @@ com.github.sparow199 apollo-client-maven-plugin - 3.3.1 + ${apollo-client-maven-plugin.version} graphql-generate-sources 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..5f392c9f5 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-2024 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..898e6f359 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-2024 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..445e1aec0 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-2024 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..903aae9ee 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-2024 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..1135a29c9 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-2024 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..b0d477837 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-2024 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..49c91402a 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-2024 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..1beea9a0f 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-2024 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..15c645108 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-2024 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..1c5f9fcd0 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-2024 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..e3a45708b 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-2024 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..dcbfc34db 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-2024 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..1ea9fd035 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-2024 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..a476f1ee7 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 @@ -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..013895360 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 @@ -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..dd10a4221 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 @@ -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..89e8b6695 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 @@ -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;