Class SystemSearchUIColumn
java.lang.Object
org.ametys.runtime.parameter.Parameter<MetadataType>
org.ametys.cms.search.ui.model.impl.AbstractSearchUIColumn
org.ametys.cms.search.ui.model.impl.SystemSearchUIColumn
- All Implemented Interfaces:
Field
,ResultField
,SystemResultField
,SearchUIColumn
,LogEnabled
,Disposable
,Configurable
,Contextualizable
,Serviceable
public class SystemSearchUIColumn
extends AbstractSearchUIColumn
implements SystemResultField, Contextualizable, LogEnabled, Configurable, Serviceable, Disposable
This class is a search column on a system property (author, lastModified, with-comments, ...)
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helper.protected ContentTypesHelper
The content type helper.protected ContentTypeExtensionPoint
The content type extension point.protected ThreadSafeComponentManager<Enumerator>
ComponentManager forEnumerator
s.protected String
The join paths.protected AmetysObjectResolver
The Ametys object resolver.protected SystemPropertyExtensionPoint
The system property extension point.protected SystemProperty
The system property. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) void
contextualize
(Context context) void
dispose()
Get the field path (separated by '/').getFullValue
(Content content, Locale defaultLocale) Get the value represented by this field in the given result content.Get theSearchField
representing this result field.Get the subcolumns informations (for repeaters for example)Get the system property nameGet the value represented by this field in the given result content.void
service
(ServiceManager manager) void
Called at creation time to provide aLogger
.Methods inherited from class org.ametys.cms.search.ui.model.impl.AbstractSearchUIColumn
_configureI18nizableText, getContentTypeId, getConverter, getDefaultSorter, getRenderer, getWidth, isEditable, isHidden, isMultiple, isSortable, setContentTypeId, setConverter, setDefaultSorter, setEditable, setHidden, setMultiple, setRenderer, setSortable, setWidth
Methods inherited from class org.ametys.runtime.parameter.Parameter
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.model.Field
getContentTypeId, getEnumerator, getType, isMultiple
Methods inherited from interface org.ametys.cms.search.model.ResultField
getId
Methods inherited from interface org.ametys.cms.search.ui.model.SearchUIColumn
getDescription, getLabel, getValidator, getWidget, getWidgetParameters
-
Field Details
-
_enumeratorManager
ComponentManager forEnumerator
s. -
_systemPropEP
The system property extension point. -
_cTypeEP
The content type extension point. -
_contentHelper
The content helper. -
_contentTypeHelper
The content type helper. -
_resolver
The Ametys object resolver. -
_systemProperty
The system property. -
_joinPaths
The join paths.
-
-
Constructor Details
-
SystemSearchUIColumn
public SystemSearchUIColumn()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
setLogger
Description copied from interface:LogEnabled
Called at creation time to provide aLogger
.- Specified by:
setLogger
in interfaceLogEnabled
- Parameters:
logger
- aLogger
for messages.
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getFieldPath
Description copied from interface:SystemResultField
Get the field path (separated by '/').- Specified by:
getFieldPath
in interfaceSystemResultField
- Returns:
- the field path.
-
getSystemPropertyId
Get the system property name- Specified by:
getSystemPropertyId
in interfaceSystemResultField
- Returns:
- The property name
-
getValue
Description copied from interface:ResultField
Get the value represented by this field in the given result content.- Specified by:
getValue
in interfaceResultField
- Parameters:
content
- the result content.defaultLocale
- the default locale for localized value if the content's language is null- Returns:
- the content field value (cast to the appropriate object).
-
getFullValue
Description copied from interface:ResultField
Get the value represented by this field in the given result content.- Specified by:
getFullValue
in interfaceResultField
- Parameters:
content
- the result content.defaultLocale
- the default locale for localized value if the content's language is null- Returns:
- the content field value (cast to the appropriate object).
-
getSearchField
Description copied from interface:ResultField
Get theSearchField
representing this result field.- Specified by:
getSearchField
in interfaceResultField
- Overrides:
getSearchField
in classAbstractSearchUIColumn
- Returns:
- The
SearchField
representing this result field.
-
getSubColumns
Description copied from interface:SearchUIColumn
Get the subcolumns informations (for repeaters for example)- Specified by:
getSubColumns
in interfaceSearchUIColumn
- Returns:
- the full columns informations or
null
if none is defined.
-