|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.web.extensibility.SlingshotPortletModuleEvaluator
public class SlingshotPortletModuleEvaluator
Evaluator used to decide if an extension module (and its & ) shall be used for this request.
Makes it possible to decide if we are viewed from a portal and (optional) which portal using a regexp in the parameter.
Note! The regexp is expressed without using the surrounding // characters.
Example:
Will return true of we are viewed from inside a portal otherwise false.
Example 2:
<evaluator>portlet.module.evaluator</evaluator>
<evaluatorProperties>
<portletUrls>regexp mathing a portlet url</portletUrls>
</evaluatorProperties>
Will return true of we are viewed from inside a portal and that portal's url matches the regexp in the parameter.
| Field Summary | |
|---|---|
static java.lang.String |
PORTLET_URLS_FILTER
|
protected SlingshotEvaluatorUtil |
util
|
| Constructor Summary | |
|---|---|
SlingshotPortletModuleEvaluator()
|
|
| Method Summary | |
|---|---|
boolean |
applyModule(org.springframework.extensions.surf.RequestContext context,
java.util.Map params)
Decides if we are inside a portal or not. |
java.lang.String[] |
getRequiredProperties()
|
void |
setSlingshotEvaluatorUtil(SlingshotEvaluatorUtil slingshotExtensibilityUtil)
|
| 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 PORTLET_URLS_FILTER
protected SlingshotEvaluatorUtil util
| Constructor Detail |
|---|
public SlingshotPortletModuleEvaluator()
| Method Detail |
|---|
public void setSlingshotEvaluatorUtil(SlingshotEvaluatorUtil slingshotExtensibilityUtil)
public java.lang.String[] getRequiredProperties()
getRequiredProperties in interface org.springframework.extensions.surf.extensibility.ExtensionModuleEvaluator
public boolean applyModule(org.springframework.extensions.surf.RequestContext context,
java.util.Map params)
applyModule in interface org.springframework.extensions.surf.extensibility.ExtensionModuleEvaluatorcontext - params -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||