Skip to content
Snippets Groups Projects
Commit 7391052b authored by kaloyane's avatar kaloyane
Browse files

[LMS-2332] add getMaterialIdentifier() method to IMaterialImmutable

SVN: 21913
parent 32f09db8
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,11 @@ public class MaterialImmutable implements IMaterialImmutable ...@@ -41,6 +41,11 @@ public class MaterialImmutable implements IMaterialImmutable
this.existingMaterial = existingMaterial; this.existingMaterial = existingMaterial;
} }
public String getMaterialIdentifier()
{
return material.getIdentifier();
}
public String getCode() public String getCode()
{ {
return material.getCode(); return material.getCode();
...@@ -80,4 +85,5 @@ public class MaterialImmutable implements IMaterialImmutable ...@@ -80,4 +85,5 @@ public class MaterialImmutable implements IMaterialImmutable
{ {
return EntityHelper.tryFindPropertyValue(material, propertyCode); return EntityHelper.tryFindPropertyValue(material, propertyCode);
} }
} }
...@@ -22,6 +22,11 @@ package ch.systemsx.cisd.openbis.dss.generic.shared.api.internal; ...@@ -22,6 +22,11 @@ package ch.systemsx.cisd.openbis.dss.generic.shared.api.internal;
public interface IMaterialImmutable public interface IMaterialImmutable
{ {
/**
* Return the identifier for this material.
*/
String getMaterialIdentifier();
/** /**
* Return the code for this material. * Return the code for this material.
*/ */
......
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