0 Replies Latest reply on May 29, 2009 5:44 AM by Yasser Hawari

    how to use PermissionCheck to write a permission annotation

    Yasser Hawari Newbie

      i would like to ask how can i use @PermissionCheck as suggested by the Seam manual to write a new annotation that can by applied to Classes and check for a certain action. i am tried this, but failed :(


      @Target({TYPE})    // is this possible ?
      @Documented
      @Retention(RUNTIME)
      @Inherited
      @PermissionCheck("read")
      public @interface ClassReadRestrict {
      Class value() default void.class;
      }
      



      thanks