org.alfresco.repo.action.evaluator
Class HasChildEvaluator

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
              extended by org.alfresco.repo.action.evaluator.HasChildEvaluator
All Implemented Interfaces:
ActionConditionEvaluator, org.springframework.beans.factory.BeanNameAware

public class HasChildEvaluator
extends ActionConditionEvaluatorAbstractBase

This ActionConditionEvaluator determines whether an actionedUponNodeRef has a child NodeRef with the specified assoc-name or assoc-type.

Since:
3.4

Field Summary
static java.lang.String NAME
          Evaluator constants
static java.lang.String PARAM_ASSOC_NAME
           
static java.lang.String PARAM_ASSOC_TYPE
           
 
Fields inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
actionConditionDefinition
 
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
DISPLAY_LABEL, runtimeActionService
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Constructor Summary
HasChildEvaluator()
           
 
Method Summary
protected  void addParameterDefinitions(java.util.List paramList)
          Adds the parameter definitions to the list
 boolean evaluateImpl(ActionCondition ruleCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
          Evaluation implementation
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Set node service
 
Methods inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
evaluate, getActionConditionDefintion, init, setPublicCondition
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString
 
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Evaluator constants

See Also:
Constant Field Values

PARAM_ASSOC_TYPE

public static final java.lang.String PARAM_ASSOC_TYPE
See Also:
Constant Field Values

PARAM_ASSOC_NAME

public static final java.lang.String PARAM_ASSOC_NAME
See Also:
Constant Field Values
Constructor Detail

HasChildEvaluator

public HasChildEvaluator()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set node service

Parameters:
nodeService - the node service

evaluateImpl

public boolean evaluateImpl(ActionCondition ruleCondition,
                            org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class: ActionConditionEvaluatorAbstractBase
Evaluation implementation

Specified by:
evaluateImpl in class ActionConditionEvaluatorAbstractBase
Parameters:
ruleCondition - the action condition
actionedUponNodeRef - the actioned upon node reference
Returns:
the result of the condition evaluation
See Also:
ActionConditionEvaluatorAbstractBase.evaluateImpl(org.alfresco.service.cmr.action.ActionCondition, org.alfresco.service.cmr.repository.NodeRef)

addParameterDefinitions

protected void addParameterDefinitions(java.util.List paramList)
Description copied from class: ParameterizedItemAbstractBase
Adds the parameter definitions to the list

Specified by:
addParameterDefinitions in class ParameterizedItemAbstractBase
Parameters:
paramList - the parameter definitions list
See Also:
ParameterizedItemAbstractBase.addParameterDefinitions(java.util.List)


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