public class SystemSearchUIColumn extends AbstractSearchUIColumn implements SystemResultField, Contextualizable, LogEnabled, Configurable, Serviceable, Disposable
Modifier and Type | Field and Description |
---|---|
protected ContentHelper |
_contentHelper
The content helper.
|
protected ContentTypesHelper |
_contentTypeHelper
The content type helper.
|
private Set<String> |
_contentTypes
The content types
|
private Context |
_context |
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point.
|
protected ThreadSafeComponentManager<Enumerator> |
_enumeratorManager
ComponentManager for
Enumerator s. |
protected String |
_joinPaths
The join paths.
|
private Logger |
_logger |
private ServiceManager |
_manager |
protected AmetysObjectResolver |
_resolver
The Ametys object resolver.
|
protected SystemPropertyExtensionPoint |
_systemPropEP
The system property extension point.
|
protected SystemProperty |
_systemProperty
The system property.
|
Constructor and Description |
---|
SystemSearchUIColumn() |
Modifier and Type | Method and Description |
---|---|
private Object |
_getValue(Content content,
boolean full) |
private String |
_initializeEnumerator(SystemProperty.EnumeratorDefinition enumDef) |
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
void |
dispose() |
String |
getFieldPath()
Get the field path (separated by '/').
|
Object |
getFullValue(Content content,
Locale defaultLocale)
Get the value represented by this field in the given result content.
|
SearchField |
getSearchField()
Get the
SearchField representing this result field. |
String |
getSystemPropertyId()
Get the system property name
|
Object |
getValue(Content content,
Locale defaultLocale)
Get the value represented by this field in the given result content.
|
void |
service(ServiceManager manager) |
void |
setLogger(Logger logger)
Called at creation time to provide a
Logger . |
private boolean |
testMultiple(String contentTypeId) |
_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 ThreadSafeComponentManager<Enumerator> _enumeratorManager
Enumerator
s.protected SystemPropertyExtensionPoint _systemPropEP
protected ContentTypeExtensionPoint _cTypeEP
protected ContentHelper _contentHelper
protected ContentTypesHelper _contentTypeHelper
protected AmetysObjectResolver _resolver
protected SystemProperty _systemProperty
protected String _joinPaths
private Set<String> _contentTypes
private ServiceManager _manager
public SystemSearchUIColumn()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void setLogger(Logger logger)
LogEnabled
Logger
.setLogger
in interface LogEnabled
logger
- a Logger
for messages.public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void dispose()
dispose
in interface Disposable
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
private boolean testMultiple(String contentTypeId)
public String getFieldPath()
SystemResultField
getFieldPath
in interface SystemResultField
public String getSystemPropertyId()
getSystemPropertyId
in interface SystemResultField
public Object getValue(Content content, Locale defaultLocale)
ResultField
getValue
in interface ResultField
content
- the result content.defaultLocale
- the default locale for localized value if the content's language is nullpublic Object getFullValue(Content content, Locale defaultLocale)
ResultField
getFullValue
in interface ResultField
content
- the result content.defaultLocale
- the default locale for localized value if the content's language is nullpublic SearchField getSearchField()
ResultField
SearchField
representing this result field.getSearchField
in interface ResultField
getSearchField
in class AbstractSearchUIColumn
SearchField
representing this result field.private String _initializeEnumerator(SystemProperty.EnumeratorDefinition enumDef)