org.jboss.reliance.drools.core.security
Class PermissionCheck

java.lang.Object
  extended by org.jboss.reliance.drools.core.rules.Nameable
      extended by org.jboss.reliance.drools.core.security.PermissionCheck
All Implemented Interfaces:
Serializable

public class PermissionCheck
extends Nameable

Used to assert permission requirements into a WorkingMemory when evaluating a @Restrict expression. The consequence of the rule is responsible for granting the permission.

Author:
Shane Bryzak, Ales Justin
See Also:
Serialized Form

Constructor Summary
PermissionCheck(Object name, Object action)
           
 
Method Summary
 Object getAction()
          Get the action.
 void grant()
          Set grant to true.
 boolean isGranted()
          Is permission granted.
 String toString()
           
 
Methods inherited from class org.jboss.reliance.drools.core.rules.Nameable
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionCheck

public PermissionCheck(Object name,
                       Object action)
Method Detail

getAction

public Object getAction()
Get the action.

Returns:
action

grant

public void grant()
Set grant to true.


isGranted

public boolean isGranted()
Is permission granted.

Returns:
true for granted

toString

public String toString()
Overrides:
toString in class Nameable


Copyright © 2008 JBoss Inc.. All Rights Reserved.