-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Request and Result for setting the project forms
- Loading branch information
1 parent
0f758c7
commit 23609d9
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/edu/stanford/protege/webprotege/forms/SetProjectFormsResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
||
} |