Class PropertyDescriptor

  • All Implemented Interfaces:
    Descriptor

    public class PropertyDescriptor
    extends Object
    implements Descriptor
    Descriptor representing a Nuxeo Property.

    It maps the xml below:

     <property schema="SCHEMA" name="NAME" secured="true" deprecation="deprecated|removed" fallback="NAME" />
     
    Since:
    11.1
    • Constructor Detail

      • PropertyDescriptor

        public PropertyDescriptor()
    • Method Detail

      • 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
      • getSchema

        public String getSchema()
      • getName

        public String getName()
      • isSecured

        public boolean isSecured()
      • isDeprecated

        public boolean isDeprecated()
      • isRemoved

        public boolean isRemoved()
      • isRetainable

        public boolean isRetainable()
        Since:
        2023
      • getIndexOrder

        public String getIndexOrder()
        Since:
        11.5
      • getFallback

        public String getFallback()
      • merge

        public Descriptor merge​(Descriptor o)
        Description copied from interface: Descriptor
        Returns a descriptor representing other merged into this

        Default implementation returns other.

        Specified by:
        merge in interface Descriptor
        Returns:
        the merged descriptor
      • doesRemove

        public boolean doesRemove()
        Description copied from interface: Descriptor
        During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.

        If the last descriptor of same id doesRemove() return true, the descriptor for this id will be null.

        Specified by:
        doesRemove in interface Descriptor