comparison artifact-database/src/main/java/org/dive4elements/artifactdatabase/CollectionCallContext.java @ 559:06257387b98f

Moved chart metadata line to top of chart. Minor cleanup.
author gernotbelger
date Thu, 26 Jul 2018 14:36:32 +0200
parents 415df0fc4fa1
children
comparison
equal deleted inserted replaced
558:609ced80bcf0 559:06257387b98f
8 package org.dive4elements.artifactdatabase; 8 package org.dive4elements.artifactdatabase;
9 9
10 import java.util.LinkedList; 10 import java.util.LinkedList;
11 11
12 import org.apache.log4j.Logger; 12 import org.apache.log4j.Logger;
13
14 import org.dive4elements.artifacts.ArtifactCollection; 13 import org.dive4elements.artifacts.ArtifactCollection;
15 import org.dive4elements.artifacts.CallMeta; 14 import org.dive4elements.artifacts.CallMeta;
16 import org.dive4elements.artifacts.Message; 15 import org.dive4elements.artifacts.Message;
17
18 16
19 /** 17 /**
20 * Class that implements the call context handed to ArtifactCollection specific 18 * Class that implements the call context handed to ArtifactCollection specific
21 * operations. 19 * operations.
22 * 20 *
27 private static Logger log = Logger.getLogger(CollectionCallContext.class); 25 private static Logger log = Logger.getLogger(CollectionCallContext.class);
28 26
29 /** 27 /**
30 * The ArtifactCollection. 28 * The ArtifactCollection.
31 */ 29 */
32 protected ArtifactCollection collection; 30 private final ArtifactCollection collection;
33 31
34 32 public CollectionCallContext(final ArtifactDatabaseImpl artifactDatabase, final int action, final CallMeta callMeta, final ArtifactCollection collection) {
35 public CollectionCallContext(
36 ArtifactDatabaseImpl artifactDatabase,
37 int action,
38 CallMeta callMeta,
39 ArtifactCollection collection)
40 {
41 super(artifactDatabase, action, callMeta); 33 super(artifactDatabase, action, callMeta);
42 34
43 this.collection = collection; 35 this.collection = collection;
44 } 36 }
45 37
38 public ArtifactCollection getCollection() {
39 return this.collection;
40 }
46 41
47 public void afterCall(int action) { 42 @Override
43 public void afterCall(final int action) {
48 log.debug("CollectionCallContext.afterCall - NOT IMPLEMENTED"); 44 log.debug("CollectionCallContext.afterCall - NOT IMPLEMENTED");
49 } 45 }
50 46
51 47 @Override
52 public void afterBackground(int action) { 48 public void afterBackground(final int action) {
53 log.debug("CollectionCallContext.afterBackground - NOT IMPLEMENTED"); 49 log.debug("CollectionCallContext.afterBackground - NOT IMPLEMENTED");
54 } 50 }
55 51
56 52 @Override
57 public boolean isInBackground() { 53 public boolean isInBackground() {
58 log.debug("CollectionCallContext.isInBackground - NOT IMPLEMENTED"); 54 log.debug("CollectionCallContext.isInBackground - NOT IMPLEMENTED");
59 return false; 55 return false;
60 } 56 }
61 57
62 58 @Override
63 public void addBackgroundMessage(Message msg) { 59 public void addBackgroundMessage(final Message msg) {
64 log.debug("CollectionCallContext.addBackgroundMessage NOT IMPLEMENTED"); 60 log.debug("CollectionCallContext.addBackgroundMessage NOT IMPLEMENTED");
65 } 61 }
66 62
67 63 @Override
68 public LinkedList<Message> getBackgroundMessages() { 64 public LinkedList<Message> getBackgroundMessages() {
69 log.debug("CollectionCallContext.addBackgroundMessage NOT IMPLEMENTED"); 65 log.debug("CollectionCallContext.addBackgroundMessage NOT IMPLEMENTED");
70 return null; 66 return null;
71 } 67 }
72 68
73 69 @Override
74 public Long getTimeToLive() { 70 public Long getTimeToLive() {
75 log.debug("CollectionCallContext.getTimeToLive - NOT IMPLEMENTED"); 71 log.debug("CollectionCallContext.getTimeToLive - NOT IMPLEMENTED");
76 return null; 72 return null;
77 } 73 }
78 } 74 }
79 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org