Package org.ametys.cms.search.model.impl
Class StaticContentReferencingSearchModelCriterionDefinition
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<ContentValue>
org.ametys.cms.search.model.impl.AbstractCriterionDefinition<ContentValue>
org.ametys.cms.search.model.impl.ReferencingCriterionDefinition<ContentValue>
org.ametys.cms.search.model.impl.ReferencingSearchModelCriterionDefinition<ContentValue>
org.ametys.cms.search.model.impl.StaticReferencingSearchModelCriterionDefinition<ContentValue>
org.ametys.cms.search.model.impl.StaticContentReferencingSearchModelCriterionDefinition
- All Implemented Interfaces:
Comparable<ModelItem>
,ContentElementDefinition
,CriterionDefinition<ContentValue>
,SearchModelCriterionDefinition<ContentValue>
,ElementDefinition<ContentValue>
,ModelItem
,ModelItemAccessor
,Labelable
,ModifiableLabelable
,Disposable
,Component
,Configurable
,Contextualizable
,Serviceable
public class StaticContentReferencingSearchModelCriterionDefinition
extends StaticReferencingSearchModelCriterionDefinition<ContentValue>
implements ContentElementDefinition
Static implementation for
SearchModelCriterionDefinition
searching on a model item of type content.-
Field Summary
Fields inherited from class org.ametys.cms.search.model.impl.StaticReferencingSearchModelCriterionDefinition
_contentTypesHelper, _rootConfiguration, _systemPropertyExtensionPoint, _validatorManager
Fields inherited from class org.ametys.cms.search.model.impl.ReferencingSearchModelCriterionDefinition
_operator, CRITERION_DEFINITION_PREFIX
Fields inherited from class org.ametys.cms.search.model.impl.ReferencingCriterionDefinition
_contentSearchHelper, _contentTypeExtensionPoint, _contentTypeIds, _criterionTypeExtensionPoint, _reference, _referencePath, NONE_VALUE
Fields inherited from class org.ametys.cms.search.model.impl.AbstractCriterionDefinition
_criterionDefinitionHelper, _joinedPaths, _multipleOperandOperator, _solrFacetFieldName
Fields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_logger
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__context, __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 TypeMethodDescription_toJSON
(DefinitionContext context) Converts the model item in a JSON mapGet the element's content type identifier.Collection
<? extends ModelItem> Retrieves all the model items of this accessorRetrieves the referenced element definitionvoid
setContentTypeId
(String contentTypeId) Set the element's content type identifier.void
toSAX
(ContentHandler contentHandler, DefinitionContext context) Generates SAX events for the model itemMethods inherited from class org.ametys.cms.search.model.impl.StaticReferencingSearchModelCriterionDefinition
_getRootCriterionConfiguration, _parseOperator, _parseReference, _parseReferencePath, _parseValidator, configure, contextualize, dispose, service
Methods inherited from class org.ametys.cms.search.model.impl.ReferencingSearchModelCriterionDefinition
_getDefaultOperator, copyTo, getContentTypeIds, getModel, getName, getOperator, getQuery, setMultipleOperandOperator, setOperator
Methods inherited from class org.ametys.cms.search.model.impl.ReferencingCriterionDefinition
_getContentSearchHelper, _getContentTypeExtensionPoint, _getCriterionTypeExtensionPoint, _getDefaultEnumerator, _getDefaultWidget, _getDefaultWidgetParameters, _getFacetFieldNameSuffix, _isFacetable, convertQueryValue, getDescription, getEnumerator, getJoinedPaths, getLabel, getReferencePath, getSolrFacetFieldName, getType, setContentTypeIds, setReference, setReferencePath
Methods inherited from class org.ametys.cms.search.model.impl.AbstractCriterionDefinition
_defaultValueToJSON, _getCriterionDefinitionHelper, getMultipleOperandOperator, getQueryContext, getWidget, getWidgetParameters, setJoinedPaths, setSolrFacetFieldName
Methods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValues, _widgetToJSON, _widgetToSAX, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_getModelItemHelper, _shouldJSONBeEmpty, _widgetParameterToSAX, addItemChecker, compareTo, disableConditionsToJSON, equals, getDisableConditions, getItemCheckers, getParent, getPath, getPluginName, hashCode, setContext, 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.cms.search.model.CriterionDefinition
convertQueryValue, getJoinedPaths, getQuery, getQuery, getSolrFacetFieldName, getType
Methods inherited from interface org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isEditable, isMultiple, 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, getParent, getPath, getPluginName, getWidget, getWidgetParameters, setDisableConditions, setModel, setParent, setPluginName, setType, setWidget, setWidgetParameters, toJSON
Methods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
-
Constructor Details
-
StaticContentReferencingSearchModelCriterionDefinition
-
-
Method Details
-
getReference
Description copied from class:ReferencingCriterionDefinition
Retrieves the referenced element definition- Overrides:
getReference
in classReferencingCriterionDefinition<ContentValue>
- Returns:
- the referenced element definition
-
getContentTypeId
Description copied from interface:ContentElementDefinition
Get the element's content type identifier.- Specified by:
getContentTypeId
in interfaceContentElementDefinition
- Returns:
- the element's content type identifier.
-
setContentTypeId
Description copied from interface:ContentElementDefinition
Set the element's content type identifier.- Specified by:
setContentTypeId
in interfaceContentElementDefinition
- Parameters:
contentTypeId
- the content type identifier to set.
-
getModelItems
Description copied from interface:ModelItemAccessor
Retrieves all the model items of this accessor- Specified by:
getModelItems
in interfaceContentElementDefinition
- Specified by:
getModelItems
in interfaceModelItemAccessor
- Returns:
- the model items
-
_toJSON
Description copied from class:AbstractModelItem
Converts the model item in a JSON map- Overrides:
_toJSON
in classReferencingSearchModelCriterionDefinition<ContentValue>
- Parameters:
context
- the context of the definition- Returns:
- The model item as a JSON map
-
toSAX
Description copied from interface:ModelItem
Generates SAX events for the model item- Specified by:
toSAX
in interfaceModelItem
- Overrides:
toSAX
in classReferencingSearchModelCriterionDefinition<ContentValue>
- Parameters:
contentHandler
- theContentHandler
that will receive the SAX eventscontext
- the context of the definition- Throws:
SAXException
- if an error occurs during the SAX events generation
-