public class CommentsSystemProperty extends AbstractSystemProperty
SystemProperty
which represents the comments of a content.SystemProperty.EnumeratorDefinition
_description, _i18nUtils, _id, _label, _pluginName
Constructor and Description |
---|
CommentsSystemProperty() |
Modifier and Type | Method and Description |
---|---|
Integer |
getColumnWidth()
Get the column width.
|
SystemProperty.EnumeratorDefinition |
getEnumeratorDefinition(Collection<String> contentTypes,
Configuration configuration)
Get the definition of an enumerator.
|
Object |
getFullValue(Content content)
Get the value represented by this field in the given result content.
|
Query |
getQuery(Object value,
Query.Operator operator,
String language,
Map<String,Object> contextualParameters)
Get the
Query associated to the given value. |
String |
getRenderer()
Get the renderer.
|
Collection<SchemaDefinition> |
getSchemaDefinitions()
Get the schema definitions brought by this property.
|
SearchField |
getSearchField()
Get the
SearchField representing this system property. |
MetadataType |
getType()
Get the property type.
|
Object |
getValue(Content content)
Get the value represented by this field in the given result content.
|
String |
getWidget()
Get the default widget to use when rendering this property as a criterion.
|
void |
index(Content content,
SolrInputDocument document)
Index the system property in a solr document.
|
boolean |
isMultiple()
Get the multiple status of the property.
|
boolean |
isSortable()
Get if the property can be sorted on.
|
_parseI18nizableText, configure, getContentTypeId, getConverter, getDescription, getId, getLabel, getSortValue, getWidgetParameters, isDisplayable, isSearchable, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, service, setPluginInfo
getLogger, setLogger
public CommentsSystemProperty()
public MetadataType getType()
SystemProperty
public boolean isMultiple()
SystemProperty
true
if the property can have multiple values, false
otherwise.public boolean isSortable()
SystemProperty
true
if the property can be sorted on, false
otherwise.public Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SystemProperty
Query
associated to the given value.value
- the user-submitted value for this property.operator
- In advanced search mode, the operator chosen by the user. null
to use the criterion-defined operator (simple search mode).language
- The current search language.contextualParameters
- the search contextual parameters.Query
associated to the given value.public String getWidget()
SystemProperty
getWidget
in interface SystemProperty
getWidget
in class AbstractSystemProperty
null
if no specific widget is necessary.public String getRenderer()
SystemProperty
getRenderer
in interface SystemProperty
getRenderer
in class AbstractSystemProperty
public Integer getColumnWidth()
SystemProperty
getColumnWidth
in interface SystemProperty
getColumnWidth
in class AbstractSystemProperty
public SearchField getSearchField()
SystemProperty
SearchField
representing this system property.public Collection<SchemaDefinition> getSchemaDefinitions()
SystemProperty
getSchemaDefinitions
in interface SystemProperty
getSchemaDefinitions
in class AbstractSystemProperty
public void index(Content content, SolrInputDocument document)
SystemProperty
index
in interface SystemProperty
index
in class AbstractSystemProperty
content
- The content to index.document
- The solr document to index into.public Object getValue(Content content)
SystemProperty
content
- the result content.public Object getFullValue(Content content)
SystemProperty
getFullValue
in interface SystemProperty
getFullValue
in class AbstractSystemProperty
content
- the result content.public SystemProperty.EnumeratorDefinition getEnumeratorDefinition(Collection<String> contentTypes, Configuration configuration)
SystemProperty
getEnumeratorDefinition
in interface SystemProperty
getEnumeratorDefinition
in class AbstractSystemProperty
contentTypes
- The model's content types.configuration
- The enumerator configuration.