Package org.nuxeo.ecm.automation.core
Class OperationChainContribution
java.lang.Object
org.nuxeo.ecm.automation.core.OperationChainContribution
- All Implemented Interfaces:
OperationDescriptor
,Descriptor
- Author:
- Bogdan Stefanescu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]
protected ComponentInstance
protected String
protected boolean
protected String
protected boolean
protected OperationChainContribution.Operation[]
protected OperationDocumentation.Param[]
protected boolean
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationChainContribution
contribOf
(OperationChain chain, boolean replace) String[]
getId()
The descriptor id, descriptors with same id are merged.getLabel()
getOps()
getSince()
boolean
merge
(Descriptor o) Returns a descriptor representingother
merged intothis
static OperationChainContribution.Operation[]
operationsOf
(List<OperationParameters> operations) static OperationDocumentation.Param[]
boolean
replace()
protected OperationChain
toType()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
id
-
replace
protected boolean replace -
enabled
protected boolean enabled- Since:
- 2021.17
-
description
-
ops
-
isPublic
protected boolean isPublic -
params
-
aliases
- Since:
- 7.1
-
contributingComponent
-
-
Constructor Details
-
OperationChainContribution
public OperationChainContribution()
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
replace
public boolean replace()- Specified by:
replace
in interfaceOperationDescriptor
- Returns:
- whether this operation replaces an existing one
- Since:
- 2025.0
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceOperationDescriptor
- Returns:
- whether this operation is enabled or not
- Since:
- 2025.0
-
getParams
-
getOps
-
getLabel
-
getRequires
-
getCategory
-
getSince
-
getDescription
-
getAliases
-
contribOf
-
paramsOf
-
operationsOf
public static OperationChainContribution.Operation[] operationsOf(List<OperationParameters> operations) -
toType
- Specified by:
toType
in interfaceOperationDescriptor
- Returns:
- the
OperationType
for this descriptor
-
toOperationChain
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-