本文整理汇总了Java中org.alfresco.repo.action.evaluator.ActionConditionEvaluator类的典型用法代码示例。如果您正苦于以下问题:Java ActionConditionEvaluator类的具体用法?Java ActionConditionEvaluator怎么用?Java ActionConditionEvaluator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ActionConditionEvaluator类属于org.alfresco.repo.action.evaluator包,在下文中一共展示了ActionConditionEvaluator类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: evaluateSimpleCondition
import org.alfresco.repo.action.evaluator.ActionConditionEvaluator; //导入依赖的package包/类
private boolean evaluateSimpleCondition(ActionCondition condition, NodeRef actionedUponNodeRef)
{
if (logger.isDebugEnabled())
{
logger.debug("Evaluating simple condition " + condition.getActionConditionDefinitionName());
}
// Evaluate the condition
ActionConditionEvaluator evaluator = (ActionConditionEvaluator) this.applicationContext.getBean(condition
.getActionConditionDefinitionName());
return evaluator.evaluate(condition, actionedUponNodeRef);
}
示例2: getActionConditionDefinition
import org.alfresco.repo.action.evaluator.ActionConditionEvaluator; //导入依赖的package包/类
/**
* @see org.alfresco.repo.action.ActionServiceImpl#getActionConditionDefinition(java.lang.String)
*/
public ActionConditionDefinition getActionConditionDefinition(String name)
{
// get direct access to action condition definition (i.e. ignoring public flag of executer)
ActionConditionDefinition definition = null;
Object bean = extendedApplicationContext.getBean(name);
if (bean instanceof ActionConditionEvaluator)
{
ActionConditionEvaluator evaluator = (ActionConditionEvaluator) bean;
definition = evaluator.getActionConditionDefintion();
}
return definition;
}
示例3: registerActionConditionEvaluator
import org.alfresco.repo.action.evaluator.ActionConditionEvaluator; //导入依赖的package包/类
/**
* @see org.alfresco.repo.action.RuntimeActionService#registerActionConditionEvaluator(org.alfresco.repo.action.evaluator.ActionConditionEvaluator)
*/
public void registerActionConditionEvaluator(ActionConditionEvaluator actionConditionEvaluator)
{
ActionConditionDefinition cond = actionConditionEvaluator.getActionConditionDefintion();
this.conditionDefinitions.put(cond.getName(), cond);
}
示例4: setActionConditionEvaluator
import org.alfresco.repo.action.evaluator.ActionConditionEvaluator; //导入依赖的package包/类
/**
* @param actionEvaluator action evaluator
*/
public void setActionConditionEvaluator(ActionConditionEvaluator actionConditionEvaluator)
{
this.actionConditionEvaluator = actionConditionEvaluator;
}
示例5: registerActionConditionEvaluator
import org.alfresco.repo.action.evaluator.ActionConditionEvaluator; //导入依赖的package包/类
/**
* Register an action condition evaluator
*
* @param actionConditionEvaluator action condition evaluator
*/
void registerActionConditionEvaluator(ActionConditionEvaluator actionConditionEvaluator);