Mercurial > dive4elements > river
changeset 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 | 93fe7debd687 |
children | 0fe3c4849baa |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <felix.wolfsteller@intevation.de> + + * 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 <ingo@intevation.de> * src/main/java/de/intevation/flys/artifacts/states/FloodMapState.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<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.