org.alfresco.web.evaluator.doclib.action
Class ViewInExplorerEvaluator

java.lang.Object
  extended by org.alfresco.web.evaluator.BaseEvaluator
      extended by org.alfresco.web.evaluator.doclib.action.ViewInExplorerEvaluator
All Implemented Interfaces:
Evaluator

public class ViewInExplorerEvaluator
extends BaseEvaluator

Evaluates whether a repositoryUrl config value has been set and that we're not in portlet mode


Field Summary
 
Fields inherited from class org.alfresco.web.evaluator.BaseEvaluator
args, metadata, negateOutput
 
Constructor Summary
ViewInExplorerEvaluator()
           
 
Method Summary
 boolean evaluate(org.json.simple.JSONObject jsonObject)
          Evaluator implementations abstract method.
protected  java.lang.Object getConfigValue(java.lang.String condition, java.lang.String elementName)
          Retrieve config value
 void setConfigService(org.springframework.extensions.config.ConfigService configService)
          Config Service setter
 
Methods inherited from class org.alfresco.web.evaluator.BaseEvaluator
evaluate, evaluate, evaluate, getArg, getArgs, getContainerType, getHeader, getIsLocked, getIsPortlet, getJSONValue, getMatchesCurrentUser, getMetadata, getNodeAspects, getNodeType, getProperty, getSiteId, getSitePreset, getUserId, setNegateOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewInExplorerEvaluator

public ViewInExplorerEvaluator()
Method Detail

setConfigService

public void setConfigService(org.springframework.extensions.config.ConfigService configService)
Config Service setter

Parameters:
configService -

evaluate

public boolean evaluate(org.json.simple.JSONObject jsonObject)
Description copied from class: BaseEvaluator
Evaluator implementations abstract method.

Specified by:
evaluate in interface Evaluator
Specified by:
evaluate in class BaseEvaluator
Parameters:
jsonObject - The object the evaluation is for
Returns:
boolean indicating evaluator result

getConfigValue

protected java.lang.Object getConfigValue(java.lang.String condition,
                                          java.lang.String elementName)
Retrieve config value

Parameters:
condition - Config section
elementName - Element within section
Returns:
Object || null


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.