Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/StateEngine.java @ 106:ece0fdb07975
Implementations to initialize and retrieve states.
artifacts/trunk@1291 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 04 Feb 2011 10:50:53 +0000 |
parents | 26bfff409dd3 |
children | 9ece61d918b1 |
comparison
equal
deleted
inserted
replaced
105:265f150f4f7f | 106:ece0fdb07975 |
---|---|
51 } | 51 } |
52 | 52 |
53 logger.debug("Add new states for the artifact '" + artifact + "'"); | 53 logger.debug("Add new states for the artifact '" + artifact + "'"); |
54 return this.states.put(artifact, states) != null; | 54 return this.states.put(artifact, states) != null; |
55 } | 55 } |
56 | |
57 | |
58 /** | |
59 * Returns the state list of an artifact specified by its name. | |
60 * | |
61 * @param artifact The name of the artifact. | |
62 * | |
63 * @return the list of states of this artifact or <i>null</i> if no states | |
64 * are existing for this <i>artifact</i>. | |
65 */ | |
66 public List<State> getStates(String artifact) { | |
67 return states.get(artifact); | |
68 } | |
56 } | 69 } |
57 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 70 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |