[jboss-user] [JBoss Seam] - How to call a rule into Restrict annotation ?

paulovittor23 do-not-reply at jboss.com
Tue Oct 30 08:49:36 EDT 2007


Hi..

I have a rule like that...

anonymous wrote : 
  | rule "Can User Access"
  | when
  |     eval( new Date().before( new Date( Date.parse( "10/31/2007" ) ) )
  | then
  |     c.grant();
  | end;
  | 

And I have this Seam Component...


  | @Name("customer")
  | public class CustomerLogic extends EntityHome<Customer> {
  | 
  |     @Restrict( ??? ) <- What should I put here to call my rule ?
  |     public void doSomething(){
  |         /*     \o\ |o| /o/     */
  |     }
  |     
  | }
  | 

I appreciate r attention ! =)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100228#4100228

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100228



More information about the jboss-user mailing list