From ccfa02f8703095a8366eeb6ee9ccb6f4d0ad90e9 Mon Sep 17 00:00:00 2001 From: jakubs <jakubs> Date: Mon, 4 Jan 2016 14:03:51 +0000 Subject: [PATCH] SSDM-2979: Add fileLength to v3 data set file. SVN: 35410 --- .../dssapi/v3/dto/datasetfile/DataSetFile.java | 14 ++++++++++++++ .../openbis/generic/sharedapi/v3/dictionary.txt | 2 ++ 2 files changed, 16 insertions(+) diff --git a/openbis_api/source/java/ch/ethz/sis/openbis/generic/dssapi/v3/dto/datasetfile/DataSetFile.java b/openbis_api/source/java/ch/ethz/sis/openbis/generic/dssapi/v3/dto/datasetfile/DataSetFile.java index 6ce031c433f..e7747d5c092 100644 --- a/openbis_api/source/java/ch/ethz/sis/openbis/generic/dssapi/v3/dto/datasetfile/DataSetFile.java +++ b/openbis_api/source/java/ch/ethz/sis/openbis/generic/dssapi/v3/dto/datasetfile/DataSetFile.java @@ -45,6 +45,9 @@ public class DataSetFile implements Serializable @JsonProperty private boolean isDirectory; + @JsonProperty + private long fileLength; + @JsonIgnore public DataSetFilePermId getPermId() { @@ -89,6 +92,17 @@ public class DataSetFile implements Serializable this.isDirectory = isDirectory; } + @JsonIgnore + public long getFileLength() + { + return fileLength; + } + + public void setFileLength(long fileLength) + { + this.fileLength = fileLength; + } + @Override public String toString() { diff --git a/openbis_api/sourceTest/java/ch/ethz/sis/openbis/generic/sharedapi/v3/dictionary.txt b/openbis_api/sourceTest/java/ch/ethz/sis/openbis/generic/sharedapi/v3/dictionary.txt index 6df4c05d50a..19b03352d4a 100644 --- a/openbis_api/sourceTest/java/ch/ethz/sis/openbis/generic/sharedapi/v3/dictionary.txt +++ b/openbis_api/sourceTest/java/ch/ethz/sis/openbis/generic/sharedapi/v3/dictionary.txt @@ -232,6 +232,7 @@ getFileFormatType getFileFormatTypeId getFileName getFilePath +getFileLength getFirstName getFormat getFrom @@ -619,6 +620,7 @@ setFileFormatType setFileFormatTypeId setFileName setFilePath +setFileLength setFirstName setGeneratedCodePrefix setHistory -- GitLab