Package org.nuxeo.ecm.core.schema
Class PropertyDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.core.schema.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEPRECATEDprotected Stringdeprecationprotected Stringfallbackprotected StringindexOrderprotected Stringnamebooleanremovestatic StringREMOVEDBooleanretainableprotected StringschemaBooleansecured-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description PropertyDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesRemove()During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.StringgetDeprecation()StringgetFallback()StringgetId()The descriptor id, descriptors with same id are merged.StringgetIndexOrder()StringgetName()StringgetSchema()booleanisDeprecated()booleanisRemoved()booleanisRetainable()booleanisSecured()Descriptormerge(Descriptor o)Returns a descriptor representingothermerged intothisStringtoString()
-
-
-
Field Detail
-
DEPRECATED
public static final String DEPRECATED
- See Also:
- Constant Field Values
-
REMOVED
public static final String REMOVED
- See Also:
- Constant Field Values
-
schema
protected String schema
-
name
protected String name
-
secured
public Boolean secured
-
deprecation
protected String deprecation
-
fallback
protected String fallback
-
indexOrder
protected String indexOrder
-
retainable
public Boolean retainable
-
remove
public boolean remove
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:DescriptorThe 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:
getIdin interfaceDescriptor
-
getSchema
public String getSchema()
-
getName
public String getName()
-
isSecured
public boolean isSecured()
-
getDeprecation
public String getDeprecation()
- Returns:
deprecated,removedor null
-
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:DescriptorReturns a descriptor representingothermerged intothisDefault implementation returns
other.- Specified by:
mergein interfaceDescriptor- Returns:
- the merged descriptor
-
doesRemove
public boolean doesRemove()
Description copied from interface:DescriptorDuring 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:
doesRemovein interfaceDescriptor
-
-