Class PropertyDeprecationHandler

java.lang.Object
org.nuxeo.ecm.core.schema.PropertyDeprecationHandler

@Deprecated(since="11.1") public class PropertyDeprecationHandler extends Object
Deprecated.
since 11.1, use PropertyCharacteristicHandler service instead
Handler used to test if a specific property is marked as deprecated/removed and to get its fallback.
Since:
9.2
  • Field Details

    • properties

      protected final Map<String,Map<String,String>> properties
      Deprecated.
      Deprecated/removed properties map, its mapping is:

      schemaName -> propertyXPath -> fallbackXPath

  • Constructor Details

  • Method Details

    • hasMarkedProperties

      public boolean hasMarkedProperties(String schema)
      Deprecated.
      Returns:
      true if the input property has deprecated/removed property
    • getProperties

      public Set<String> getProperties(String schema)
      Deprecated.
      Returned properties are a path to marked property.
      Returns:
      the deprecated/removed properties for input schema or an empty set if schema doesn't have marked properties
    • isMarked

      public boolean isMarked(String schema, String name)
      Deprecated.
      Returns:
      true if the input property is marked as deprecated/removed
    • getFallback

      public String getFallback(String schema, String name)
      Deprecated.
      Returns:
      the fallback of input property, if it is marked as deprecated/removed and has a fallback