[jboss-user] [JBoss Seam] - Can we security @Factory?

wuhaixing do-not-reply at jboss.com
Mon Nov 26 00:40:19 EST 2007


I found following in the seamspaces,Does this mean security applied to the @Factory?If it's true,is there any other action options?
security-rules.drl
rule CreateFriendRequest
  |   no-loop
  |   activation-group "permissions"
  | when
  |   check: PermissionCheck(name == "friendRequest", action == "create", granted == false)
  |   Principal(principalName : name)
  |   not MemberFriend(f : friend -> (f.getUsername().equals(principalName)))
  | then
  |   check.grant();
  | end
FriendAction.java
@Factory("friendRequest") @Begin
  |    public void createRequest()
  |    {
  |      .....
  |    }

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

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



More information about the jboss-user mailing list