comparison ChangeLog @ 257:8c2b6cdf22ad

Modified Transition.isValid() - added the artifact and the current state to the parameter list. artifacts/trunk@1758 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 28 Apr 2011 10:30:30 +0000
parents 55d08706ccf2
children c41b300b02c3
comparison
equal deleted inserted replaced
256:55d08706ccf2 257:8c2b6cdf22ad
1 2011-04-28 Ingo Weinzierl <ingo@intevation.de>
2
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/transition/Transition.java:
4 Modified the isValid() method. The transition needs to know about the
5 current artifact where its data is stored, the current state and maybe
6 the target state to determine if it is allowed to step from the current
7 state to a target state!
8 NOTE: This breaks the current API!
9
10 artifact-database/src/main/java/de/intevation/artifactdatabase/transition/TransitionEngine.java
11
1 2011-04-28 Ingo Weinzierl <ingo@intevation.de> 12 2011-04-28 Ingo Weinzierl <ingo@intevation.de>
2 13
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java, 14 * artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java,
4 artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java: 15 artifact-database/src/main/java/de/intevation/artifactdatabase/state/AbstractState.java:
5 States have now a method getData(String) to retrieve just a single StateData object. 16 States have now a method getData(String) to retrieve just a single StateData object.

http://dive4elements.wald.intevation.org