From 7f4d70dbd7a2f7f59b5d42fb919b27e43f6725fd Mon Sep 17 00:00:00 2001
From: gpawel <gpawel>
Date: Mon, 4 Jun 2012 13:21:53 +0000
Subject: [PATCH] Expose getPermId method

SVN: 25539
---
 .../etlserver/registrator/api/v1/impl/SampleImmutable.java  | 6 ++++++
 .../generic/shared/api/internal/v1/ISampleImmutable.java    | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java
index 9bf77a28e3a..0d4799b2fa0 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/SampleImmutable.java
@@ -110,6 +110,12 @@ public class SampleImmutable implements ISampleImmutable
         return sample.getCode();
     }
 
+    @Override
+    public String getPermId()
+    {
+        return sample.getPermId();
+    }
+
     @Override
     public List<ISampleImmutable> getContainedSamples()
     {
diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java
index f015e758904..c39a6e73d59 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/internal/v1/ISampleImmutable.java
@@ -67,4 +67,8 @@ public interface ISampleImmutable
      */
     List<ISampleImmutable> getContainedSamples();
 
+    /**
+     * Returns the permId of this sample.
+     */
+    String getPermId();
 }
-- 
GitLab