summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/property
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-10-01 21:09:06 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-10-01 21:09:06 +0200
commit9c5d6e82b5ce733cf23e4317e3bafaa42c2221ba (patch)
tree64657888b5ff52cd8759c6feb15c6087b96d37c6 /src/main/java/com/c2kernel/property
parent8afca6b565edfa0e32aa8e12f30bfff5598abdd4 (diff)
Collection version support, stored as a new final component of the
Collection path. Null version implies "last".
Diffstat (limited to 'src/main/java/com/c2kernel/property')
-rw-r--r--src/main/java/com/c2kernel/property/PropertyUtility.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/property/PropertyUtility.java b/src/main/java/com/c2kernel/property/PropertyUtility.java
index 1e35c98..602426d 100644
--- a/src/main/java/com/c2kernel/property/PropertyUtility.java
+++ b/src/main/java/com/c2kernel/property/PropertyUtility.java
@@ -55,11 +55,11 @@ public class PropertyUtility
}
- static public PropertyDescriptionList getPropertyDescriptionOutcome(ItemPath itemPath) throws ObjectNotFoundException
+ static public PropertyDescriptionList getPropertyDescriptionOutcome(ItemPath itemPath, String descVer) throws ObjectNotFoundException
{
try
{
- Outcome outc = (Outcome) Gateway.getStorage().get(itemPath, ClusterStorage.VIEWPOINT+"/PropertyDescription/last/data", null);
+ Outcome outc = (Outcome) Gateway.getStorage().get(itemPath, ClusterStorage.VIEWPOINT+"/PropertyDescription/"+descVer+"/data", null);
return (PropertyDescriptionList)Gateway.getMarshaller().unmarshall(outc.getData());
}
catch (Exception ex)