2020-07-08 00:06:57 +02:00
|
|
|
package de.twomartens.oparlservice.entity;
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
import lombok.*;
|
2020-07-08 23:48:33 +02:00
|
|
|
import lombok.experimental.SuperBuilder;
|
2020-07-08 00:06:57 +02:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2020-07-08 23:48:33 +02:00
|
|
|
@SuperBuilder
|
2020-07-08 00:06:57 +02:00
|
|
|
@Getter
|
|
|
|
@ToString
|
2020-07-08 23:48:33 +02:00
|
|
|
@EqualsAndHashCode(callSuper = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
|
|
|
@NoArgsConstructor(force = true, access = AccessLevel.PRIVATE)
|
2020-07-08 23:48:33 +02:00
|
|
|
@Schema(allOf = CommonFields.class)
|
|
|
|
public class System extends CommonFields {
|
2020-07-08 00:06:57 +02:00
|
|
|
|
|
|
|
@NonNull
|
|
|
|
@Schema(required = true, description = "URL to the OParl specification supported by this service")
|
|
|
|
private final String oparlVersion;
|
|
|
|
|
2020-07-08 23:01:22 +02:00
|
|
|
@Schema(description = "Contains a list of URLs to System objects supporting another Oparl version", nullable = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
private final List<String> otherOparlVersions;
|
|
|
|
|
|
|
|
@NonNull
|
|
|
|
@Schema(required = true, description = "URL to the list of all bodies existing in this system")
|
|
|
|
private final String body;
|
|
|
|
|
2020-07-08 23:01:22 +02:00
|
|
|
@Schema(description = "User friendly name for this system", nullable = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
private final String name;
|
|
|
|
|
2020-07-08 23:01:22 +02:00
|
|
|
@Schema(description = "E-Mail-Address for requests related to the OParl-API", nullable = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
private final String contactEmail;
|
|
|
|
|
2020-07-08 23:01:22 +02:00
|
|
|
@Schema(description = "Name of the contact person who can be reached by contactEmail", nullable = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
private final String contactName;
|
|
|
|
|
2020-07-08 23:01:22 +02:00
|
|
|
@Schema(description = "URL of the website of the parliamentary information system", nullable = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
private final String website;
|
|
|
|
|
2020-07-08 23:01:22 +02:00
|
|
|
@Schema(description = "URL to the website of the software creator of the OParl server software", nullable = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
private final String vendor;
|
|
|
|
|
2020-07-08 23:01:22 +02:00
|
|
|
@Schema(description = "URL to information about the OParl server software utilized by this system", nullable = true)
|
2020-07-08 00:06:57 +02:00
|
|
|
private final String product;
|
|
|
|
}
|