Commit 04c029f0 authored by Anastasios Poimenidis's avatar Anastasios Poimenidis
Browse files

feat: introduce GeographicSiteDTO and GeographicSiteResponse

parent 7e4d6ac8
Loading
Loading
Loading
Loading
Loading
+31
Changes for src/main/java/org/etsi/osl/hypo/api/tmf/common/model/ExternalIdentifier.java: 31 added lines, 0 removed lines.
Original line number Diff line number Diff line
package org.etsi.osl.hypo.api.tmf.common.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@EqualsAndHashCode
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({"id", "externalIdentifierType", "name"})
public class ExternalIdentifier {
    private String id;
    private String name;

    @JsonProperty("@baseType")
    private String baseType;

    @JsonProperty("@schemaLocation")
    private String schemaLocation;

    @JsonProperty("@type")
    private String type;

    private String externalIdentifierType;
}
+1 −1
Changes for src/main/java/org/etsi/osl/hypo/api/tmf/common/schema/RelatedPartyEntity.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ public class RelatedPartyEntity extends BaseFieldsEntityWithHref {
    @JsonIgnore
    private Set<ResourceCatalogEntity> resourceCatalogs = new HashSet<>();

    @ManyToMany(fetch = FetchType.LAZY, mappedBy = "relatedParties")
    @ManyToMany(fetch = FetchType.LAZY, mappedBy = "relatedParty")
    @JsonIgnore
    private Set<GeographicSite> geographicSites = new HashSet<>();

+43
Changes for src/main/java/org/etsi/osl/hypo/api/tmf/geographic/site/model/CalendarPeriod.java: 43 added lines, 0 removed lines.
Original line number Diff line number Diff line
package org.etsi.osl.hypo.api.tmf.geographic.site.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.Set;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@EqualsAndHashCode
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({"id", "href", "day", "status", "timeZone", "hourPeriod"})
public class CalendarPeriod {
    private String id;

    @JsonProperty("@baseType")
    private String baseType;

    @JsonProperty("@schemaLocation")
    private String schemaLocation;

    @JsonProperty("@type")
    private String type;

    @JsonProperty("href")
    private String href;

    @JsonProperty("day")
    private String day;

    @JsonProperty("status")
    private String status;

    @JsonProperty("timeZone")
    private String timeZone;

    Set<HourPeriod> hourPeriod;
}
+53
Changes for src/main/java/org/etsi/osl/hypo/api/tmf/geographic/site/model/GeographicAddressValue.java: 53 added lines, 0 removed lines.
Original line number Diff line number Diff line
package org.etsi.osl.hypo.api.tmf.geographic.site.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.etsi.osl.hypo.api.tmf.common.model.BaseFieldsEntity;

/** GeographicAddressValue */
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "id",
    "href",
    "locality",
    "postcode",
    "stateOrProvince",
    "streetNr",
    "streetNrLast",
    "streetNrLastSuffix",
    "streetNrSuffix",
    "streetSuffix",
    "streetSuffix",
    "streetType",
    "geographicSubAddress",
    "city",
    "country",
    "streetName"
})
public class GeographicAddressValue extends BaseFieldsEntity {
    private String locality;
    private String postcode;
    private String stateOrProvince;
    private String streetNr;
    private String streetNrLast;
    private String streetNrLastSuffix;
    private String streetNrSuffix;
    private String streetSuffix;
    private String streetType;

    @JsonProperty("geographicSubAddress")
    private GeographicSubAddressValue geographicSubAddress;

    private String city;
    private String country;
    private String streetName;
}
+65
Changes for src/main/java/org/etsi/osl/hypo/api/tmf/geographic/site/model/GeographicSiteDTO.java: 65 added lines, 0 removed lines.
Original line number Diff line number Diff line
package org.etsi.osl.hypo.api.tmf.geographic.site.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.net.URI;
import java.util.Set;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.etsi.osl.hypo.api.tmf.common.model.ExternalIdentifier;
import org.etsi.osl.hypo.api.tmf.common.model.RelatedParty;

@Getter
@Setter
@EqualsAndHashCode
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "id",
    "href",
    "code",
    "description",
    "name",
    "status",
    "calendar",
    "placeRefOrValue",
    "externalIdentifier",
    "geographicSiteRelationship"
})
public class GeographicSiteDTO {
    @JsonIgnore private URI uri;

    @JsonProperty("code")
    private String code;

    @JsonProperty("description")
    private String description;

    @JsonProperty("creationDate")
    private String creationDate;

    @JsonProperty("status")
    private String status;

    @JsonProperty("@baseType")
    private String baseType;

    @JsonProperty("@schemaLocation")
    private String schemaLocation;

    @JsonProperty("@type")
    private String type;

    private Set<CalendarPeriod> calendar;
    private Set<PlaceRefOrValue> place;

    @JsonProperty("siteRelationship")
    private Set<GeographicSiteRelationship> geographicSiteRelationship;

    private Set<RelatedParty> relatedParty;
    private Set<ExternalIdentifier> externalIdentifier;
}
Loading