Package org.ametys.web.search.systemprop
Class TagsSystemProperty
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.search.systemprop.AbstractSystemProperty
org.ametys.cms.search.systemprop.TagsSystemProperty
org.ametys.web.search.systemprop.TagsSystemProperty
- All Implemented Interfaces:
SystemProperty
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
ProfiledGroupsTagsSystemProperty
Web-specific TagsSystemProperty which provides the current site to the TagProvider.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.model.SystemProperty
SystemProperty.EnumeratorDefinition
-
Field Summary
Modifier and TypeFieldDescriptionprotected SiteConfigurationExtensionPoint
The site configuration extension point.Fields inherited from class org.ametys.cms.search.systemprop.TagsSystemProperty
_jsonUtils, _tagProviderEP
Fields inherited from class org.ametys.cms.search.systemprop.AbstractSystemProperty
_description, _i18nUtils, _id, _label, _pluginName, _resolver, _userHelper, _userManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Site
Get the content site name.protected String
getSiteName
(Content content) Get the content site name.getTagContextualParameters
(Content content) Get the tags contextual parameters.getWidgetParameters
(Configuration configuration) Get the widget parameters.protected boolean
isAutopostingEnabled
(Content content) Test if autoposting is enabled.void
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.search.systemprop.TagsSystemProperty
getConverter, getJsonValue, getQuery, getRenderer, getSchemaDefinitions, getSearchField, getType, getValue, getWidget, index, isMultiple, isSortable, saxValue
Methods inherited from class org.ametys.cms.search.systemprop.AbstractSystemProperty
_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
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.model.SystemProperty
getColumnWidth, getContentTypeId, getEnumeratorDefinition, isDisplayable, isFacetable, isSearchable
-
Field Details
-
_siteConfEP
The site configuration extension point.
-
-
Constructor Details
-
TagsSystemProperty
public TagsSystemProperty()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classTagsSystemProperty
- Throws:
ServiceException
-
getWidgetParameters
Description copied from interface:SystemProperty
Get the widget parameters.- Specified by:
getWidgetParameters
in interfaceSystemProperty
- Overrides:
getWidgetParameters
in classTagsSystemProperty
- Parameters:
configuration
- The system property configuration- Returns:
- The widget parameters as a Map.
-
getTagContextualParameters
Description copied from class:TagsSystemProperty
Get the tags contextual parameters.- Overrides:
getTagContextualParameters
in classTagsSystemProperty
- Parameters:
content
- The content.- Returns:
- the tags contextual parameters.
-
isAutopostingEnabled
Description copied from class:TagsSystemProperty
Test if autoposting is enabled.- Overrides:
isAutopostingEnabled
in classTagsSystemProperty
- Parameters:
content
- The content.- Returns:
- true if enabled.
-
getSiteName
Get the content site name.- Parameters:
content
- The content.- Returns:
- the content site name or null if not found.
-
getSite
Get the content site name.- Parameters:
content
- The content.- Returns:
- the content site name or null if not found.
-