Package org.alfresco.repo.action

Examples of org.alfresco.repo.action.ActionDefinitionImpl


      final List<ParameterDefinition> parameterDefinitions) {
    String name = actionMethod.value();
    if (StringUtils.isEmpty(name)) {
      name = String.format("%s.%s", ClassUtils.getShortName(method.getDeclaringClass()), method.getName());
    }
    final ActionDefinitionImpl actionDefinition = new ActionDefinitionImpl(name);
    actionDefinition.setParameterDefinitions(parameterDefinitions);
    actionDefinition.setAdhocPropertiesAllowed(actionMethod.adhocPropertiesAllowed());
    ApiCompatibilityUtil.setApplicableTypes(actionDefinition,
        Arrays.asList(parseQNames(actionMethod.applicableTypes(), actionMethod)));
    actionDefinition.setTitleKey(nullForEmptyString(actionMethod.titleKey()));
    actionDefinition.setDescriptionKey(nullForEmptyString(actionMethod.descriptionKey()));
    actionDefinition.setRuleActionExecutor(nullForEmptyString(actionMethod.ruleActionExecutor()));
    return actionDefinition;
  }
View Full Code Here

TOP

Related Classes of org.alfresco.repo.action.ActionDefinitionImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.