Mercurial > dive4elements > framework
annotate artifacts/src/main/java/org/dive4elements/artifacts/ContextInjector.java @ 550:68f01f10624e
Introduced helper for finding the user name for a given artifact
author | gernotbelger |
---|---|
date | Fri, 09 Feb 2018 13:26:19 +0100 |
parents | 7b8cf3da4f05 |
children |
rev | line source |
---|---|
529
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
1 /* |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
2 * Copyright (c) 2013 by Intevation GmbH |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
3 * |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
4 * This program is free software under the LGPL (>=v2.1) |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
5 * Read the file LGPL.txt coming with the software for details |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
6 * or visit http://www.gnu.org/licenses/ if it does not exist. |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
7 */ |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
8 package org.dive4elements.artifacts; |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
9 |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
10 import org.w3c.dom.Element; |
530
7b8cf3da4f05
Added request document to call context injector.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
529
diff
changeset
|
11 import org.w3c.dom.Document; |
529
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
12 |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
13 public interface ContextInjector { |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
14 |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
15 void setup(Element cfg); |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
16 |
530
7b8cf3da4f05
Added request document to call context injector.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
529
diff
changeset
|
17 void injectContext(CallContext ctx, Artifact artifact, Document request); |
529
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
18 } |
6e29526b621a
Added new interface for call context injectors.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff
changeset
|
19 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |