# HG changeset patch # User Felix Wolfsteller # Date 1319795759 0 # Node ID 376c81aa7d55493ef051119deb30a1e050ab13f8 # Parent 93fe7debd687822652326d113f60cc3642919615 Added method to FLYSArtifact to access ids of states. flys-artifacts/trunk@3105 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 93fe7debd687 -r 376c81aa7d55 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Fri Oct 28 09:39:03 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Oct 28 09:55:59 2011 +0000 @@ -1,3 +1,9 @@ +2011-10-28 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java + (getStateHistoryIds): New, return list of current and all previous + state ids. + 2011-10-28 Ingo Weinzierl * src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java: diff -r 93fe7debd687 -r 376c81aa7d55 flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java --- 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 getStateHistoryIds() { + List 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.