Package org.nuxeo.ecm.core.versioning
Class VersioningRestrictionDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.core.versioning.VersioningRestrictionDescriptor
-
public class VersioningRestrictionDescriptor extends Object
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 excludedVersioningOption
.- Since:
- 9.1
-
-
Constructor Summary
Constructors Constructor Description VersioningRestrictionDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersioningRestrictionOptionsDescriptor
getRestrictionOption(String key)
String
getType()
void
merge(VersioningRestrictionDescriptor other)
-
-
-
Field Detail
-
type
protected String type
-
options
protected Map<String,VersioningRestrictionOptionsDescriptor> options
-
-
Method Detail
-
getType
public String getType()
-
getRestrictionOption
public VersioningRestrictionOptionsDescriptor getRestrictionOption(String key)
-
merge
public void merge(VersioningRestrictionDescriptor other)
-
-