Package org.nuxeo.ecm.automation
Interface OperationType
- All Known Implementing Classes:
ChainTypeImpl
,OperationTypeImpl
,ScriptingOperationTypeImpl
public interface OperationType
Describe an operation class. Each registered operation will be stored in the registry as an instance of this class.
- Author:
- Bogdan Stefanescu
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
String[]
The operation ID Aliases array.Gets the name of the component that contributed the operation.getId()
default String
The input type of a chain/operation.getMethodsMatchingInput
(Class<?> in) Gets the service that registered that type.Class<?>
getType()
int
hashCode()
boolean
void
merge
(OperationType other) newInstance
(OperationContext ctx, Map<String, Object> args) static OperationType
typeof
(OperationChain chain, boolean replace)
-
Method Details
-
getId
String getId() -
getAliases
String[] getAliases()The operation ID Aliases array.- Since:
- 7.1
-
getType
Class<?> getType() -
getInputType
The input type of a chain/operation. If set, the following input types {"document", "documents", "blob", "blobs"} for all 'run method(s)' will handled. Other values will be adapted as java.lang.Object. If not set, Automation will set the input type(s) as the 'run methods(s)' parameter types (by introspection).- Since:
- 7.4
-
newInstance
- Throws:
OperationException
-
getService
AutomationService getService()Gets the service that registered that type. -
getDocumentation
- Throws:
OperationException
-
getContributingComponent
String getContributingComponent()Gets the name of the component that contributed the operation. -
getMethodsMatchingInput
-
getMethods
List<InvokableMethod> getMethods()- Since:
- 5.7.2
-
hashCode
int hashCode() -
equals
-
typeof
-
isEnabled
boolean isEnabled()- Since:
- 2021.17
-
clone
OperationType clone()- Since:
- 2021.17
-
merge
- Since:
- 2021.17
-