public class TagsSystemProperty extends AbstractSystemProperty
SystemProperty
which represents the tags of a Content.SystemProperty.EnumeratorDefinition
Modifier and Type | Field and Description |
---|---|
protected boolean |
_includeAncestors
True if ancestor tags are indexed (default false).
|
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected TagProviderExtensionPoint |
_tagProviderEP
The tag provider extension point.
|
_description, _i18nUtils, _id, _label, _pluginName
Constructor and Description |
---|
TagsSystemProperty() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
String |
getConverter()
Get the property column converter.
|
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.
|
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 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.
|
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 |
service(ServiceManager manager) |
_parseI18nizableText, getColumnWidth, getContentTypeId, getDescription, getEnumeratorDefinition, getId, getLabel, getSchemaDefinitions, getSortValue, isDisplayable, isSearchable, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, setPluginInfo
getLogger, setLogger
protected TagProviderExtensionPoint _tagProviderEP
protected boolean _includeAncestors
protected JSONUtils _jsonUtils
public TagsSystemProperty()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSystemProperty
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractSystemProperty
ConfigurationException
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
getWidget
in interface SystemProperty
getWidget
in class AbstractSystemProperty
null
if no specific widget is necessary.public Map<String,I18nizableText> getWidgetParameters()
SystemProperty
getWidgetParameters
in interface SystemProperty
getWidgetParameters
in class AbstractSystemProperty
public String getRenderer()
SystemProperty
getRenderer
in interface SystemProperty
getRenderer
in class AbstractSystemProperty
public String getConverter()
SystemProperty
getConverter
in interface SystemProperty
getConverter
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.protected Map<String,Object> getTagContextualParameters(Content content)
content
- The content.protected boolean isAutopostingEnabled(Content content)
content
- The content.