Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1782:93fe7debd687 | 1783:376c81aa7d55 |
---|---|
479 * | 479 * |
480 * @return the vector of previous state identifiers. | 480 * @return the vector of previous state identifiers. |
481 */ | 481 */ |
482 protected List<String> getPreviousStateIds() { | 482 protected List<String> getPreviousStateIds() { |
483 return previousStateIds; | 483 return previousStateIds; |
484 } | |
485 | |
486 | |
487 /** | |
488 * Get all previous and the current state id. | |
489 * @return #getPreviousStateIds() + #getCurrentStateId() | |
490 */ | |
491 public List<String> getStateHistoryIds() { | |
492 List<String> allIds = getPreviousStateIds(); | |
493 allIds.add(getCurrentStateId()); | |
494 return allIds; | |
484 } | 495 } |
485 | 496 |
486 | 497 |
487 /** | 498 /** |
488 * Adds a new StateData item to the data pool of this artifact. | 499 * Adds a new StateData item to the data pool of this artifact. |