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 ComponentInstancebooleanPut it to true to override an existing contribution having the same ID.The operation class that must be annotated usingOperationannotation.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, waitMethods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove, merge
-
Field Details
-
type
The operation class that must be annotated usingOperationannotation. -
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: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- Since:
- 2025.0
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceOperationDescriptor- Returns:
- whether this operation is enabled or not
- Since:
- 2025.0
-
replace
public boolean replace()- Specified by:
replacein interfaceOperationDescriptor- Returns:
- whether this operation replaces an existing one
- Since:
- 2025.0
-
toType
- Specified by:
toTypein interfaceOperationDescriptor- Returns:
- the
OperationTypefor this descriptor - Since:
- 2025.0
-
getOperationAnnotation
-
getTypeClass
-