1 /** 2007, Digitalis Informatica. All rights reserved.
2 *
3 * Distribuicao e Gestao de Informatica, Lda.
4 * Estrada de Paco de Arcos num.9 - Piso -1
5 * 2780-666 Paco de Arcos
6 * Telefone: (351) 21 4408990
7 * Fax: (351) 21 4408999
8 * http://www.digitalis.pt
9 */
10
11 package pt.digitalis.dif.dem.annotations.stage.controller;
12
13 import java.lang.annotation.ElementType;
14 import java.lang.annotation.Retention;
15 import java.lang.annotation.RetentionPolicy;
16 import java.lang.annotation.Target;
17
18 import pt.digitalis.dif.dem.annotations.metaannotations.BindToPrimary;
19
20 /**
21 * This annotation allows the programmer to configure the Stage execution by the DIF dispatcher. Using this annotation
22 * the programmer can specify if the Stage will enable authentication or if it will require authorization prior to
23 * running.
24 *
25 * @author Rodrigo Gonçalves <a href="mailto:rgoncalves@digitalis.pt">rgoncalves@digitalis.pt</a><br/>
26 * @created 2007/12/05
27 */
28 @Target(ElementType.TYPE)
29 @Retention(RetentionPolicy.RUNTIME)
30 @BindToPrimary("pt.digitalis.dif.dem.annotations.entities.StageDefinition")
31 public @interface DispatcherMode {
32
33 /** Enable authentication. */
34 boolean authenticate() default true;
35
36 /** Enable authorization. */
37 boolean authorize() default true;
38 }