From 23609d9126778faa49dd5f2c84f755f65d5c47f1 Mon Sep 17 00:00:00 2001 From: Matthew Horridge Date: Sat, 15 Jun 2024 18:29:03 -0700 Subject: [PATCH] Create a Request and Result for setting the project forms --- .../forms/SetProjectFormsRequest.java | 19 +++++++++++++++++++ .../forms/SetProjectFormsResult.java | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsRequest.java create mode 100644 src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsResult.java diff --git a/src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsRequest.java b/src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsRequest.java new file mode 100644 index 0000000..6240720 --- /dev/null +++ b/src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsRequest.java @@ -0,0 +1,19 @@ +package edu.stanford.protege.webprotege.forms; + +import com.fasterxml.jackson.annotation.*; +import com.google.common.collect.ImmutableList; +import edu.stanford.protege.webprotege.common.*; + +@JsonTypeName(SetProjectFormsRequest.CHANNEL) +public record SetProjectFormsRequest(@JsonProperty("changeRequestId") ChangeRequestId changeRequestId, + @JsonProperty("projectId") ProjectId projectId, + @JsonProperty("formDescriptors") ImmutableList formDescriptors, + @JsonProperty("formSelectors") ImmutableList formSelectors) implements ProjectRequest { + + public static final String CHANNEL = "webprotege.forms.SetProjectForms"; + + @Override + public String getChannel() { + return CHANNEL; + } +} diff --git a/src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsResult.java b/src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsResult.java new file mode 100644 index 0000000..2cde4a9 --- /dev/null +++ b/src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsResult.java @@ -0,0 +1,7 @@ +package edu.stanford.protege.webprotege.forms; + +import edu.stanford.protege.webprotege.common.Response; + +public record SetProjectFormsResult() implements Response { + +}