org.jboss.reliance.drools.core.security
Class PermissionCheck
java.lang.Object
org.jboss.reliance.drools.core.rules.Nameable
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
| Methods inherited from class org.jboss.reliance.drools.core.rules.Nameable |
getName |
PermissionCheck
public PermissionCheck(Object name,
Object action)
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.