ingo@219: /* ingo@219: * Copyright (c) 2011 by Intevation GmbH ingo@219: * ingo@219: * This program is free software under the LGPL (>=v2.1) ingo@219: * Read the file LGPL.txt coming with the software for details ingo@219: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@219: */ teichmann@475: package org.dive4elements.artifactdatabase; ingo@219: ingo@331: import java.util.LinkedList; ingo@331: ingo@219: import org.apache.log4j.Logger; teichmann@475: import org.dive4elements.artifacts.ArtifactCollection; teichmann@475: import org.dive4elements.artifacts.CallMeta; teichmann@475: import org.dive4elements.artifacts.Message; ingo@219: ingo@219: /** ingo@219: * Class that implements the call context handed to ArtifactCollection specific ingo@219: * operations. ingo@219: * ingo@219: * @author Ingo Weinzierl ingo@219: */ ingo@219: public class CollectionCallContext extends AbstractCallContext { ingo@219: ingo@219: private static Logger log = Logger.getLogger(CollectionCallContext.class); ingo@219: ingo@219: /** ingo@219: * The ArtifactCollection. ingo@219: */ gernotbelger@559: private final ArtifactCollection collection; ingo@219: gernotbelger@559: public CollectionCallContext(final ArtifactDatabaseImpl artifactDatabase, final int action, final CallMeta callMeta, final ArtifactCollection collection) { sascha@246: super(artifactDatabase, action, callMeta); ingo@219: ingo@219: this.collection = collection; ingo@219: } ingo@219: gernotbelger@559: public ArtifactCollection getCollection() { gernotbelger@559: return this.collection; gernotbelger@559: } ingo@219: gernotbelger@559: @Override gernotbelger@559: public void afterCall(final int action) { ingo@219: log.debug("CollectionCallContext.afterCall - NOT IMPLEMENTED"); ingo@219: } ingo@219: gernotbelger@559: @Override gernotbelger@559: public void afterBackground(final int action) { ingo@219: log.debug("CollectionCallContext.afterBackground - NOT IMPLEMENTED"); ingo@219: } ingo@219: gernotbelger@559: @Override ingo@330: public boolean isInBackground() { ingo@330: log.debug("CollectionCallContext.isInBackground - NOT IMPLEMENTED"); ingo@330: return false; ingo@330: } ingo@330: gernotbelger@559: @Override gernotbelger@559: public void addBackgroundMessage(final Message msg) { ingo@331: log.debug("CollectionCallContext.addBackgroundMessage NOT IMPLEMENTED"); ingo@331: } ingo@331: gernotbelger@559: @Override ingo@331: public LinkedList getBackgroundMessages() { ingo@331: log.debug("CollectionCallContext.addBackgroundMessage NOT IMPLEMENTED"); ingo@331: return null; ingo@331: } ingo@331: gernotbelger@559: @Override ingo@219: public Long getTimeToLive() { ingo@219: log.debug("CollectionCallContext.getTimeToLive - NOT IMPLEMENTED"); ingo@219: return null; ingo@219: } gernotbelger@559: }