Mercurial > dive4elements > framework
diff artifacts/src/main/java/de/intevation/artifacts/CallContext.java @ 331:089c6f7794b5
Integrated a messaging system for Artifacts and Collections that started background threads.
artifacts/trunk@2688 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 09 Sep 2011 14:06:55 +0000 |
parents | 3168af23aec5 |
children | 33d7a6da1a05 |
line wrap: on
line diff
--- a/artifacts/src/main/java/de/intevation/artifacts/CallContext.java Wed Sep 07 13:51:02 2011 +0000 +++ b/artifacts/src/main/java/de/intevation/artifacts/CallContext.java Fri Sep 09 14:06:55 2011 +0000 @@ -8,6 +8,8 @@ package de.intevation.artifacts; +import java.util.LinkedList; + import org.w3c.dom.Document; import org.w3c.dom.Node; @@ -71,6 +73,20 @@ boolean isInBackground(); /** + * Adds a background message for the current Artifact or Collection. + * + * @param msg The message. + */ + void addBackgroundMessage(Message msg); + + /** + * Returns the background messages of the current Artifact or Collection. + * + * @return the list of background messages. + */ + LinkedList<Message> getBackgroundMessages(); + + /** * Access to the global context of the runtime system. * @return The global context. */