comparison artifact-database/src/main/java/de/intevation/artifactdatabase/CollectionCallContext.java @ 219:cabe4c02ab64

Refactored the CallContextImpl - there are two concrete classes for Artifacts and ArtifactCollections now. artifacts/trunk@1559 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 24 Mar 2011 16:16:51 +0000
parents
children a8a06bbe306c
comparison
equal deleted inserted replaced
218:70cbbe144931 219:cabe4c02ab64
1 /*
2 * Copyright (c) 2011 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8 package de.intevation.artifactdatabase;
9
10 import org.apache.log4j.Logger;
11
12 import de.intevation.artifacts.ArtifactCollection;
13 import de.intevation.artifacts.CallMeta;
14
15
16 /**
17 * Class that implements the call context handed to ArtifactCollection specific
18 * operations.
19 *
20 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
21 */
22 public class CollectionCallContext extends AbstractCallContext {
23
24 private static Logger log = Logger.getLogger(CollectionCallContext.class);
25
26 /**
27 * The ArtifactCollection.
28 */
29 protected ArtifactCollection collection;
30
31
32 public CollectionCallContext(
33 ArtifactDatabaseImpl artifactDatabase,
34 int action,
35 CallMeta callMeta,
36 Object context,
37 ArtifactCollection collection)
38 {
39 super(artifactDatabase, action, callMeta, context);
40
41 this.collection = collection;
42 }
43
44
45 public void afterCall(int action) {
46 log.debug("CollectionCallContext.afterCall - NOT IMPLEMENTED");
47 }
48
49
50 public void afterBackground(int action) {
51 log.debug("CollectionCallContext.afterBackground - NOT IMPLEMENTED");
52 }
53
54
55 public Long getTimeToLive() {
56 log.debug("CollectionCallContext.getTimeToLive - NOT IMPLEMENTED");
57 return null;
58 }
59
60
61 public void postCall() {
62 log.debug("CollectionCallContext.postCall - NOT IMPLEMENTED");
63 }
64 }
65 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org