diff --git a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Action.java b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Action.java index 78f3827a5..1b5f73760 100644 --- a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Action.java +++ b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Action.java @@ -233,7 +233,8 @@ @Type(value = GetPostCoordinationTableConfigurationAction.class), @Type(value = GetProjectChangesForHistoryViewAction.class), @Type(value = ProcessUploadedLinearizationAction.class), - @Type(value = ProcessUploadedPostCoordinationAction.class) + @Type(value = ProcessUploadedPostCoordinationAction.class), + @Type(value = GetPostCoordinationAxisToGenericScaleAction.class) }) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME) public interface Action extends IsSerializable { diff --git a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Result.java b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Result.java index 02f2030d0..f71f6dfcc 100644 --- a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Result.java +++ b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/Result.java @@ -305,7 +305,8 @@ @JsonSubTypes.Type(ProcessUploadedPostCoordinationResult.class), @JsonSubTypes.Type(GetPostCoordinationTableConfigurationResult.class), @JsonSubTypes.Type(GetProjectChangesForHistoryViewResult.class), - @JsonSubTypes.Type(ProcessUploadedLinearizationResult.class) + @JsonSubTypes.Type(ProcessUploadedLinearizationResult.class), + @JsonSubTypes.Type(GetPostCoordinationAxisToGenericScaleResult.class), }) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME) public interface Result extends IsSerializable { diff --git a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/RpcWhiteList.java b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/RpcWhiteList.java index 0a9ef3b5a..8321f2f08 100644 --- a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/RpcWhiteList.java +++ b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/dispatch/RpcWhiteList.java @@ -1015,6 +1015,10 @@ public class RpcWhiteList implements IsSerializable, Action, Result { ProcessUploadedLinearizationAction _ProcessUploadedLinearizationAction; ProcessUploadedLinearizationResult _ProcessUploadedLinearizationResult; + + GetPostCoordinationAxisToGenericScaleAction _GetPostCoordinationAxisToGenericScaleAction; + GetPostCoordinationAxisToGenericScaleResult _GetPostCoordinationAxisToGenericScaleResult; + public RpcWhiteList() { } } diff --git a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/GetPostCoordinationAxisToGenericScaleResult.java b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/GetPostCoordinationAxisToGenericScaleResult.java index 31e15006a..d70d64296 100644 --- a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/GetPostCoordinationAxisToGenericScaleResult.java +++ b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/GetPostCoordinationAxisToGenericScaleResult.java @@ -1,6 +1,6 @@ package edu.stanford.bmir.protege.web.shared.postcoordination; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.*; import com.google.auto.value.AutoValue; import com.google.common.annotations.GwtCompatible; import edu.stanford.bmir.protege.web.shared.dispatch.Result; @@ -13,4 +13,10 @@ public abstract class GetPostCoordinationAxisToGenericScaleResult implements Result { public abstract List getPostCoordinationAxisToGenericScales(); + + + @JsonCreator + public static GetPostCoordinationAxisToGenericScaleResult create(@JsonProperty("postcoordinationAxisToGenericScales") List postCoordinationAxisToGenericScales) { + return new AutoValue_GetPostCoordinationAxisToGenericScaleResult(postCoordinationAxisToGenericScales); + } } diff --git a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/PostCoordinationAxisToGenericScale.java b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/PostCoordinationAxisToGenericScale.java index a0333e0c4..879a92e85 100644 --- a/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/PostCoordinationAxisToGenericScale.java +++ b/webprotege-gwt-ui-shared/src/main/java/edu/stanford/bmir/protege/web/shared/postcoordination/PostCoordinationAxisToGenericScale.java @@ -1,9 +1,22 @@ package edu.stanford.bmir.protege.web.shared.postcoordination; -public class PostCoordinationAxisToGenericScale { - private final String postcoordinationAxis; - private final String genericPostcoordinationScaleTopClass; - private final String allowMultiValue; +import com.fasterxml.jackson.annotation.*; +import com.google.common.annotations.GwtCompatible; +import com.google.gwt.user.client.rpc.IsSerializable; +import edu.stanford.bmir.protege.web.shared.annotations.GwtSerializationConstructor; + +import java.io.Serializable; + +@GwtCompatible(serializable = true) +public class PostCoordinationAxisToGenericScale implements IsSerializable, Serializable { + + private String postcoordinationAxis; + private String genericPostcoordinationScaleTopClass; + private String allowMultiValue; + + @GwtSerializationConstructor + private PostCoordinationAxisToGenericScale() { + } public PostCoordinationAxisToGenericScale(String postcoordinationAxis, String genericPostcoordinationScaleTopClass, @@ -13,20 +26,24 @@ public PostCoordinationAxisToGenericScale(String postcoordinationAxis, this.allowMultiValue = allowMultiValue; } - public PostCoordinationAxisToGenericScale create(String postcoordinationAxis, - String genericPostcoordinationScaleTopClass, - String allowMultiValue) { + @JsonCreator + public PostCoordinationAxisToGenericScale create(@JsonProperty("postcoordinationAxis") String postcoordinationAxis, + @JsonProperty("genericPostcoordinationScaleTopClass") String genericPostcoordinationScaleTopClass, + @JsonProperty("allowMultiValue") String allowMultiValue) { return new PostCoordinationAxisToGenericScale(postcoordinationAxis, genericPostcoordinationScaleTopClass, allowMultiValue); } + @JsonProperty("postcoordinationAxis") public String getPostcoordinationAxis() { return postcoordinationAxis; } + @JsonProperty("genericPostcoordinationScaleTopClass") public String getGenericPostcoordinationScaleTopClass() { return genericPostcoordinationScaleTopClass; } + @JsonProperty("allowMultiValue") public String getAllowMultiValue() { return allowMultiValue; }