org.jboss.seam.security.permission
@Name(value="org.jboss.seam.security.ruleBasedPermissionResolver") @Scope(value=SESSION) @BypassInterceptors @Install(precedence=0, classDependencies="org.drools.WorkingMemory") @Startup public class RuleBasedPermissionResolver extends Object implements PermissionResolver, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
RULES_COMPONENT_NAME |
Constructor and Description |
---|
RuleBasedPermissionResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkConditionalRole(String roleName,
Object target,
String action) |
boolean |
create() |
void |
filterSetByAction(Set<Object> targets,
String action) |
org.drools.StatefulSession |
getSecurityContext() |
org.drools.RuleBase |
getSecurityRules() |
boolean |
hasPermission(Object target,
String action)
Performs a permission check for the specified name and action
|
protected void |
initSecurityContext() |
static RuleBasedPermissionResolver |
instance() |
void |
setSecurityContext(org.drools.StatefulSession securityContext) |
void |
setSecurityRules(org.drools.RuleBase securityRules) |
void |
setUserAccountInSecurityContext()
Post-authentication event observer
|
void |
unAuthenticate() |
public static final String RULES_COMPONENT_NAME
@Create public boolean create()
protected void initSecurityContext()
public boolean hasPermission(Object target, String action)
hasPermission
in interface PermissionResolver
target
- Object The target of the permission checkaction
- String The action to be performed on the targetpublic void filterSetByAction(Set<Object> targets, String action)
filterSetByAction
in interface PermissionResolver
public boolean checkConditionalRole(String roleName, Object target, String action)
public org.drools.StatefulSession getSecurityContext()
public void setSecurityContext(org.drools.StatefulSession securityContext)
public org.drools.RuleBase getSecurityRules()
public void setSecurityRules(org.drools.RuleBase securityRules)
public static RuleBasedPermissionResolver instance()
Copyright © 2015 Seam Framework. All Rights Reserved.