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 classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected ComponentInstanceprotected Stringprotected booleanprotected Stringprotected booleanprotected OperationChainContribution.Operation[]protected OperationDocumentation.Param[]protected booleanFields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationChainContributioncontribOf(OperationChain chain, boolean replace) String[]getId()The descriptor id, descriptors with same id are merged.getLabel()getOps()getSince()booleanmerge(Descriptor o) Returns a descriptor representingothermerged intothisstatic OperationChainContribution.Operation[]operationsOf(List<OperationParameters> operations) static OperationDocumentation.Param[]booleanreplace()protected OperationChaintoType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DescriptorThe 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:
getIdin interfaceDescriptor
-
replace
public boolean replace()- Specified by:
replacein interfaceOperationDescriptor- Returns:
- whether this operation replaces an existing one
- Since:
- 2025.0
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin 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:
toTypein interfaceOperationDescriptor- Returns:
- the
OperationTypefor this descriptor
-
toOperationChain
-
merge
Description copied from interface:DescriptorReturns a descriptor representingothermerged intothisDefault implementation returns
other.- Specified by:
mergein interfaceDescriptor- Returns:
- the merged descriptor
-