diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 1783:376c81aa7d55

Added method to FLYSArtifact to access ids of states. flys-artifacts/trunk@3105 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 28 Oct 2011 09:55:59 +0000
parents a8aa343799a2
children f6a190f6aaff
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Fri Oct 28 09:39:03 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Fri Oct 28 09:55:59 2011 +0000
@@ -485,6 +485,17 @@
 
 
     /**
+     * Get all previous and the current state id.
+     * @return #getPreviousStateIds() + #getCurrentStateId()
+     */
+    public List<String> getStateHistoryIds() {
+        List<String> allIds = getPreviousStateIds();
+        allIds.add(getCurrentStateId());
+        return allIds;
+    }
+
+
+    /**
      * Adds a new StateData item to the data pool of this artifact.
      *
      * @param name the name of the data object.

http://dive4elements.wald.intevation.org