Class AttributeBasedDisplayCodeProvider

java.lang.Object
org.ametys.odf.content.code.AbstractStaticProgramItemDisplayCodeProvider
org.ametys.odf.content.code.AttributeBasedDisplayCodeProvider
All Implemented Interfaces:
DisplayCodeProvider, PluginAware, Supporter<Content>, Configurable, Serviceable
Direct Known Subclasses:
PegaseDisplayCodeProvider

Implementation of a DisplayCodeProvider based on Content attributes.
Display code will be composed by attributes' values separated by '-' character.
Expected configuration is:
   <type id="CONTENT_TYPE_ID_1">
       <item ref="path/of/attribute1"/>
       <item ref="path/of/attribute2"/>
   </type>
   <type id="CONTENT_TYPE_ID_2">
       <item ref="path/of/attribute1"/>
       <item ref="path/of/attribute2"/>
   </type>