Skip to content

Commit

Permalink
Create a Request and Result for setting the project forms
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhorridge committed Jun 16, 2024
1 parent 0f758c7 commit 23609d9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<FormDescriptor> formDescriptors,
@JsonProperty("formSelectors") ImmutableList<EntityFormSelector> formSelectors) implements ProjectRequest<SetProjectFormsResult> {

public static final String CHANNEL = "webprotege.forms.SetProjectForms";

@Override
public String getChannel() {
return CHANNEL;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package edu.stanford.protege.webprotege.forms;

import edu.stanford.protege.webprotege.common.Response;

public record SetProjectFormsResult() implements Response {

}

0 comments on commit 23609d9

Please sign in to comment.