Search in sources :

Example 1 with ActionConditionEvaluator

use of org.alfresco.repo.action.evaluator.ActionConditionEvaluator in project records-management by Alfresco.

the class ExtendedActionServiceImpl method getActionConditionDefinition.

/**
 * @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;
}
Also used : ActionConditionDefinition(org.alfresco.service.cmr.action.ActionConditionDefinition) ActionConditionEvaluator(org.alfresco.repo.action.evaluator.ActionConditionEvaluator)

Aggregations

ActionConditionEvaluator (org.alfresco.repo.action.evaluator.ActionConditionEvaluator)1 ActionConditionDefinition (org.alfresco.service.cmr.action.ActionConditionDefinition)1