comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifact.java @ 870:d5fb88ba99d2

Display status message and progress information in the WSPLGEN loading panel. flys-client/trunk@2690 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 09 Sep 2011 15:08:15 +0000
parents c9549074ecd1
children e8a4d2fd25cc
comparison
equal deleted inserted replaced
869:94d9c8353ca9 870:d5fb88ba99d2
1 package de.intevation.flys.client.shared.model; 1 package de.intevation.flys.client.shared.model;
2
3 import java.util.List;
2 4
3 5
4 /** 6 /**
5 * The default implementation of an artifact that might be used in the client. 7 * The default implementation of an artifact that might be used in the client.
6 * 8 *
15 protected String hash; 17 protected String hash;
16 18
17 /** Determines if the artifact is in background mode.*/ 19 /** Determines if the artifact is in background mode.*/
18 protected boolean inBackground; 20 protected boolean inBackground;
19 21
22 protected List<CalculationMessage> messages;
23
20 /** The current artifact description. */ 24 /** The current artifact description. */
21 protected ArtifactDescription artifactDescription; 25 protected ArtifactDescription artifactDescription;
22 26
23 /** 27 /**
24 * This constructor should not be used to create new instances of this 28 * This constructor should not be used to create new instances of this
28 public DefaultArtifact() { 32 public DefaultArtifact() {
29 } 33 }
30 34
31 35
32 public DefaultArtifact(String uuid, String hash) { 36 public DefaultArtifact(String uuid, String hash) {
33 this(uuid, hash, false); 37 this(uuid, hash, false, null);
34 } 38 }
35 39
36 40
37 /** 41 /**
38 * This constructor creates a new artifact instance with a uuid and a hash. 42 * This constructor creates a new artifact instance with a uuid and a hash.
39 * 43 *
40 * @param uuid The artifact's uuid. 44 * @param uuid The artifact's uuid.
41 * @param hash The artifact's hash. 45 * @param hash The artifact's hash.
42 */ 46 */
43 public DefaultArtifact(String uuid, String hash, boolean inBackground) { 47 public DefaultArtifact(
48 String uuid,
49 String hash,
50 boolean inBackground,
51 List<CalculationMessage> messages
52 ) {
44 this.uuid = uuid; 53 this.uuid = uuid;
45 this.hash = hash; 54 this.hash = hash;
46 this.inBackground = inBackground; 55 this.inBackground = inBackground;
56 this.messages = messages;
47 } 57 }
48 58
49 59
50 public String getUuid() { 60 public String getUuid() {
51 return uuid; 61 return uuid;
65 public boolean isInBackground() { 75 public boolean isInBackground() {
66 return inBackground; 76 return inBackground;
67 } 77 }
68 78
69 79
80 public List<CalculationMessage> getBackgroundMessages() {
81 return messages;
82 }
83
84
70 public ArtifactDescription getArtifactDescription() { 85 public ArtifactDescription getArtifactDescription() {
71 return artifactDescription; 86 return artifactDescription;
72 } 87 }
73 88
74 89

http://dive4elements.wald.intevation.org