Package org.nuxeo.ecm.automation.core
Class OperationContribution
java.lang.Object
org.nuxeo.ecm.automation.core.OperationContribution
- All Implemented Interfaces:
OperationDescriptor
,Descriptor
- Author:
- Bogdan Stefanescu, Guillaume Renard
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ComponentInstance
boolean
Put it to true to override an existing contribution having the same ID.The operation class that must be annotated usingOperation
annotation.Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
Constructors -
Method Summary
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, merge
-
Field Details
-
type
The operation class that must be annotated usingOperation
annotation. -
replace
public boolean replacePut it to true to override an existing contribution having the same ID. By default, overriding is not permitted and an exception is thrown when this flag is on false. -
contributingComponent
-
-
Constructor Details
-
OperationContribution
public OperationContribution()
-
-
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
- Since:
- 2025.0
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceOperationDescriptor
- Returns:
- whether this operation is enabled or not
- Since:
- 2025.0
-
replace
public boolean replace()- Specified by:
replace
in interfaceOperationDescriptor
- Returns:
- whether this operation replaces an existing one
- Since:
- 2025.0
-
toType
- Specified by:
toType
in interfaceOperationDescriptor
- Returns:
- the
OperationType
for this descriptor - Since:
- 2025.0
-
getOperationAnnotation
-
getTypeClass
-