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
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helper.protected ContentTypesHelperThe content type helper.protected ContentTypeExtensionPointThe content type extension point.protected ThreadSafeComponentManager<Enumerator>ComponentManager forEnumerators.protected StringThe join paths.protected AmetysObjectResolverThe Ametys object resolver.protected SystemPropertyExtensionPointThe system property extension point.protected SystemPropertyThe system property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) voidcontextualize(Context context) voiddispose()Get the field path (separated by '/').getFullValue(Content content, Locale defaultLocale) Get the value represented by this field in the given result content.Get theSearchFieldrepresenting 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.voidservice(ServiceManager manager) voidCalled 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, setWidthMethods 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, setWidgetParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.search.model.Field
getContentTypeId, getEnumerator, getType, isMultipleMethods inherited from interface org.ametys.cms.search.model.ResultField
getIdMethods inherited from interface org.ametys.cms.search.ui.model.SearchUIColumn
getDescription, getLabel, getValidator, getWidget, getWidgetParameters
-
Field Details
-
_enumeratorManager
ComponentManager forEnumerators. -
_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:
contextualizein interfaceContextualizable- Throws:
ContextException
-
setLogger
Description copied from interface:LogEnabledCalled at creation time to provide aLogger.- Specified by:
setLoggerin interfaceLogEnabled- Parameters:
logger- aLoggerfor messages.
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
dispose
- Specified by:
disposein interfaceDisposable
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
getFieldPath
Description copied from interface:SystemResultFieldGet the field path (separated by '/').- Specified by:
getFieldPathin interfaceSystemResultField- Returns:
- the field path.
-
getSystemPropertyId
Get the system property name- Specified by:
getSystemPropertyIdin interfaceSystemResultField- Returns:
- The property name
-
getValue
Description copied from interface:ResultFieldGet the value represented by this field in the given result content.- Specified by:
getValuein 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:ResultFieldGet the value represented by this field in the given result content.- Specified by:
getFullValuein 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:ResultFieldGet theSearchFieldrepresenting this result field.- Specified by:
getSearchFieldin interfaceResultField- Overrides:
getSearchFieldin classAbstractSearchUIColumn- Returns:
- The
SearchFieldrepresenting this result field.
-
getSubColumns
Description copied from interface:SearchUIColumnGet the subcolumns informations (for repeaters for example)- Specified by:
getSubColumnsin interfaceSearchUIColumn- Returns:
- the full columns informations or
nullif none is defined.
-