1 /** 2 * - Digitalis Internal Framework v2.0 - (C) 2007, Digitalis Informatica. 3 * Distribuicao e Gestao de Informatica, Lda. Estrada de Paco de Arcos num.9 - 4 * Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 5 * 4408999 http://www.digitalis.pt 6 */ 7 package pt.digitalis.dif.dem.annotations.security; 8 9 import java.lang.annotation.ElementType; 10 import java.lang.annotation.Retention; 11 import java.lang.annotation.RetentionPolicy; 12 import java.lang.annotation.Target; 13 14 import pt.digitalis.dif.dem.annotations.metaannotations.BindToPrimary; 15 16 /** 17 * This annotation defines a default ACL for the containing DEM entity. The annotation can be used on the following 18 * elements: <code>@StageDefinition</code>. 19 * 20 * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a> 21 * @created Dec 6, 2007 22 */ 23 @Target(ElementType.TYPE) 24 @Retention(RetentionPolicy.RUNTIME) 25 @BindToPrimary( { "pt.digitalis.dif.dem.annotations.entities.StageDefinition" }) 26 public @interface AccessControl { 27 28 /** List of users that the current resource will be associated to in the ACLs */ 29 String users() default ""; 30 31 /** List of groups that the current resource will be associated to in the ACLs */ 32 String groups() default ""; 33 34 /** 35 * If T the resource will be marked inaccessible to any user. This means that this resource can be granted but has 36 * no grants by default. If F then it is a public resource. 37 */ 38 boolean none() default false; 39 }