1 package com.trendmicro.grid.acl; 2 3 import java.lang.annotation.*; 4 5 /** 6 * Defines the required list of user roles that must be present in order to run a method holding this annotation. 7 * <p/> 8 * The marker is used to setup protection rules using AspectJ. 9 * 10 * @author juergen_kellerer, 2011-02-02 11 * @version 1.0 12 */ 13 @Documented 14 @Retention(RetentionPolicy.RUNTIME) 15 @Target({ElementType.METHOD}) 16 public @interface RequiredRoles { 17 /** 18 * A list of required roles. 19 * 20 * @return list of required roles. 21 */ 22 String[] value() default {}; 23 }