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, setWidthgetDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdgetContentTypeId, getEnumerator, getType, isMultiplegetDescription, getLabel, getValidator, getWidget, getWidgetParametersprotected 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 ServiceableServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionprivate List<MetadataDefinition> _configureMetadataDefinitions() throws ConfigurationException
ConfigurationExceptionprotected 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 MetadataResultFieldpublic Object getValue(Content content)
ResultFieldgetValue in interface ResultFieldcontent - the result content.public Object getFullValue(Content content)
ResultFieldgetFullValue in interface ResultFieldcontent - the result content.public SearchField getSearchField()
ResultFieldSearchField representing this result field.getSearchField in interface ResultFieldgetSearchField in class AbstractSearchUIColumnSearchField representing this result field.