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 |
|---|---|
default Integer |
getColumnWidth()
Get the column width.
|
default String |
getContentTypeId()
In case of a Content reference field, the content type ID.
|
default String |
getConverter()
Get the property column converter.
|
I18nizableText |
getDescription()
Get the system property description.
|
default SystemProperty.EnumeratorDefinition |
getEnumeratorDefinition(Configuration configuration)
Get the definition of an enumerator.
|
String |
getId()
Get the system property ID.
|
default Object |
getJsonValue(Content content,
boolean full)
Get the jsonified value
|
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. |
default 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. |
default 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 typed raw value for this field in the given result content.
|
default String |
getWidget()
Get the default widget to use when rendering this property as a criterion.
|
default Map<String,I18nizableText> |
getWidgetParameters(Configuration configuration)
Get the widget parameters.
|
void |
index(Content content,
SolrInputDocument document)
Index the system property in a solr document.
|
default boolean |
isDisplayable()
Get if the property can be displayed (i.e.
|
default boolean |
isFacetable()
Gets if the property can be facetable
|
boolean |
isMultiple()
Get the multiple status of the property.
|
default boolean |
isSearchable()
Get if the property can be searched on (i.e.
|
default boolean |
isSortable()
Get if the property can be sorted on.
|
void |
saxValue(ContentHandler handler,
Content content)
SAX the value
|
I18nizableText getLabel()
I18nizableText getDescription()
MetadataType getType()
boolean isMultiple()
true if the property can have multiple values, false otherwise.default SystemProperty.EnumeratorDefinition getEnumeratorDefinition(Configuration configuration)
configuration - The enumerator configuration.default String getContentTypeId()
default boolean isSearchable()
true if the property can be searched on, false otherwise.default boolean isDisplayable()
true if the property can be displayed, false otherwise.default boolean isSortable()
true if the property can be sorted on, false otherwise.default boolean isFacetable()
true if the property can be facetable, 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.default String getWidget()
null if no specific widget is necessary.default Map<String,I18nizableText> getWidgetParameters(Configuration configuration)
configuration - The system property configurationdefault String getRenderer()
default String getConverter()
default 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)
MetadataType.STRING must return String or String[] if multipleMetadataType.DATE or MetadataType.DATETIME must return Date or Date[] if multipleMetadataType.LONG must return Long or Long[] if multipleMetadataType.DOUBLE must return Double or Double[] if multipleMetadataType.CONTENT must return String or String[] if multipleMetadataType.GEOCODE must return Map<String, Double>MetadataType.USER must return UserIdentity or UserIdentity[] if multipleMetadataType.MULTILINGUAL_STRING must return MultilingualStringcontent - The result contentdefault Object getJsonValue(Content content, boolean full)
content - the result contentfull - true to get full value.void saxValue(ContentHandler handler, Content content) throws SAXException
handler - The content handler to sax intocontent - The contentSAXException - If an error occurred while saxingdefault Object getSortValue(Content content)
content - the result content.Collection<SchemaDefinition> getSchemaDefinitions()