public interface SystemProperty
Content
(content types, language, current workflow step, ...)Modifier and Type | Interface and Description |
---|---|
static class |
SystemProperty.EnumeratorDefinition
Representation of an Enumerator, used to generate an Enumerator on the fly.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getColumnWidth()
Get the column width.
|
String |
getContentTypeId()
In case of a Content reference field, the content type ID.
|
String |
getConverter()
Get the property column converter.
|
I18nizableText |
getDescription()
Get the system property description.
|
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.
|
String |
getId()
Get the system property ID.
|
I18nizableText |
getLabel()
Get the system property label.
|
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. |
Object |
getSortValue(Content content)
Get the sort value represented by this field in the given result content.
|
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.
|
Map<String,I18nizableText> |
getWidgetParameters()
Get the widget parameters.
|
void |
index(Content content,
SolrInputDocument document)
Index the system property in a solr document.
|
boolean |
isDisplayable()
Get if the property can be displayed (i.e.
|
boolean |
isMultiple()
Get the multiple status of the property.
|
boolean |
isSearchable()
Get if the property can be searched on (i.e.
|
boolean |
isSortable()
Get if the property can be sorted on.
|
I18nizableText getLabel()
I18nizableText getDescription()
MetadataType getType()
boolean isMultiple()
true
if the property can have multiple values, false
otherwise.SystemProperty.EnumeratorDefinition getEnumeratorDefinition(Collection<String> contentTypes, Configuration configuration)
contentTypes
- The model's content types.configuration
- The enumerator configuration.String getContentTypeId()
boolean isSearchable()
true
if the property can be searched on, false
otherwise.boolean isDisplayable()
true
if the property can be displayed, false
otherwise.boolean isSortable()
true
if the property can be sorted on, false
otherwise.Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
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.String getWidget()
null
if no specific widget is necessary.Map<String,I18nizableText> getWidgetParameters()
String getRenderer()
String getConverter()
Integer getColumnWidth()
void index(Content content, SolrInputDocument document)
content
- The content to index.document
- The solr document to index into.SearchField getSearchField()
SearchField
representing this system property.Object getValue(Content content)
content
- the result content.Object getFullValue(Content content)
content
- the result content.Object getSortValue(Content content)
content
- the result content.Collection<SchemaDefinition> getSchemaDefinitions()