public class MetadataSearchUIColumn extends AbstractSearchUIColumn implements MetadataResultField, Serviceable, Configurable
Modifier and Type | Field and Description |
---|---|
protected String |
_contentTypeId
The ID of the content type which contains the metadata.
|
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point.
|
protected ContentTypesHelper |
_cTypeHelper
The content type helper.
|
protected String |
_fullMetadataPath
The full metadata path.
|
protected boolean |
_joinedMetadata
True if the metadata is joined, false otherwise.
|
protected ContentSearchHelper |
_searchHelper
The search helper.
|
Constructor and Description |
---|
MetadataSearchUIColumn() |
Modifier and Type | Method and Description |
---|---|
private List<MetadataDefinition> |
_configureMetadataDefinitions() |
private boolean |
_isSortableMetadata(MetadataDefinition metadataDefinition) |
void |
configure(Configuration configuration) |
protected void |
configureConverter(Configuration configuration,
MetadataType type)
Configure the column converter.
|
protected void |
configureRenderer(Configuration configuration,
MetadataType type)
Configure the column renderer.
|
String |
getFieldPath()
Get the path of metadata (separated by '/')
|
Object |
getFullValue(Content content)
Get the value represented by this field in the given result content.
|
SearchField |
getSearchField()
Get the
SearchField representing this result field. |
Object |
getValue(Content content)
Get the value represented by this field in the given result content.
|
void |
service(ServiceManager manager) |
void |
setFieldPath(String metadataPath)
Set the metadata path
|
_configureI18nizableText, getContentTypeId, getConverter, getDefaultSorter, getRenderer, getWidth, isEditable, isHidden, isMultiple, isSortable, setContentTypeId, setConverter, setDefaultSorter, setEditable, setHidden, setMultiple, setRenderer, setSortable, setWidth
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
getContentTypeId, getEnumerator, getType, isMultiple
getDescription, getLabel, getValidator, getWidget, getWidgetParameters
protected ContentTypeExtensionPoint _cTypeEP
protected ContentTypesHelper _cTypeHelper
protected ContentSearchHelper _searchHelper
protected String _fullMetadataPath
protected boolean _joinedMetadata
protected String _contentTypeId
public MetadataSearchUIColumn()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
private List<MetadataDefinition> _configureMetadataDefinitions() throws ConfigurationException
ConfigurationException
protected void configureRenderer(Configuration configuration, MetadataType type)
configuration
- The column configuration.type
- The metadata type.protected void configureConverter(Configuration configuration, MetadataType type)
configuration
- The column configuration.type
- The metadata type.private boolean _isSortableMetadata(MetadataDefinition metadataDefinition)
public void setFieldPath(String metadataPath)
metadataPath
- the path to metadatapublic String getFieldPath()
getFieldPath
in interface MetadataResultField
public Object getValue(Content content)
ResultField
getValue
in interface ResultField
content
- the result content.public Object getFullValue(Content content)
ResultField
getFullValue
in interface ResultField
content
- the result content.public SearchField getSearchField()
ResultField
SearchField
representing this result field.getSearchField
in interface ResultField
getSearchField
in class AbstractSearchUIColumn
SearchField
representing this result field.