Skip to content
Snippets Groups Projects
Commit 6c4606a6 authored by felmer's avatar felmer
Browse files

SSDM-4724: Missing JsonProperty annotations added to attributes of ContentCopy.

SVN: 38010
parent c2be2917
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,9 @@ package ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset; ...@@ -17,6 +17,9 @@ package ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset;
import java.io.Serializable; import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.id.ContentCopyPermId; import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.id.ContentCopyPermId;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.externaldms.ExternalDms; import ch.ethz.sis.openbis.generic.asapi.v3.dto.externaldms.ExternalDms;
import ch.systemsx.cisd.base.annotation.JsonObject; import ch.systemsx.cisd.base.annotation.JsonObject;
...@@ -28,16 +31,22 @@ public class ContentCopy implements Serializable ...@@ -28,16 +31,22 @@ public class ContentCopy implements Serializable
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@JsonProperty
private ContentCopyPermId id; private ContentCopyPermId id;
@JsonProperty
private ExternalDms externalDms; private ExternalDms externalDms;
@JsonProperty
private String externalCode; private String externalCode;
@JsonProperty
private String path; private String path;
@JsonProperty
private String gitCommitHash; private String gitCommitHash;
@JsonIgnore
public ContentCopyPermId getId() public ContentCopyPermId getId()
{ {
return id; return id;
...@@ -48,6 +57,7 @@ public class ContentCopy implements Serializable ...@@ -48,6 +57,7 @@ public class ContentCopy implements Serializable
this.id = id; this.id = id;
} }
@JsonIgnore
public ExternalDms getExternalDms() public ExternalDms getExternalDms()
{ {
return externalDms; return externalDms;
...@@ -58,6 +68,7 @@ public class ContentCopy implements Serializable ...@@ -58,6 +68,7 @@ public class ContentCopy implements Serializable
this.externalDms = externalDms; this.externalDms = externalDms;
} }
@JsonIgnore
public String getExternalCode() public String getExternalCode()
{ {
return externalCode; return externalCode;
...@@ -68,6 +79,7 @@ public class ContentCopy implements Serializable ...@@ -68,6 +79,7 @@ public class ContentCopy implements Serializable
this.externalCode = externalCode; this.externalCode = externalCode;
} }
@JsonIgnore
public String getPath() public String getPath()
{ {
return path; return path;
...@@ -78,6 +90,7 @@ public class ContentCopy implements Serializable ...@@ -78,6 +90,7 @@ public class ContentCopy implements Serializable
this.path = path; this.path = path;
} }
@JsonIgnore
public String getGitCommitHash() public String getGitCommitHash()
{ {
return gitCommitHash; return gitCommitHash;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment