public class TagsSystemProperty extends AbstractSystemProperty
SystemProperty
which represents the tags of a Content.SystemProperty.EnumeratorDefinition
Modifier and Type | Field and Description |
---|---|
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected TagProviderExtensionPoint |
_tagProviderEP
The tag provider extension point.
|
_description, _i18nUtils, _id, _label, _pluginName, _resolver, _userHelper
Constructor and Description |
---|
TagsSystemProperty() |
Modifier and Type | Method and Description |
---|---|
String |
getConverter()
Get the property column converter.
|
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.
|
Collection<SchemaDefinition> |
getSchemaDefinitions()
Get the schema definitions brought by this property.
|
SearchField |
getSearchField()
Get the
SearchField representing this system property. |
protected Map<String,Object> |
getTagContextualParameters(Content content)
Get the tags contextual parameters.
|
MetadataType |
getType()
Get the property type.
|
Object |
getValue(Content content)
Get the typed raw value for 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(Configuration configuration)
Get the widget parameters.
|
void |
index(Content content,
SolrInputDocument document)
Index the system property in a solr document.
|
protected boolean |
isAutopostingEnabled(Content content)
Test if autoposting is enabled.
|
boolean |
isMultiple()
Get the multiple status of the property.
|
boolean |
isSortable()
Get if the property can be sorted on.
|
void |
saxValue(ContentHandler handler,
Content content)
SAX the value
|
void |
service(ServiceManager manager) |
_indexBooleanValue, _indexBooleanValues, _indexDateValue, _indexDateValues, _indexDoubleValue, _indexDoubleValues, _indexGeocodeValue, _indexLongValue, _indexLongValues, _indexStringValue, _indexStringValues, _indexUserValue, _indexUserValues, _parseI18nizableText, configure, getDescription, getId, getLabel, getSortValue, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, setPluginInfo
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnWidth, getContentTypeId, getEnumeratorDefinition, isDisplayable, isFacetable, isSearchable
protected TagProviderExtensionPoint _tagProviderEP
protected JSONUtils _jsonUtils
public TagsSystemProperty()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSystemProperty
ServiceException
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 SearchField getSearchField()
SystemProperty
SearchField
representing this system property.public String getWidget()
SystemProperty
null
if no specific widget is necessary.public Map<String,I18nizableText> getWidgetParameters(Configuration configuration)
SystemProperty
configuration
- The system property configurationpublic String getRenderer()
SystemProperty
public String getConverter()
SystemProperty
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
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 MultilingualString
content
- The result contentpublic Object getJsonValue(Content content, boolean full)
SystemProperty
content
- the result contentfull
- true
to get full value.public void saxValue(ContentHandler handler, Content content) throws SAXException
SystemProperty
saxValue
in interface SystemProperty
saxValue
in class AbstractSystemProperty
handler
- The content handler to sax intocontent
- The contentSAXException
- If an error occurred while saxingprotected Map<String,Object> getTagContextualParameters(Content content)
content
- The content.protected boolean isAutopostingEnabled(Content content)
content
- The content.public Collection<SchemaDefinition> getSchemaDefinitions()
SystemProperty
getSchemaDefinitions
in interface SystemProperty
getSchemaDefinitions
in class AbstractSystemProperty