ingo@219: /*
ingo@219: * Copyright (c) 2010, 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: */
ingo@219: package de.intevation.artifactdatabase;
ingo@219:
felix@353: import java.util.ArrayList;
felix@353: import java.util.List;
ingo@219: import java.util.HashMap;
ingo@219:
ingo@219: import de.intevation.artifacts.ArtifactDatabase;
ingo@219: import de.intevation.artifacts.CallContext;
ingo@219: import de.intevation.artifacts.CallMeta;
felix@353: import de.intevation.artifacts.DataProvider;
ingo@219:
ingo@219:
ingo@219: /**
ingo@219: * Abstract class that implements some basic methods of a CallContext.
ingo@219: *
ingo@219: * @author Sascha L. Teichmann
ingo@219: * @author Ingo Weinzierl
ingo@219: */
ingo@219: public abstract class AbstractCallContext implements CallContext {
ingo@219:
ingo@219: /**
ingo@219: * The ArtifactDatabase instance.
ingo@219: */
ingo@219: protected ArtifactDatabaseImpl database;
ingo@219:
ingo@219: /**
ingo@219: * The action to be performed after the artifacts or collections calls.
ingo@219: */
ingo@219: protected int action;
ingo@219:
ingo@219: /**
ingo@219: * The meta information of the concrete call (preferred languages et. al.)
ingo@219: */
ingo@219: protected CallMeta callMeta;
ingo@219:
ingo@219: /**
ingo@219: * Map to act like a clipboard when nesting calls like a proxy artifact.
ingo@219: */
ingo@219: protected HashMap customValues;
ingo@219:
felix@353: /**
felix@353: * Map to act like a clipboard when nesting calls like a proxy artifact.
felix@353: */
felix@353: protected HashMap