Skip to content
Snippets Groups Projects
Commit dfe3e7e5 authored by pkupczyk's avatar pkupczyk
Browse files

LMS-2695 - DSU Downloader Polishing and Release

SVN: 24065
parent a32bc249
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,8 @@ public class Translator ...@@ -106,6 +106,8 @@ public class Translator
{ {
SampleInitializer initializer = new SampleInitializer(); SampleInitializer initializer = new SampleInitializer();
initializer.setId(privateSample.getId()); initializer.setId(privateSample.getId());
initializer.setSpaceCode(privateSample.getSpace() != null ? privateSample.getSpace()
.getCode() : null);
initializer.setPermId(privateSample.getPermId()); initializer.setPermId(privateSample.getPermId());
initializer.setCode(privateSample.getCode()); initializer.setCode(privateSample.getCode());
initializer.setIdentifier(privateSample.getIdentifier()); initializer.setIdentifier(privateSample.getIdentifier());
......
...@@ -51,6 +51,8 @@ public final class Sample implements Serializable, IIdentifierHolder ...@@ -51,6 +51,8 @@ public final class Sample implements Serializable, IIdentifierHolder
{ {
private Long id; private Long id;
private String spaceCode;
private String permId; private String permId;
private String code; private String code;
...@@ -77,6 +79,16 @@ public final class Sample implements Serializable, IIdentifierHolder ...@@ -77,6 +79,16 @@ public final class Sample implements Serializable, IIdentifierHolder
return id; return id;
} }
public void setSpaceCode(String spaceCode)
{
this.spaceCode = spaceCode;
}
public String getSpaceCode()
{
return spaceCode;
}
public void setPermId(String permId) public void setPermId(String permId)
{ {
this.permId = permId; this.permId = permId;
...@@ -160,6 +172,8 @@ public final class Sample implements Serializable, IIdentifierHolder ...@@ -160,6 +172,8 @@ public final class Sample implements Serializable, IIdentifierHolder
private Long id; private Long id;
private String spaceCode;
private String permId; private String permId;
private String code; private String code;
...@@ -186,6 +200,8 @@ public final class Sample implements Serializable, IIdentifierHolder ...@@ -186,6 +200,8 @@ public final class Sample implements Serializable, IIdentifierHolder
InitializingChecks.checkValidLong(initializer.getId(), "Unspecified id."); InitializingChecks.checkValidLong(initializer.getId(), "Unspecified id.");
this.id = initializer.getId(); this.id = initializer.getId();
this.spaceCode = initializer.getSpaceCode();
InitializingChecks.checkValidString(initializer.getPermId(), "Unspecified permanent id."); InitializingChecks.checkValidString(initializer.getPermId(), "Unspecified permanent id.");
this.permId = initializer.getPermId(); this.permId = initializer.getPermId();
...@@ -221,6 +237,14 @@ public final class Sample implements Serializable, IIdentifierHolder ...@@ -221,6 +237,14 @@ public final class Sample implements Serializable, IIdentifierHolder
return id; return id;
} }
/**
* Returns the space code.
*/
public String getSpaceCode()
{
return spaceCode;
}
/** /**
* Returns the sample permanent id. * Returns the sample permanent id.
*/ */
......
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