Package org.nuxeo.ecm.core.schema
Interface PropertyCharacteristicHandler
- All Known Subinterfaces:
SchemaManager
- All Known Implementing Classes:
SchemaManagerImpl
public interface PropertyCharacteristicHandler
Handler used to provide property's characteristics.
- Since:
- 11.1
-
Method Summary
Modifier and TypeMethodDescriptiongetDeprecatedProperties
(String schema) The returned paths are not Nuxeo xpath as they don't have the schema prefix.getFallback
(String schema, String path) Returns the fallback associated to this property if exist.getIndexedProperties
(String schema) Returns the indexed property paths.getRemovedProperties
(String schema) The returned paths are not Nuxeo xpath as they don't have the schema prefix.The returned paths are not Nuxeo xpath as they don't have the schema prefix.getRetainableProperties
(String schema) The returned paths are not Nuxeo xpath as they don't have the schema prefix.boolean
isDeprecated
(String schema, String path) Checks if the property represented by the givenschema
andpath
is deprecated.boolean
Checks if the property represented by the givenschema
andpath
is removed.boolean
Checks if the property represented by the givenschema
andpath
is secured.
-
Method Details
-
isSecured
Checks if the property represented by the givenschema
andpath
is secured.- Parameters:
schema
- the schema namepath
- the property path to test- Returns:
- whether or not the given property is secured (ie: only administrators can edit it)
-
isDeprecated
Checks if the property represented by the givenschema
andpath
is deprecated.- Parameters:
schema
- the schema name (not the prefix)path
- the property path to test- Returns:
- whether or not this property is marked as deprecated
-
isRemoved
Checks if the property represented by the givenschema
andpath
is removed.- Parameters:
schema
- the schema name (not the prefix)path
- the property path to test- Returns:
- whether or not this property is marked as removed
-
getDeprecatedProperties
The returned paths are not Nuxeo xpath as they don't have the schema prefix.- Parameters:
schema
- the schema name (not the prefix)- Returns:
- a
Set
holding the deprecated property path
-
getRemovedProperties
The returned paths are not Nuxeo xpath as they don't have the schema prefix.- Parameters:
schema
- the schema name (not the prefix)- Returns:
- a
Set
holding the removed property path
-
getRetainableProperties
The returned paths are not Nuxeo xpath as they don't have the schema prefix.- Returns:
- a
Set
holding the retainable property path - Since:
- 2023
-
getRetainableProperties
The returned paths are not Nuxeo xpath as they don't have the schema prefix.- Parameters:
schema
- the schema name (not the prefix)- Returns:
- a
Set
holding the retainable property path - Since:
- 2023
-
getFallback
Returns the fallback associated to this property if exist. Fallbacks exist when property is deprecated or removed.- Parameters:
schema
- the schema name (not the prefix)path
- the property path to test- Returns:
- fallback associated to this property if exist
-
getIndexedProperties
Returns the indexed property paths.The returned paths are not Nuxeo xpath as they don't have the schema prefix.
- Parameters:
schema
- the schema name (not the prefix)- Returns:
- a
List
holding the indexed property paths. - Since:
- 2021.8
-