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

Parse Artifact's 'background-processing' attribute and lock the UI if this attribute is true. flys-client/trunk@2669 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 07 Sep 2011 13:57:28 +0000
parents 2c48d75c4ab7
children d5fb88ba99d2
comparison
equal deleted inserted replaced
861:65204f30877b 862:c9549074ecd1
12 protected String uuid; 12 protected String uuid;
13 13
14 /** The artifacts hash value. */ 14 /** The artifacts hash value. */
15 protected String hash; 15 protected String hash;
16 16
17 /** Determines if the artifact is in background mode.*/
18 protected boolean inBackground;
19
17 /** The current artifact description. */ 20 /** The current artifact description. */
18 protected ArtifactDescription artifactDescription; 21 protected ArtifactDescription artifactDescription;
19 22
20 /** 23 /**
21 * This constructor should not be used to create new instances of this 24 * This constructor should not be used to create new instances of this
24 */ 27 */
25 public DefaultArtifact() { 28 public DefaultArtifact() {
26 } 29 }
27 30
28 31
32 public DefaultArtifact(String uuid, String hash) {
33 this(uuid, hash, false);
34 }
35
36
29 /** 37 /**
30 * This constructor creates a new artifact instance with a uuid and a hash. 38 * This constructor creates a new artifact instance with a uuid and a hash.
31 * 39 *
32 * @param uuid The artifact's uuid. 40 * @param uuid The artifact's uuid.
33 * @param hash The artifact's hash. 41 * @param hash The artifact's hash.
34 */ 42 */
35 public DefaultArtifact(String uuid, String hash) { 43 public DefaultArtifact(String uuid, String hash, boolean inBackground) {
36 this.uuid = uuid; 44 this.uuid = uuid;
37 this.hash = hash; 45 this.hash = hash;
46 this.inBackground = inBackground;
38 } 47 }
39 48
40 49
41 public String getUuid() { 50 public String getUuid() {
42 return uuid; 51 return uuid;
51 public String getName() { 60 public String getName() {
52 return "default"; 61 return "default";
53 } 62 }
54 63
55 64
65 public boolean isInBackground() {
66 return inBackground;
67 }
68
69
56 public ArtifactDescription getArtifactDescription() { 70 public ArtifactDescription getArtifactDescription() {
57 return artifactDescription; 71 return artifactDescription;
58 } 72 }
59 73
60 74

http://dive4elements.wald.intevation.org