oparl-service/oparl-server/src/main/java/de/twomartens/oparlservice/entity/Meeting.java

60 lines
2.2 KiB
Java

package de.twomartens.oparlservice.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;
import java.time.ZonedDateTime;
import java.util.List;
@SuperBuilder
@Getter
@ToString
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@NoArgsConstructor(force = true, access = AccessLevel.PRIVATE)
@Schema(allOf = CommonFields.class)
public class Meeting extends CommonFields {
@Schema(description = "name of the meeting")
private final String name;
@Schema(description = "current status of the meeting", allowableValues = "terminiert, eingeladen, durchgeführt", nullable = true)
private final String meetingState;
@Schema(description = "True if this meeting was cancelled")
private final boolean cancelled;
@JsonFormat(shape = JsonFormat.Shape.STRING)
@Schema(description = "date and time of the begin of the meeting", nullable = true)
private final ZonedDateTime start;
@JsonFormat(shape = JsonFormat.Shape.STRING)
@Schema(description = "date and time of the end of the meeting", nullable = true)
private final ZonedDateTime end;
@Schema(description = "location of the meeting", nullable = true)
private final Location location;
@Schema(description = "List of URLs to organizations that have this meeting", nullable = true)
private final List<String> organization;
@Schema(description = "List of URLs to persons that participated in the meeting", nullable = true)
private final List<String> participant;
@Schema(description = "invitation document of the meeting", nullable = true)
private final File invitation;
@Schema(description = "results protocol of the meeting", nullable = true)
private final File resultsProtocol;
@Schema(description = "verbatim protocol of the meeting", nullable = true)
private final File verbatimProtocol;
@Schema(description = "List of appendices to the invitation that are not part of agenda items", nullable = true)
private final List<File> auxiliaryFile;
@Schema(description = "List of agenda items in this meeting. Order is relevant", nullable = true)
private final List<AgendaItem> agendaItem;
}