Mercurial > lada > lada-server
annotate src/main/java/de/intevation/lada/util/annotation/AuthorizationConfig.java @ 711:3ec358698b4d
Code style and documentation.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 22 Jul 2015 16:03:03 +0200 |
parents | 2f42128de67b |
children |
rev | line source |
---|---|
711
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
2 * Software engineering by Intevation GmbH |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
3 * |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
7 */ |
439
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 package de.intevation.lada.util.annotation; |
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 |
458
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
10 import java.lang.annotation.ElementType; |
439
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 import java.lang.annotation.Retention; |
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 import java.lang.annotation.RetentionPolicy; |
458
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
13 import java.lang.annotation.Target; |
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
14 |
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
15 import javax.inject.Qualifier; |
439
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 |
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 import de.intevation.lada.util.auth.AuthorizationType; |
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 |
711
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
19 /** |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
20 * Annotation used to configure authorization mechanism. |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
21 * |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
22 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> |
3ec358698b4d
Code style and documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
458
diff
changeset
|
23 */ |
458
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
24 @Qualifier |
439
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 @Retention(RetentionPolicy.RUNTIME) |
458
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
26 @Target({ |
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
27 ElementType.TYPE, |
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
28 ElementType.FIELD, |
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
29 ElementType.METHOD, |
2f42128de67b
Refactored auth module.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
439
diff
changeset
|
30 ElementType.PARAMETER}) |
439
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
31 public @interface AuthorizationConfig { |
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 AuthorizationType type() default AuthorizationType.NONE; |
bcd43f47ac5d
Added stubs for authentication/authorization.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 } |