|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.extensions.surf.extensibility.impl.DefaultSubComponentEvaluator
org.alfresco.web.extensibility.SlingshotSiteComponentElementEvaluator
public class SlingshotSiteComponentElementEvaluator
Evaluator used to decide if a shall be bound in to a and .
Returns true if we are inside a site AND that site's id matches the regexp from the parameter.
Note! The regexp is expressed without using the surrounding // characters.
Note! the default value of the parameter is ".*" which will make it match all site's ids.
Example:
<evaluator type="site.component.evaluator"/>
Will return tru if we are in a site, no matter what the id of the site is.
Example 2:
<evaluator type="site.component.evaluator">
<params>
<sites>marketing|engineering</referrer>
</params>
</evaluator>
Will return true if we are inside a site with an id of "marketing" or "engineering".
Field Summary | |
---|---|
static java.lang.String |
SITE_FILTER
|
protected SlingshotEvaluatorUtil |
util
|
Constructor Summary | |
---|---|
SlingshotSiteComponentElementEvaluator()
|
Method Summary | |
---|---|
boolean |
evaluate(org.springframework.extensions.surf.RequestContext context,
java.util.Map params)
Decides if we are inside a site or not. |
void |
setSlingshotEvaluatorUtil(SlingshotEvaluatorUtil slingshotExtensibilityUtil)
|
Methods inherited from class org.springframework.extensions.surf.extensibility.impl.DefaultSubComponentEvaluator |
---|
getBeanName, setBeanName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SITE_FILTER
protected SlingshotEvaluatorUtil util
Constructor Detail |
---|
public SlingshotSiteComponentElementEvaluator()
Method Detail |
---|
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
context
- params
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |