Package org.ametys.web.search.systemprop
Class TagsSystemProperty
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<T>
org.ametys.cms.model.properties.AbstractProperty<T,X>
org.ametys.cms.search.systemprop.AbstractSystemProperty<String,Content>
org.ametys.cms.search.systemprop.TagsSystemProperty
org.ametys.web.search.systemprop.TagsSystemProperty
- All Implemented Interfaces:
Comparable<ModelItem>
,Property<String,
,Content> SystemProperty<String,
,Content> ElementDefinition<String>
,ModelItem
,PluginAware
,Labelable
,ModifiableLabelable
,Configurable
,Serviceable
- Direct Known Subclasses:
ProfiledGroupsTagsSystemProperty
Web-specific TagsSystemProperty which provides the current site to the TagProvider.
-
Field Summary
FieldsModifier 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
_i18nUtils, _manager, _resolver, _userHelper, _userManager
Fields inherited from class org.ametys.cms.model.properties.AbstractProperty
_availableTypesExtensionPoint
Fields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_logger
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
Fields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPE
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCriterionWidgetParameters
(Configuration configuration) Get the widget parameters to use when rendering this item as a criterion.protected Site
Get the content site name.protected String
getSiteName
(Content content) Get the content site name.getTagContextualParameters
(Content content) Get the tags contextual 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
_getTypeId, getConverter, getCriterionWidget, getQuery, getRenderer, getSchemaDefinitions, getSearchField, getValue, indexValue, isMultiple, isSortable, valueToJSON, valueToSAX
Methods inherited from class org.ametys.cms.search.systemprop.AbstractSystemProperty
_getNameConfigurationAttribute, getSortValue, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray
Methods inherited from class org.ametys.cms.model.properties.AbstractProperty
_parseI18nizableText, configure, getType, isEditable, setAvailableTypeExtensionPoint, setPluginInfo
Methods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValue, _getParsedDefaultValues, _toJSON, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toSAX
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_shouldJSONBeEmpty, _widgetParameterToSAX, _widgetToSAX, addItemChecker, compareTo, equals, getDescription, getDisableConditions, getItemCheckers, getLabel, getModel, getName, getParent, getPath, getPluginName, hashCode, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, toJSON, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.ametys.runtime.model.ElementDefinition
_getParsedDefaultValues, getCriterionEnumerator, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getValidator, getValidatorConfiguration, isEditable, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfiguration
Methods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getName
Methods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, getWidget, getWidgetParameters, setDisableConditions, setModel, setParent, setPluginName, setType, setWidget, setWidgetParameters, toJSON, toSAX
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
Methods inherited from interface org.ametys.cms.model.properties.Property
getType, setAvailableTypeExtensionPoint, valueToJSON, valueToSAX
Methods inherited from interface org.ametys.cms.search.model.SystemProperty
getColumnWidth, 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
-
getCriterionWidgetParameters
Description copied from interface:ModelItem
Get the widget parameters to use when rendering this item as a criterion.- Specified by:
getCriterionWidgetParameters
in interfaceModelItem
- Specified by:
getCriterionWidgetParameters
in interfaceProperty<String,
Content> - Overrides:
getCriterionWidgetParameters
in classTagsSystemProperty
- Parameters:
configuration
- The widget parameters configuration- Returns:
- The default widget parameters to use, or an empty Map if no specific widget parameters are necessary.
-
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.
-