Coverage Report - pt.digitalis.dif.dem.annotations.security.User
 
Classes in this File Line Coverage Branch Coverage Complexity
User
N/A
N/A
0
 
 1  
 /**
 2  
  * - Digitalis Internal Framework v2.0 - (C) 2007, Digitalis Informatica. Distribuicao e Gestao de Informatica, Lda.
 3  
  * Estrada de Paco de Arcos num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999
 4  
  * http://www.digitalis.pt
 5  
  */
 6  
 package pt.digitalis.dif.dem.annotations.security;
 7  
 
 8  
 import java.lang.annotation.ElementType;
 9  
 import java.lang.annotation.Retention;
 10  
 import java.lang.annotation.RetentionPolicy;
 11  
 import java.lang.annotation.Target;
 12  
 
 13  
 import pt.digitalis.dif.dem.annotations.metaannotations.BindToPrimary;
 14  
 
 15  
 /**
 16  
  * This annotation defines a default User for the containing DEM entity. The annotation can be used on the following
 17  
  * elements: <code>@ApplicationDefinition</code>.
 18  
  * 
 19  
  * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a>
 20  
  * @created Dec 6, 2007
 21  
  */
 22  
 @Target(ElementType.TYPE)
 23  
 @Retention(RetentionPolicy.RUNTIME)
 24  
 @BindToPrimary({"pt.digitalis.dif.dem.annotations.entities.ApplicationDefinition"})
 25  
 public @interface User {
 26  
 
 27  
     /** List of user attributes. Key value pairs. Ex. "attr1=value1,attr2=value2..." */
 28  
     String attributes() default "";
 29  
 
 30  
     /** Default email for this user. Defaults to "${userName}@domain.com". */
 31  
     String email() default "";
 32  
 
 33  
     /** Full name for the given user. Defaults to the userName */
 34  
     String fullName() default "";
 35  
 
 36  
     /** List of groups that this user is associated to */
 37  
     String groups() default "";
 38  
 
 39  
     /** nick name for the given user. Defaults to the fullName */
 40  
     String nick() default "";
 41  
 
 42  
     /** Default password for the given user. Defaults to the userName */
 43  
     String password() default "";
 44  
 
 45  
     /** user profile group */
 46  
     String profile();
 47  
 
 48  
     /** user name for the given user (for login purposes) */
 49  
     String userName();
 50  
 }