Package org.nuxeo.ecm.core.versioning
Class VersioningRestrictionDescriptor
java.lang.Object
org.nuxeo.ecm.core.versioning.VersioningRestrictionDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor to contribute new restrictions in versioning system.
These contributions will restrict available increment options on UI and raise an exception when saving a
DocumentModel
with an excluded VersioningOption
.
- Since:
- 9.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map
<String, VersioningRestrictionOptionsDescriptor> protected String
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
-
options
-
-
Constructor Details
-
VersioningRestrictionDescriptor
public VersioningRestrictionDescriptor()
-
-
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
-
getType
-
getRestrictionOption
-