diff --git a/base-api-client/pom.xml b/base-api-client/pom.xml index 62e292382..d6fafb2ac 100644 --- a/base-api-client/pom.xml +++ b/base-api-client/pom.xml @@ -6,7 +6,7 @@ com.cloudesire.platform cloudesire-api-client-root - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT base-api-client @@ -20,7 +20,7 @@ com.cloudesire.platform common-dto - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT com.squareup.retrofit2 @@ -53,9 +53,9 @@ 2.16.1 - javax.validation - validation-api - 2.0.1.Final + jakarta.validation + jakarta.validation-api + 3.0.2 diff --git a/base-api-client/src/main/java/com/cloudesire/platform/apiclient/response/error/ErrorResponseEntry.java b/base-api-client/src/main/java/com/cloudesire/platform/apiclient/response/error/ErrorResponseEntry.java index 0d16d3891..c0ec194a9 100644 --- a/base-api-client/src/main/java/com/cloudesire/platform/apiclient/response/error/ErrorResponseEntry.java +++ b/base-api-client/src/main/java/com/cloudesire/platform/apiclient/response/error/ErrorResponseEntry.java @@ -3,7 +3,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.liberologico.cloudesire.common.Slugger; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.io.Serializable; import java.util.HashMap; import java.util.Map; diff --git a/cloudesire-api-client-dto/pom.xml b/cloudesire-api-client-dto/pom.xml index bebfdfff2..01d528f15 100644 --- a/cloudesire-api-client-dto/pom.xml +++ b/cloudesire-api-client-dto/pom.xml @@ -4,7 +4,7 @@ com.cloudesire.platform cloudesire-api-client-root - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT cloudesire-api-client-dto @@ -17,7 +17,7 @@ com.cloudesire.platform base-api-client - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT org.hibernate.validator diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AccessControlDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AccessControlDTO.java index 2a074b26b..919540355 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AccessControlDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AccessControlDTO.java @@ -3,7 +3,7 @@ import com.cloudesire.platform.apiclient.dto.model.enums.Permission; import com.cloudesire.platform.apiclient.dto.model.enums.UserRole; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AddressDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AddressDTO.java index a971462c9..b6cb345e2 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AddressDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/AddressDTO.java @@ -3,7 +3,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.Size; import java.io.Serializable; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApiEndpointDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApiEndpointDTO.java index ed4da28f1..9f4ee76f6 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApiEndpointDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApiEndpointDTO.java @@ -3,8 +3,8 @@ import com.liberologico.cloudesire.common.enums.HttpMethod; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.util.Objects; @Schema( description = "A billed HTTP endpoint" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialDTO.java index 771e0fb6b..415005083 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialDTO.java @@ -1,7 +1,7 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.util.Objects; abstract class ApplicationCredentialDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialInputDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialInputDTO.java index 475608a84..e3e267a5c 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialInputDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationCredentialInputDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationDTO.java index e6d694031..b3e6e43ad 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileDTO.java index 57b42d718..7f9c86d55 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileDTO.java @@ -4,8 +4,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.NotEmpty; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileEnvironmentDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileEnvironmentDTO.java index 8e6b92c78..73317239d 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileEnvironmentDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationFileEnvironmentDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Objects; @Schema( description = "Environment variables for an application" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationMetricDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationMetricDTO.java index 02476c229..48c8063b5 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationMetricDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ApplicationMetricDTO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Objects; public class ApplicationMetricDTO extends BaseEntityDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BandwidthPricingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BandwidthPricingDTO.java index cf34c9380..61fbd6085 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BandwidthPricingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BandwidthPricingDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseInvoiceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseInvoiceDTO.java index 9d0cfc96c..6cc1b1de1 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseInvoiceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseInvoiceDTO.java @@ -1,7 +1,7 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Date; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseOrderDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseOrderDTO.java index 4005237eb..3518c045a 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseOrderDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseOrderDTO.java @@ -6,8 +6,8 @@ import com.liberologico.cloudesire.common.enums.OSType; import com.liberologico.cloudesire.common.enums.dto.ActionUrlDTO; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Date; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseResellingPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseResellingPriceDTO.java index 3f5861fb3..e5d1942d0 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseResellingPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseResellingPriceDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.Objects; abstract class BaseResellingPriceDTO extends BaseEntityDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseSubscriptionV1DTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseSubscriptionV1DTO.java index 6d38e795c..c086d5adf 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseSubscriptionV1DTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BaseSubscriptionV1DTO.java @@ -7,7 +7,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.Length; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.math.BigDecimal; import java.math.BigInteger; import java.util.Date; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetAmountDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetAmountDTO.java index ec7639e33..7541addb7 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetAmountDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetAmountDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetDTO.java index abd2b5f69..b108b6a04 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetFilterDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetFilterDTO.java index dfd019c07..07121d945 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetFilterDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetFilterDTO.java @@ -3,8 +3,8 @@ import com.cloudesire.platform.apiclient.dto.model.enums.CalendarPeriod; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetPeriodDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetPeriodDTO.java index 0e5033fa3..c3b0cf601 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetPeriodDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetPeriodDTO.java @@ -3,7 +3,7 @@ import com.cloudesire.platform.apiclient.dto.model.enums.CalendarPeriod; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.Objects; @Schema( description = "Timeframe definition for a billing budget. Either a calendar or a custom period can be defined." ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetThresholdDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetThresholdDTO.java index d3a88552d..ddfcc2d1f 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetThresholdDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingBudgetThresholdDTO.java @@ -3,10 +3,10 @@ import com.liberologico.cloudesire.common.Regexp; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Email; -import javax.validation.constraints.Max; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.time.ZonedDateTime; import java.util.List; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemDTO.java index 4a0d26454..0956f0d9f 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemDTO.java @@ -9,9 +9,9 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemResellingPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemResellingPriceDTO.java index dad7fbcca..06f9b2b38 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemResellingPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemResellingPriceDTO.java @@ -1,7 +1,7 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemSellinPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemSellinPriceDTO.java index 107fe7797..276d5b71a 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemSellinPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemSellinPriceDTO.java @@ -1,7 +1,7 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueDTO.java index 8e47eccf7..465fd2123 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueDTO.java @@ -2,11 +2,11 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.DecimalMin; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.DecimalMin; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueV1DTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueV1DTO.java index c86d84aa6..e35463328 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueV1DTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BillingItemValueV1DTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Min; +import jakarta.validation.constraints.Min; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetDTO.java index 39846750b..6b4804c21 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetDTO.java @@ -4,8 +4,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetInputDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetInputDTO.java index a06f671bb..df904e52c 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetInputDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/BudgetInputDTO.java @@ -5,9 +5,9 @@ import com.liberologico.cloudesire.common.enums.OSType; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Max; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.util.Date; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CardDataDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CardDataDTO.java index 7aa7c69a5..c270a5753 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CardDataDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CardDataDTO.java @@ -5,7 +5,7 @@ import org.hibernate.validator.constraints.CreditCardNumber; import org.hibernate.validator.constraints.NotEmpty; -import javax.validation.constraints.Pattern; +import jakarta.validation.constraints.Pattern; import java.util.HashMap; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartDTO.java index 538a0023d..54cfe9557 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartDTO.java @@ -1,7 +1,7 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.Date; import java.util.List; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartItemDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartItemDTO.java index ae526a219..f36026d03 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartItemDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CartItemDTO.java @@ -2,9 +2,9 @@ import com.liberologico.cloudesire.common.enums.OSType; -import javax.validation.Valid; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.util.List; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudCredentialDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudCredentialDTO.java index 1b1fe821c..f0f3c73f0 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudCredentialDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudCredentialDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Objects; import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingDTO.java index 3973484ab..75c55546c 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingResellingPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingResellingPriceDTO.java index 3fce92680..b50d6ca61 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingResellingPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingResellingPriceDTO.java @@ -2,8 +2,8 @@ import com.cloudesire.platform.apiclient.dto.model.enums.ResellingConfigurationType; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingSellinPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingSellinPriceDTO.java index 97db13d06..c1f45f30c 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingSellinPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CloudPricingSellinPriceDTO.java @@ -2,8 +2,8 @@ import com.cloudesire.platform.apiclient.dto.model.enums.ResellingConfigurationType; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CommentDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CommentDTO.java index 5b2f85df7..fb38b9e93 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CommentDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CommentDTO.java @@ -3,8 +3,8 @@ import com.cloudesire.platform.apiclient.dto.model.enums.HttpMethods; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Date; import java.util.Objects; import java.util.Set; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyDTO.java index 158c576be..a895d61c9 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyDTO.java @@ -6,8 +6,8 @@ import com.liberologico.cloudesire.common.Regexp; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Email; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Size; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyGroupDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyGroupDTO.java index 70f73cba2..7679306fc 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyGroupDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CompanyGroupDTO.java @@ -2,9 +2,9 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.util.Objects; public class CompanyGroupDTO extends NamedEntityDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ConfigurationParameterDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ConfigurationParameterDTO.java index 7430e0781..e31795cb4 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ConfigurationParameterDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ConfigurationParameterDTO.java @@ -5,11 +5,11 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.Valid; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; +import jakarta.validation.constraints.Size; import java.io.Serializable; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CountedProductDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CountedProductDTO.java index 03edf3034..51ebf945c 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CountedProductDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CountedProductDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; +import jakarta.validation.Valid; public class CountedProductDTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CouponDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CouponDTO.java index 80a9e86fd..032cf771e 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CouponDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CouponDTO.java @@ -9,11 +9,11 @@ import org.apache.commons.lang3.ObjectUtils; import org.hibernate.validator.constraints.Length; -import javax.validation.Valid; -import javax.validation.constraints.Email; -import javax.validation.constraints.Max; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Date; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspArmProductDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspArmProductDTO.java index 285ebff81..19b329e5f 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspArmProductDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspArmProductDTO.java @@ -4,7 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspProductDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspProductDTO.java index e36282480..57916bb4a 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspProductDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CspProductDTO.java @@ -4,7 +4,7 @@ import com.cloudesire.platform.apiclient.dto.model.enums.ProductType; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomCostRuleDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomCostRuleDTO.java index 9abdea5c4..27247a94c 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomCostRuleDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomCostRuleDTO.java @@ -2,7 +2,7 @@ import com.cloudesire.platform.apiclient.dto.model.enums.CustomCostRuleType; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.util.Objects; public class CustomCostRuleDTO implements DTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomOrderLineDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomOrderLineDTO.java index 18d3e418c..19733df5b 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomOrderLineDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomOrderLineDTO.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomPeriodDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomPeriodDTO.java index 1ae792260..1e192dead 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomPeriodDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomPeriodDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.time.LocalDate; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomResellingPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomResellingPriceDTO.java index 5f242f5e8..0b4cfb9c1 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomResellingPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomResellingPriceDTO.java @@ -5,9 +5,9 @@ import com.cloudesire.platform.apiclient.dto.annotations.UnsupportedAPI; import com.cloudesire.platform.apiclient.dto.model.enums.CustomCostRuleType; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomSellinPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomSellinPriceDTO.java index 603e3fc2a..8f01e67a9 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomSellinPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/CustomSellinPriceDTO.java @@ -4,9 +4,9 @@ import com.cloudesire.platform.apiclient.dto.annotations.FieldAPI; import com.cloudesire.platform.apiclient.dto.model.enums.CustomCostRuleType; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DependencyDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DependencyDTO.java index cce5a3471..4348149b1 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DependencyDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DependencyDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Objects; @Schema( description = "Define stack requirements for a vendor ApplicationFile" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorCatalogDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorCatalogDTO.java index 79f24560a..b3e099079 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorCatalogDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorCatalogDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.Date; import java.util.Objects; import java.util.Set; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorPricingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorPricingDTO.java index 330c4ce9c..1ad0497a5 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorPricingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/DistributorPricingDTO.java @@ -2,9 +2,9 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointDTO.java index 3824eb0f9..f51905a34 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointDTO.java @@ -4,8 +4,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.util.Objects; import static com.cloudesire.platform.apiclient.dto.model.constants.ErrorKeys.INVALID_SIZE; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointPatternDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointPatternDTO.java index 84fd7bca4..5366ffe28 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointPatternDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EndpointPatternDTO.java @@ -3,9 +3,9 @@ import com.cloudesire.platform.apiclient.dto.model.enums.EndpointType; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.util.Objects; public class EndpointPatternDTO extends BaseEntityDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EntryDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EntryDTO.java index 685c1a00f..91e94fcc6 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EntryDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EntryDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; @Schema( description = "A name/value pair" ) public class EntryDTO implements DTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EnvironmentDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EnvironmentDTO.java index c66759999..2d8e700c8 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EnvironmentDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EnvironmentDTO.java @@ -14,14 +14,14 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.Valid; -import javax.validation.constraints.AssertTrue; -import javax.validation.constraints.Email; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; -import javax.validation.constraints.Positive; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.AssertTrue; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; +import jakarta.validation.constraints.Positive; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; @@ -1526,19 +1526,19 @@ public SelfBilling getSelfBilling() public void setSelfBilling( Object selfBilling ) { /* @deprecated */ - if ( selfBilling instanceof Boolean && (Boolean) selfBilling ) + if ( selfBilling instanceof Boolean bSelfBilling && bSelfBilling ) { this.selfBilling = SelfBilling.PER_PLAN; } - if ( selfBilling instanceof String ) + if ( selfBilling instanceof String sSelfBilling ) { - this.selfBilling = SelfBilling.valueOf( (String) selfBilling ); + this.selfBilling = SelfBilling.valueOf( sSelfBilling ); } - if ( selfBilling instanceof SelfBilling ) + if ( selfBilling instanceof SelfBilling oSelfBilling ) { - this.selfBilling = (SelfBilling) selfBilling; + this.selfBilling = oSelfBilling; } } diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EventDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EventDTO.java index d2c05e4f7..7e3aad4a5 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EventDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/EventDTO.java @@ -6,9 +6,9 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.Valid; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; import java.util.Date; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/FileDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/FileDTO.java index f83897f21..67b2e28ea 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/FileDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/FileDTO.java @@ -4,8 +4,8 @@ import com.liberologico.cloudesire.common.validators.ApplicationFileURL; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; import java.util.Date; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingDTO.java index 8931bf5c2..4c2a88b64 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingDTO.java @@ -6,9 +6,9 @@ import com.liberologico.cloudesire.common.enums.OsFamily; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingPatchDTO.java index 16f6c357b..96d47737b 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstancePricingPatchDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; public class InstancePricingPatchDTO extends PricingPatchDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstanceTypeDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstanceTypeDTO.java index f8682d470..6af6f7153 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstanceTypeDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InstanceTypeDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Objects; @Schema( description = "VM instance sizing" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InvoiceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InvoiceDTO.java index ccb07c4b3..89333cf6b 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InvoiceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/InvoiceDTO.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Date; import java.util.EnumSet; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ItalianElectronicInvoicingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ItalianElectronicInvoicingDTO.java index 161c53068..a2d3bbf98 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ItalianElectronicInvoicingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ItalianElectronicInvoicingDTO.java @@ -3,8 +3,8 @@ import com.liberologico.cloudesire.common.Regexp; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.Email; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Size; import java.util.Objects; @Schema( description = "Electronic invoicing data for Italian business companies" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MailEnvironmentDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MailEnvironmentDTO.java index 0449b0357..fcbb5c94f 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MailEnvironmentDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MailEnvironmentDTO.java @@ -2,9 +2,9 @@ import com.cloudesire.platform.apiclient.dto.model.enums.CouponType; -import javax.validation.Valid; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; import java.util.Map; import static com.cloudesire.platform.apiclient.dto.model.dto.EnvironmentDTO.MailCustomization.DEFAULT_MAIL_LANGUAGE; @@ -367,8 +367,7 @@ public MailConfiguration getCouponConfiguration( CouponType couponType ) return getDiscountCoupon(); case FIXED_PRICE: return getFixedPriceCoupon(); - case TRIAL: - case EXTENDED_TRIAL: + case TRIAL, EXTENDED_TRIAL: return getTrialCoupon(); default: return null; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MetricEndpointDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MetricEndpointDTO.java index 681915fed..0f043d4be 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MetricEndpointDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MetricEndpointDTO.java @@ -2,8 +2,8 @@ import org.hibernate.validator.constraints.NotEmpty; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; public class MetricEndpointDTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimalCompanyDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimalCompanyDTO.java index 9a008a2eb..410191ba7 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimalCompanyDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimalCompanyDTO.java @@ -4,10 +4,10 @@ import com.liberologico.cloudesire.common.Regexp; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Email; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.util.Objects; public abstract class MinimalCompanyDTO extends TaxCodeDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimumCostDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimumCostDTO.java index 53cd09a17..4220595d0 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimumCostDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MinimumCostDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.Objects; @Schema( description = "Billing details for the cheapest Product Version for a Product" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MyUserDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MyUserDTO.java index dfde9862f..6cc6e7aa8 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MyUserDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/MyUserDTO.java @@ -8,12 +8,12 @@ import com.liberologico.cloudesire.common.Regexp; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Email; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; +import jakarta.validation.constraints.Size; import java.util.Date; import java.util.Objects; import java.util.Set; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NamedEntityDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NamedEntityDTO.java index 30ab75c12..95cabe3fa 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NamedEntityDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NamedEntityDTO.java @@ -4,8 +4,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.Size; import java.util.Objects; @JsonPropertyOrder ( { "id", "name" } ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NodeRoleDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NodeRoleDTO.java index 463eb5e10..80edbc6a2 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NodeRoleDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NodeRoleDTO.java @@ -4,9 +4,9 @@ import com.liberologico.cloudesire.common.enums.OSType; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NotifyDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NotifyDTO.java index 5395c8a7a..d66595807 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NotifyDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/NotifyDTO.java @@ -2,7 +2,7 @@ import com.cloudesire.platform.apiclient.dto.model.enums.UserRole; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.util.Date; import java.util.HashSet; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderInputDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderInputDTO.java index e321f8c06..43a3accd0 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderInputDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderInputDTO.java @@ -6,10 +6,10 @@ import com.liberologico.cloudesire.common.enums.OSType; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Future; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Future; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; import java.util.Date; import java.util.HashMap; import java.util.List; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderLineDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderLineDTO.java index 6593bf298..c0b9b6973 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderLineDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderLineDTO.java @@ -9,8 +9,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.Length; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderPatchDTO.java index 2e323378f..7f7e2fd95 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/OrderPatchDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.constraints.Future; +import jakarta.validation.constraints.Future; import java.util.Date; public class OrderPatchDTO implements DTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PageRequestDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PageRequestDTO.java index ea1c47af2..da2fff8ac 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PageRequestDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PageRequestDTO.java @@ -6,9 +6,9 @@ import io.swagger.v3.oas.annotations.Hidden; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; -import javax.validation.constraints.Max; -import javax.validation.constraints.Min; import java.util.HashMap; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PasswordResetDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PasswordResetDTO.java index 7f810c402..e14ae597f 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PasswordResetDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PasswordResetDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotEmpty; public class PasswordResetDTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PaymentMethodDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PaymentMethodDTO.java index 5416da0c6..1c53e568f 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PaymentMethodDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PaymentMethodDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.Size; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PercentagePricingPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PercentagePricingPatchDTO.java index 29184c3e0..19546b1a7 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PercentagePricingPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PercentagePricingPatchDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.AssertTrue; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.AssertTrue; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import static com.cloudesire.platform.apiclient.dto.model.dto.PercentagePricingPatchDTO.Action.MASS_UPDATE; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PriceDTO.java index db3bf2eca..6691d21ae 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PriceDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricedEntityDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricedEntityDTO.java index 5d38c924c..506f3e84b 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricedEntityDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricedEntityDTO.java @@ -3,7 +3,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotEmpty; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricingPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricingPatchDTO.java index 5256dc109..4b2f51fa6 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricingPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/PricingPatchDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; @Schema( description = "Request a price change for a cloud price" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductChangelogEntryDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductChangelogEntryDTO.java index bc65ba45b..43910dc73 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductChangelogEntryDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductChangelogEntryDTO.java @@ -2,8 +2,8 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.util.Date; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDTO.java index 640123271..234f08653 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDTO.java @@ -13,9 +13,9 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import java.math.BigDecimal; import java.util.Date; import java.util.List; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDetailDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDetailDTO.java index 2eeeca982..2cb8dd368 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDetailDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDetailDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.math.BigDecimal; import java.util.List; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDraftDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDraftDTO.java index ceb323623..b5b4a388d 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDraftDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductDraftDTO.java @@ -3,8 +3,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; import java.util.Map; import static com.cloudesire.platform.apiclient.dto.model.constants.ErrorKeys.INVALID_SIZE; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java index 9f3008198..94d1340e2 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Min; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Min; import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashSet; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDraftDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDraftDTO.java index 4932c1ead..e7d18f5bc 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDraftDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDraftDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.Objects; @Schema( description = "A draft of a product version description" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerCatalogDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerCatalogDTO.java index e88562dfb..665bcdbc3 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerCatalogDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerCatalogDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.Date; import java.util.List; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerDTO.java index d003bfc12..bce5e4bf3 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerDTO.java @@ -3,9 +3,9 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.Valid; -import javax.validation.constraints.Email; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Size; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerPricingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerPricingDTO.java index 8b4433d62..6ac677cc3 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerPricingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ResellerPricingDTO.java @@ -6,8 +6,8 @@ import com.cloudesire.platform.apiclient.dto.model.enums.ResellerPricingVisibility; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.List; import java.util.Objects; import java.util.Set; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudPricingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudPricingDTO.java index 50b853803..4a5adc7fe 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudPricingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudPricingDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudResellingDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudResellingDTO.java index b44968726..5404d4ebe 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudResellingDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ReservedCloudResellingDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; public class ReservedCloudResellingDTO implements DTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/RouteAuthorizationDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/RouteAuthorizationDTO.java index f2d609fed..29afd0f79 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/RouteAuthorizationDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/RouteAuthorizationDTO.java @@ -6,9 +6,9 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.AssertTrue; -import javax.validation.constraints.NotEmpty; +import jakarta.validation.Valid; +import jakarta.validation.constraints.AssertTrue; +import jakarta.validation.constraints.NotEmpty; import java.util.List; import java.util.Map; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterV1DTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterV1DTO.java index f77cff13a..6436531a4 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterV1DTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterV1DTO.java @@ -1,7 +1,7 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; public class StackParameterV1DTO extends BaseStackParameterDTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterValueDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterValueDTO.java index 8a68332ad..1342ba1f6 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterValueDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StackParameterValueDTO.java @@ -1,7 +1,7 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Objects; public class StackParameterValueDTO extends BaseEntityDTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripePaymentMethodDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripePaymentMethodDTO.java index 88a2cccaa..3039f7628 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripePaymentMethodDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripePaymentMethodDTO.java @@ -2,7 +2,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; -import javax.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotEmpty; public class StripePaymentMethodDTO implements PaymentDataDTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripeTokenDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripeTokenDTO.java index 4d0b0b915..44f4e1099 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripeTokenDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/StripeTokenDTO.java @@ -2,7 +2,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; -import javax.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotEmpty; public class StripeTokenDTO implements PaymentDataDTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionDetailV2DTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionDetailV2DTO.java index 4708ca082..f12beb0f8 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionDetailV2DTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionDetailV2DTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.HashMap; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionPatchDTO.java index 4146f634f..2f8951f3f 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionPatchDTO.java @@ -3,10 +3,10 @@ import com.cloudesire.platform.apiclient.dto.model.enums.DeploymentStatus; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Future; -import javax.validation.constraints.Past; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Future; +import jakarta.validation.constraints.Past; +import jakarta.validation.constraints.Size; import java.io.Serializable; import java.util.Date; import java.util.HashMap; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV1DTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV1DTO.java index 3fa276fff..65e0793d5 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV1DTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV1DTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.math.BigDecimal; import java.util.HashMap; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV2DTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV2DTO.java index 3ad53c752..c356a51ee 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV2DTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SubscriptionV2DTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.HashMap; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SyndicationEndpointDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SyndicationEndpointDTO.java index 61719edca..c0427da2e 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SyndicationEndpointDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/SyndicationEndpointDTO.java @@ -3,8 +3,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.hibernate.validator.constraints.URL; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.Size; @Schema( description = "An Endpoint where to dispatch web hooks notifications" ) public class SyndicationEndpointDTO implements DTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UrlEntityDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UrlEntityDTO.java index 9d778d51f..d65d88957 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UrlEntityDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UrlEntityDTO.java @@ -4,8 +4,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.Size; import java.util.Objects; @Schema( description = "Reference to a related resource" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java index 82ee90008..8b540778c 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java @@ -2,7 +2,7 @@ import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.Objects; @Schema( description = "Company data of a business customer" ) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VariableResellingPriceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VariableResellingPriceDTO.java index 421c12df8..9dc1e286d 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VariableResellingPriceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VariableResellingPriceDTO.java @@ -1,6 +1,6 @@ package com.cloudesire.platform.apiclient.dto.model.dto; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineConfigurationDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineConfigurationDTO.java index 065567896..2360e35bf 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineConfigurationDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineConfigurationDTO.java @@ -5,10 +5,10 @@ import com.liberologico.cloudesire.common.enums.OSType; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; -import javax.validation.constraints.Max; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineInstanceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineInstanceDTO.java index e1872464a..c554cde29 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineInstanceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineInstanceDTO.java @@ -4,7 +4,7 @@ import com.liberologico.cloudesire.common.enums.OsFamily; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.Valid; +import jakarta.validation.Valid; import java.util.List; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineStatusDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineStatusDTO.java index d207daa17..1f401b81d 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineStatusDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/VirtualMachineStatusDTO.java @@ -2,8 +2,8 @@ import com.cloudesire.platform.apiclient.dto.model.enums.VirtualMachineState; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Date; import java.util.Objects; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/request/ExternalConfigurationParameterValuesRequestDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/request/ExternalConfigurationParameterValuesRequestDTO.java index 31d83abad..a087583ad 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/request/ExternalConfigurationParameterValuesRequestDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/request/ExternalConfigurationParameterValuesRequestDTO.java @@ -3,8 +3,8 @@ import com.cloudesire.platform.apiclient.dto.model.dto.DTO; import com.cloudesire.platform.apiclient.dto.model.dto.UrlEntityDTO; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import java.util.Map; public class ExternalConfigurationParameterValuesRequestDTO implements DTO diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/BaseCompanyPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/BaseCompanyPatchDTO.java index 904f3e800..cd10a3ea2 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/BaseCompanyPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/BaseCompanyPatchDTO.java @@ -3,7 +3,7 @@ import com.cloudesire.platform.apiclient.dto.model.dto.DTO; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; public class BaseCompanyPatchDTO implements DTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudCredentialPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudCredentialPatchDTO.java index 63e2d995d..b66f47755 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudCredentialPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudCredentialPatchDTO.java @@ -2,7 +2,7 @@ import com.cloudesire.platform.apiclient.dto.model.dto.DTO; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; public class CloudCredentialPatchDTO implements DTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudProviderPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudProviderPatchDTO.java index cb8196469..5b137337e 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudProviderPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/CloudProviderPatchDTO.java @@ -4,7 +4,7 @@ import com.liberologico.cloudesire.common.validators.CurrencyMap; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/InvoicePaymentReferenceDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/InvoicePaymentReferenceDTO.java index 1899605d5..8ba4876de 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/InvoicePaymentReferenceDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/InvoicePaymentReferenceDTO.java @@ -3,8 +3,8 @@ import com.cloudesire.platform.apiclient.dto.model.dto.DTO; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; public class InvoicePaymentReferenceDTO implements DTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/ProductPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/ProductPatchDTO.java index 8725e69e5..bb0c09f45 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/ProductPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/ProductPatchDTO.java @@ -6,7 +6,7 @@ import com.liberologico.cloudesire.common.validators.CurrencyMap; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.math.BigDecimal; import java.util.Map; diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/UserPatchDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/UserPatchDTO.java index 31fb0f7d2..dd0e041d0 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/UserPatchDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/patch/UserPatchDTO.java @@ -2,7 +2,7 @@ import com.cloudesire.platform.apiclient.dto.model.dto.DTO; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; public class UserPatchDTO implements DTO { diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/utils/ErrorHolder.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/utils/ErrorHolder.java index 6d59e84c8..98e5ef8ee 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/utils/ErrorHolder.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/utils/ErrorHolder.java @@ -3,7 +3,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.liberologico.cloudesire.common.Slugger; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; diff --git a/cloudesire-api-client/pom.xml b/cloudesire-api-client/pom.xml index 1e89602ea..355f4aa59 100644 --- a/cloudesire-api-client/pom.xml +++ b/cloudesire-api-client/pom.xml @@ -6,7 +6,7 @@ com.cloudesire.platform cloudesire-api-client-root - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT cloudesire-api-client @@ -15,12 +15,12 @@ com.cloudesire.platform base-api-client - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT com.cloudesire.platform cloudesire-api-client-dto - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT ch.qos.logback diff --git a/common-dto/pom.xml b/common-dto/pom.xml index 53c4b745f..892bf6080 100644 --- a/common-dto/pom.xml +++ b/common-dto/pom.xml @@ -5,16 +5,16 @@ com.cloudesire.platform cloudesire-api-client-root - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT common-dto - javax.validation - validation-api - 2.0.1.Final + jakarta.validation + jakarta.validation-api + 3.0.2 true diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURL.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURL.java index 1b813a02a..4e85be90c 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURL.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURL.java @@ -1,7 +1,7 @@ package com.liberologico.cloudesire.common.validators; -import javax.validation.Constraint; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURLValidator.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURLValidator.java index ed2e6d542..8777c633b 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURLValidator.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/ApplicationFileURLValidator.java @@ -2,8 +2,9 @@ import com.liberologico.cloudesire.common.DockerConstants; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; + import java.net.MalformedURLException; import java.net.URL; @@ -17,7 +18,7 @@ public void initialize( ApplicationFileURL constraintAnnotation ) public boolean isValid( CharSequence value, ConstraintValidatorContext constraintValidatorContext ) { - if ( value == null || value.length() == 0 ) return true; + if ( value == null || value.isEmpty() ) return true; if ( value.toString().startsWith( DockerConstants.SCHEMA ) ) { diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMap.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMap.java index 877a4e11e..2fc4f17cb 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMap.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMap.java @@ -1,7 +1,7 @@ package com.liberologico.cloudesire.common.validators; -import javax.validation.Constraint; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMapValidator.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMapValidator.java index a8bcf0749..702baae68 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMapValidator.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/CurrencyMapValidator.java @@ -1,7 +1,7 @@ package com.liberologico.cloudesire.common.validators; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; import java.util.Currency; import java.util.Map; diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBAN.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBAN.java index 5e080308f..f3c0b7cf9 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBAN.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBAN.java @@ -1,7 +1,7 @@ package com.liberologico.cloudesire.common.validators; -import javax.validation.Constraint; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBANValidatorForString.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBANValidatorForString.java index 5dc9c9af6..d37fac381 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBANValidatorForString.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/IBANValidatorForString.java @@ -2,8 +2,8 @@ import org.iban4j.IbanUtil; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; public class IBANValidatorForString implements ConstraintValidator { diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExp.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExp.java index fbd33fb1c..1d7264b46 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExp.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExp.java @@ -1,7 +1,7 @@ package com.liberologico.cloudesire.common.validators; -import javax.validation.Constraint; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; diff --git a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExpValidator.java b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExpValidator.java index e7e83d0f8..64e164885 100644 --- a/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExpValidator.java +++ b/common-dto/src/main/java/com/liberologico/cloudesire/common/validators/RegExpValidator.java @@ -1,7 +1,7 @@ package com.liberologico.cloudesire.common.validators; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; diff --git a/pom.xml b/pom.xml index 70c87ed40..11ca8c4e6 100644 --- a/pom.xml +++ b/pom.xml @@ -8,16 +8,16 @@ com.cloudesire.platform cloudesire-api-client-root - 3.9.1-SNAPSHOT + 4.0.0-SNAPSHOT cloudesire-api-client-root Java API client for Cloudesire platform - http://github.com/cloudesire/java-api-client + https://github.com/cloudesire/java-api-client scm:git:git@github.com:ClouDesire/java-api-client.git scm:git:git@github.com:ClouDesire/java-api-client.git - http://github.com/cloudesire/java-api-client/tree/master + https://github.com/cloudesire/java-api-client/tree/master