From e0089495af4696fd233b46bb477e11a5530f31c7 Mon Sep 17 00:00:00 2001
From: KSGRelewise <119578211+KSGRelewise@users.noreply.github.com>
Date: Thu, 12 Sep 2024 08:34:23 +0200
Subject: [PATCH] Deleted types that were not used anymore.
---
.../client/model/EntitiesRequest.java | 73 -------
.../EntityChangeTriggerConfiguration.java | 179 ------------------
2 files changed, 252 deletions(-)
delete mode 100644 src/src/main/java/com/relewise/client/model/EntitiesRequest.java
delete mode 100644 src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java
diff --git a/src/src/main/java/com/relewise/client/model/EntitiesRequest.java b/src/src/main/java/com/relewise/client/model/EntitiesRequest.java
deleted file mode 100644
index 8a6f907f..00000000
--- a/src/src/main/java/com/relewise/client/model/EntitiesRequest.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package com.relewise.client.model;
-
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import javax.annotation.Nullable;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.LocalDateTime;
-import java.util.Objects;
-import java.util.Arrays;
-import java.util.UUID;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.AbstractMap;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.HashSet;
-
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- include = JsonTypeInfo.As.EXISTING_PROPERTY,
- property = "$type")
-@JsonSubTypes({
-})
-@JsonIgnoreProperties(ignoreUnknown = true)
-public abstract class EntitiesRequest extends LicensedRequest
-{
- public String $type = "";
- public @Nullable AdvertisersRequestEntityFilters filters;
- public @Nullable AdvertisersRequestSortBySorting sorting;
- public Integer skip;
- public Integer take;
- public @Nullable AdvertisersRequestEntityFilters getFilters()
- {
- return this.filters;
- }
- public @Nullable AdvertisersRequestSortBySorting getSorting()
- {
- return this.sorting;
- }
- public Integer getSkip()
- {
- return this.skip;
- }
- public Integer getTake()
- {
- return this.take;
- }
- public EntitiesRequest setFilters(AdvertisersRequestEntityFilters filters)
- {
- this.filters = filters;
- return this;
- }
- public EntitiesRequest setSorting(AdvertisersRequestSortBySorting sorting)
- {
- this.sorting = sorting;
- return this;
- }
- public EntitiesRequest setSkip(Integer skip)
- {
- this.skip = skip;
- return this;
- }
- public EntitiesRequest setTake(Integer take)
- {
- this.take = take;
- return this;
- }
-}
diff --git a/src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java b/src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java
deleted file mode 100644
index b7ab24f3..00000000
--- a/src/src/main/java/com/relewise/client/model/EntityChangeTriggerConfiguration.java
+++ /dev/null
@@ -1,179 +0,0 @@
-package com.relewise.client.model;
-
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import javax.annotation.Nullable;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.LocalDateTime;
-import java.util.Objects;
-import java.util.Arrays;
-import java.util.UUID;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.AbstractMap;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.HashSet;
-
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- include = JsonTypeInfo.As.EXISTING_PROPERTY,
- property = "$type")
-@JsonSubTypes({
-})
-@JsonIgnoreProperties(ignoreUnknown = true)
-public abstract class EntityChangeTriggerConfiguration extends ProductChangeTriggerResultTriggerConfiguration
-{
- public String $type = "";
- /** The selector used for choosing which property of the entity the trigger should look for change in. */
- public @Nullable ProductPropertySelector entityPropertySelector;
- /** The filter that specifies which entities the trigger should track changes for. */
- public FilterCollection beforeChangeFilters;
- /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
- public FilterCollection afterChangeFilters;
- /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
- public IChange change;
- /** Settings for defining which properties should be included in the result of the trigger. */
- public @Nullable ProductChangeTriggerResultSettings resultSettings;
- /** The selector used for choosing which property of the entity the trigger should look for change in. */
- public @Nullable ProductPropertySelector getEntityPropertySelector()
- {
- return this.entityPropertySelector;
- }
- /** The filter that specifies which entities the trigger should track changes for. */
- public FilterCollection getBeforeChangeFilters()
- {
- return this.beforeChangeFilters;
- }
- /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
- public FilterCollection getAfterChangeFilters()
- {
- return this.afterChangeFilters;
- }
- /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
- public IChange getChange()
- {
- return this.change;
- }
- /** Settings for defining which properties should be included in the result of the trigger. */
- public @Nullable ProductChangeTriggerResultSettings getResultSettings()
- {
- return this.resultSettings;
- }
- /** The selector used for choosing which property of the entity the trigger should look for change in. */
- public EntityChangeTriggerConfiguration setEntityPropertySelector(ProductPropertySelector entityPropertySelector)
- {
- this.entityPropertySelector = entityPropertySelector;
- return this;
- }
- /** The filter that specifies which entities the trigger should track changes for. */
- public EntityChangeTriggerConfiguration setBeforeChangeFilters(FilterCollection beforeChangeFilters)
- {
- this.beforeChangeFilters = beforeChangeFilters;
- return this;
- }
- /** The filter for what state the tracked entities should have once they have changed to be included in the results. */
- public EntityChangeTriggerConfiguration setAfterChangeFilters(FilterCollection afterChangeFilters)
- {
- this.afterChangeFilters = afterChangeFilters;
- return this;
- }
- /** The type of change that should happen to the value selected by the EntityPropertySelector
for an entity to be considered part of the results. */
- public EntityChangeTriggerConfiguration setChange(IChange change)
- {
- this.change = change;
- return this;
- }
- /** Settings for defining which properties should be included in the result of the trigger. */
- public EntityChangeTriggerConfiguration setResultSettings(ProductChangeTriggerResultSettings resultSettings)
- {
- this.resultSettings = resultSettings;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setId(UUID id)
- {
- this.id = id;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setName(String name)
- {
- this.name = name;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setDescription(String description)
- {
- this.description = description;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setGroup(String group)
- {
- this.group = group;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setEnabled(Boolean enabled)
- {
- this.enabled = enabled;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setCreated(OffsetDateTime created)
- {
- this.created = created;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setCreatedBy(String createdBy)
- {
- this.createdBy = createdBy;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setModified(OffsetDateTime modified)
- {
- this.modified = modified;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setModifiedBy(String modifiedBy)
- {
- this.modifiedBy = modifiedBy;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setWithinTimeSpanMinutes(Integer withinTimeSpanMinutes)
- {
- this.withinTimeSpanMinutes = withinTimeSpanMinutes;
- return this;
- }
- public EntityChangeTriggerConfiguration addToSettings(String key, String value)
- {
- if (this.settings == null)
- {
- this.settings = new HashMap<>();
- }
- this.settings.put(key, value);
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setSettings(HashMap settings)
- {
- this.settings = settings;
- return this;
- }
- @Override
- public EntityChangeTriggerConfiguration setUserConditions(UserConditionCollection userConditions)
- {
- this.userConditions = userConditions;
- return this;
- }
-}