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
public class TagsSystemProperty extends TagsSystemProperty
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
Fields Modifier and Type Field Description protected SiteConfigurationExtensionPoint
_siteConfEP
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
Constructors Constructor Description TagsSystemProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Site
getSite(Content content)
Get the content site name.protected String
getSiteName(Content content)
Get the content site name.protected Map<String,Object>
getTagContextualParameters(Content content)
Get the tags contextual parameters.Map<String,I18nizableText>
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 Detail
-
_siteConfEP
protected SiteConfigurationExtensionPoint _siteConfEP
The site configuration extension point.
-
-
Constructor Detail
-
TagsSystemProperty
public TagsSystemProperty()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classTagsSystemProperty
- Throws:
ServiceException
-
getWidgetParameters
public Map<String,I18nizableText> getWidgetParameters(Configuration configuration)
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
protected Map<String,Object> getTagContextualParameters(Content content)
Description copied from class:TagsSystemProperty
Get the tags contextual parameters.- Overrides:
getTagContextualParameters
in classTagsSystemProperty
- Parameters:
content
- The content.- Returns:
- the tags contextual parameters.
-
isAutopostingEnabled
protected boolean isAutopostingEnabled(Content content)
Description copied from class:TagsSystemProperty
Test if autoposting is enabled.- Overrides:
isAutopostingEnabled
in classTagsSystemProperty
- Parameters:
content
- The content.- Returns:
- true if enabled.
-
getSiteName
protected String getSiteName(Content content)
Get the content site name.- Parameters:
content
- The content.- Returns:
- the content site name or null if not found.
-
-