Class VersioningRestrictionDescriptor

java.lang.Object
org.nuxeo.ecm.core.versioning.VersioningRestrictionDescriptor
All Implemented Interfaces:
Descriptor

public class VersioningRestrictionDescriptor extends Object implements 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 Details

  • Constructor Details

    • VersioningRestrictionDescriptor

      public VersioningRestrictionDescriptor()
  • Method Details

    • getId

      public String 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 interface Descriptor
    • getType

      public String getType()
    • getRestrictionOption

      public VersioningRestrictionOptionsDescriptor getRestrictionOption(String key)