public abstract class AbstractUserSystemProperty extends AbstractSystemProperty
SystemProperty.SystemProperty.EnumeratorDefinition_description, _i18nUtils, _id, _label, _pluginName, _resolver, _userHelper| Constructor and Description |
|---|
AbstractUserSystemProperty() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
_getSolrFieldName()
Get the Solr field name
|
protected abstract UserIdentity |
_getUserIdentityValue(Content content)
Get the value as
UserIdentity |
Object |
getJsonValue(Content content,
boolean full)
Get the jsonified value
|
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.
|
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.
|
_indexBooleanValue, _indexBooleanValues, _indexDateValue, _indexDateValues, _indexDoubleValue, _indexDoubleValues, _indexGeocodeValue, _indexLongValue, _indexLongValues, _indexStringValue, _indexStringValues, _indexUserValue, _indexUserValues, _parseI18nizableText, configure, getDescription, getId, getLabel, getSchemaDefinitions, index, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, saxValue, service, setPluginInfogetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnWidth, getContentTypeId, getConverter, getEnumeratorDefinition, getSearchField, getWidget, getWidgetParameters, isDisplayable, isFacetable, isMultiple, isSearchable, isSortablepublic AbstractUserSystemProperty()
public MetadataType getType()
SystemPropertypublic String getRenderer()
SystemPropertypublic Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SystemPropertyQuery 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.protected abstract String _getSolrFieldName()
protected abstract UserIdentity _getUserIdentityValue(Content content)
UserIdentitycontent - the contentpublic Object getValue(Content content)
SystemPropertyMetadataType.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 contentpublic Object getJsonValue(Content content, boolean full)
SystemPropertycontent - the result contentfull - true to get full value.public Object getSortValue(Content content)
SystemPropertygetSortValue in interface SystemPropertygetSortValue in class AbstractSystemPropertycontent - the result content.