public class ScriptingOperationTypeImpl extends OperationTypeImpl
Modifier and Type | Field and Description |
---|---|
protected ScriptingOperationDescriptor |
desc |
protected InvokableMethod[] |
methods |
protected AutomationService |
service |
aliases, contributingComponent, id, injectableFields, inputType, params, type, widgetDefinitionList
Constructor and Description |
---|
ScriptingOperationTypeImpl(AutomationService service,
ScriptingOperationDescriptor desc) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAliases()
The operation ID Aliases array.
|
String |
getContributingComponent()
Gets the name of the component that contributed the operation
|
OperationDocumentation |
getDocumentation() |
String |
getId() |
List<InvokableMethod> |
getMethods() |
InvokableMethod[] |
getMethodsMatchingInput(Class<?> in) |
protected String |
getParamDocumentationType(Class<?> type,
boolean isIterable) |
AutomationService |
getService()
Gets the service that registered that type.
|
Class<?> |
getType() |
Object |
newInstance(OperationContext ctx,
Map<String,Object> args) |
protected void |
resolveArguments(OperationContext ctx,
Map<String,Object> args)
As
OperationTypeImpl.inject(org.nuxeo.ecm.automation.OperationContext, java.util.Map, java.lang.Object)
is not called in this OperationTypeImpl, we have to inject into arguments all context variables to play the
fallback on chains variables and evaluate script expression like MVEL. |
protected InvokableMethod |
runMethod() |
getInputType, getParamDocumentationType, initFields, initMethods, inject, resolveObject, toString
protected final AutomationService service
protected final ScriptingOperationDescriptor desc
protected final InvokableMethod[] methods
public ScriptingOperationTypeImpl(AutomationService service, ScriptingOperationDescriptor desc)
public String getContributingComponent()
OperationType
getContributingComponent
in interface OperationType
getContributingComponent
in class OperationTypeImpl
public OperationDocumentation getDocumentation()
getDocumentation
in interface OperationType
getDocumentation
in class OperationTypeImpl
public String getId()
getId
in interface OperationType
getId
in class OperationTypeImpl
public String[] getAliases()
OperationType
getAliases
in interface OperationType
getAliases
in class OperationTypeImpl
public List<InvokableMethod> getMethods()
getMethods
in interface OperationType
getMethods
in class OperationTypeImpl
public InvokableMethod[] getMethodsMatchingInput(Class<?> in)
getMethodsMatchingInput
in interface OperationType
getMethodsMatchingInput
in class OperationTypeImpl
public AutomationService getService()
OperationType
getService
in interface OperationType
getService
in class OperationTypeImpl
public Class<?> getType()
getType
in interface OperationType
getType
in class OperationTypeImpl
public Object newInstance(OperationContext ctx, Map<String,Object> args) throws OperationException
newInstance
in interface OperationType
newInstance
in class OperationTypeImpl
OperationException
protected void resolveArguments(OperationContext ctx, Map<String,Object> args)
OperationTypeImpl.inject(org.nuxeo.ecm.automation.OperationContext, java.util.Map, java.lang.Object)
is not called in this OperationTypeImpl, we have to inject into arguments all context variables to play the
fallback on chains variables and evaluate script expression like MVEL.ctx
- Automation Contextargs
- Operation Parametersprotected String getParamDocumentationType(Class<?> type, boolean isIterable)
getParamDocumentationType
in class OperationTypeImpl
protected InvokableMethod runMethod()
Copyright © 2016 Nuxeo SA. All rights reserved.