public class SlingshotGroupComponentElementEvaluator
extends org.springframework.extensions.surf.extensibility.impl.DefaultSubComponentEvaluator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AND |
static java.lang.String |
GROUPS |
static java.lang.String |
NEGATE |
static java.lang.String |
RELATION |
protected SlingshotEvaluatorUtil |
util |
Constructor and Description |
---|
SlingshotGroupComponentElementEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(org.springframework.extensions.surf.RequestContext context,
java.util.Map params)
Checks to see whether or not the current user satisfies the group membership requirements
specified.
|
protected boolean |
getNegation(org.springframework.extensions.surf.RequestContext context,
java.util.Map evaluationProperties)
Checks for a request for to negate the ruling.
|
protected boolean |
getRelationship(org.springframework.extensions.surf.RequestContext context,
java.util.Map evaluationProperties)
Gets the logical relationship between all the groups to test for membership of.
|
void |
setSlingshotEvaluatorUtil(SlingshotEvaluatorUtil slingshotExtensibilityUtil) |
protected SlingshotEvaluatorUtil util
public static final java.lang.String GROUPS
public static final java.lang.String RELATION
public static final java.lang.String AND
public static final java.lang.String NEGATE
public SlingshotGroupComponentElementEvaluator()
public void setSlingshotEvaluatorUtil(SlingshotEvaluatorUtil slingshotExtensibilityUtil)
public boolean evaluate(org.springframework.extensions.surf.RequestContext context, java.util.Map params)
evaluate
in interface org.springframework.extensions.surf.extensibility.SubComponentEvaluator
evaluate
in class org.springframework.extensions.surf.extensibility.impl.DefaultSubComponentEvaluator
protected boolean getNegation(org.springframework.extensions.surf.RequestContext context, java.util.Map evaluationProperties)
context
- evaluationProperties
- protected boolean getRelationship(org.springframework.extensions.surf.RequestContext context, java.util.Map evaluationProperties)
context
- evaluationProperties
- Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.