diff 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
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifact.java	Wed Sep 07 10:40:56 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifact.java	Wed Sep 07 13:57:28 2011 +0000
@@ -14,6 +14,9 @@
     /** The artifacts hash value. */
     protected String hash;
 
+    /** Determines if the artifact is in background mode.*/
+    protected boolean inBackground;
+
     /** The current artifact description. */
     protected ArtifactDescription artifactDescription;
 
@@ -26,15 +29,21 @@
     }
 
 
+    public DefaultArtifact(String uuid, String hash) {
+        this(uuid, hash, false);
+    }
+
+
     /**
      * This constructor creates a new artifact instance with a uuid and a hash.
      *
      * @param uuid The artifact's uuid.
      * @param hash The artifact's hash.
      */
-    public DefaultArtifact(String uuid, String hash) {
-        this.uuid = uuid;
-        this.hash = hash;
+    public DefaultArtifact(String uuid, String hash, boolean inBackground) {
+        this.uuid         = uuid;
+        this.hash         = hash;
+        this.inBackground = inBackground;
     }
 
 
@@ -53,6 +62,11 @@
     }
 
 
+    public boolean isInBackground() {
+        return inBackground;
+    }
+
+
     public ArtifactDescription getArtifactDescription() {
         return artifactDescription;
     }

http://dive4elements.wald.intevation.org