Class ParentContentSystemProperty
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<ContentValue>
org.ametys.cms.model.properties.AbstractProperty<ContentValue,Content>
org.ametys.cms.model.properties.AbstractStaticProperty<ContentValue,Content>
org.ametys.cms.model.properties.AbstractIndexableStaticProperty<ContentValue,ContentValue,Content>
org.ametys.cms.search.systemprop.AbstractIndexableSystemProperty<ContentValue,ContentValue,Content>
org.ametys.cms.content.referencetable.search.ParentContentSystemProperty
- All Implemented Interfaces:
Comparable<ModelItem>,ContentElementDefinition,Property<ContentValue,,Content> CriterionDefinitionAwareElementDefinition<ContentValue,,ContentValue, Content> IndexationAwareElementDefinition<ContentValue,,Content> SystemProperty<ContentValue,,Content> IndexationAwareSystemProperty<ContentValue,,Content> ElementDefinition<ContentValue>,ModelItem,ModelItemAccessor,PluginAware,Labelable,ModifiableLabelable,Configurable,Contextualizable,Serviceable
public class ParentContentSystemProperty
extends AbstractIndexableSystemProperty<ContentValue,ContentValue,Content>
implements ContentElementDefinition
SystemProperty which represents all parents (parent, parent of the parent, etc.) of a simple content.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe ametys object resolverstatic final StringSolr field name.Fields inherited from class org.ametys.cms.model.properties.AbstractIndexableStaticProperty
_criterionDefinitionHelper, _indexationAwareElementDefinitionHelperFields inherited from class org.ametys.cms.model.properties.AbstractStaticProperty
_contextFields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_loggerFields inherited from class org.ametys.runtime.model.AbstractModelItem
__context, __serviceManagerFields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPEFields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HierarchicalReferenceTablesHelperRetrieves the hierarchical reference tables helperGet the element's content type identifier.Get the widget to use when rendering this item as a criterion, if no other widget is specified on criterionCollection<? extends ModelItem> Retrieves all the model items of this accessorgetQuery(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Get theQueryassociated to the given value.Get the renderer.Retrieves the name of the element's solr facet fieldRetrieves the name of the element's solr fieldRetrieves the name of the element's solr sort fieldprotected StringRetrieves the id of the property's typeGet the element's valuebooleanTest if the element is multiple.voidservice(ServiceManager manager) voidsetContentTypeId(String contentTypeId) Set the element's content type identifier.Methods inherited from class org.ametys.cms.search.systemprop.AbstractIndexableSystemProperty
_getNameConfigurationAttribute, getSchemaDefinitions, getSortValue, indexValue, parseStringArrayMethods inherited from class org.ametys.cms.model.properties.AbstractIndexableStaticProperty
getCriterionType, getCriterionTypeIdMethods inherited from class org.ametys.cms.model.properties.AbstractStaticProperty
_parseAndSetEnumerator, _parseDescription, _parseLabel, _parseName, configure, contextualizeMethods inherited from class org.ametys.cms.model.properties.AbstractProperty
getType, init, isEditable, setPluginInfoMethods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_defaultValueToJSON, _getDefaultValues, _getSimpleDefaultValue, _toJSON, _widgetToJSON, _widgetToSAX, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toSAXMethods inherited from class org.ametys.runtime.model.AbstractModelItem
_getModelItemHelper, _shouldJSONBeEmpty, _widgetParameterToSAX, addItemChecker, compareTo, disableConditionsToJSON, equals, getDescription, getDisableConditions, getItemCheckers, getLabel, getModel, getName, getParent, getPath, getPluginName, hashCode, setContext, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, toJSON, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.ametys.cms.search.model.CriterionDefinitionAwareElementDefinition
convertQueryValue, getDefaultCriterionEnumerator, getDefaultCriterionOperator, getDefaultCriterionWidgetParametersMethods inherited from interface org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isEditable, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfigurationMethods inherited from interface org.ametys.cms.search.model.IndexationAwareElementDefinition
getType, isFacetable, isSortableMethods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getNameMethods 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, toSAXMethods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItemMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setNameMethods inherited from interface org.ametys.cms.model.properties.Property
getType, init, valueToJSON, valueToSAXMethods inherited from interface org.ametys.cms.search.model.SystemProperty
getColumnWidth, getConverter, isDisplayable
-
Field Details
-
SOLR_FIELD_NAME
Solr field name.- See Also:
-
_resolver
The ametys object resolver
-
-
Constructor Details
-
ParentContentSystemProperty
public ParentContentSystemProperty()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractIndexableStaticProperty<ContentValue,ContentValue, Content> - Throws:
ServiceException
-
isMultiple
Description copied from interface:ElementDefinitionTest if the element is multiple.- Specified by:
isMultiplein interfaceElementDefinition<ContentValue>- Overrides:
isMultiplein classDefaultElementDefinition<ContentValue>- Returns:
trueif the metadata is multiple.
-
getRenderer
Description copied from interface:SystemPropertyGet the renderer.- Specified by:
getRendererin interfaceSystemProperty<ContentValue,Content> - Returns:
- The column renderer.
-
getDefaultCriterionWidget
Description copied from interface:CriterionDefinitionAwareElementDefinitionGet the widget to use when rendering this item as a criterion, if no other widget is specified on criterion- Specified by:
getDefaultCriterionWidgetin interfaceCriterionDefinitionAwareElementDefinition<ContentValue,ContentValue, Content> - Returns:
- The widget to use, or
nullif no specific widget is necessary by default.
-
getQuery
public Query getQuery(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Description copied from interface:CriterionDefinitionAwareElementDefinitionGet theQueryassociated to the given value.- Specified by:
getQueryin interfaceCriterionDefinitionAwareElementDefinition<ContentValue,ContentValue, Content> - Parameters:
value- the user-submitted value for this item.operator- In advanced search mode, the operator chosen by the user.nullto use the criterion-defined operator (simple search mode).language- The current search language.contextualParameters- the search contextual parameters.- Returns:
- The
Queryassociated to the given value.
-
getSolrFieldName
Description copied from interface:IndexationAwareElementDefinitionRetrieves the name of the element's solr field- Specified by:
getSolrFieldNamein interfaceIndexationAwareElementDefinition<ContentValue,Content> - Returns:
- the name of the element's solr field
-
getSolrSortFieldName
Description copied from interface:IndexationAwareElementDefinitionRetrieves the name of the element's solr sort field- Specified by:
getSolrSortFieldNamein interfaceIndexationAwareElementDefinition<ContentValue,Content> - Overrides:
getSolrSortFieldNamein classAbstractIndexableStaticProperty<ContentValue,ContentValue, Content> - Returns:
- the name of the element's solr sort field
-
getSolrFacetFieldName
Description copied from interface:IndexationAwareElementDefinitionRetrieves the name of the element's solr facet field- Specified by:
getSolrFacetFieldNamein interfaceIndexationAwareElementDefinition<ContentValue,Content> - Returns:
- the name of the element's solr facet field
-
getValue
Description copied from interface:IndexationAwareElementDefinitionGet the element's value- Specified by:
getValuein interfaceIndexationAwareElementDefinition<ContentValue,Content> - Specified by:
getValuein interfaceProperty<ContentValue,Content> - Parameters:
content- the ametysObject containing the element- Returns:
- the values to index.
-
getTypeId
Description copied from class:AbstractPropertyRetrieves the id of the property's type- Specified by:
getTypeIdin classAbstractProperty<ContentValue,Content> - Returns:
- the id of the property's type
-
getContentTypeId
Description copied from interface:ContentElementDefinitionGet the element's content type identifier.- Specified by:
getContentTypeIdin interfaceContentElementDefinition- Returns:
- the element's content type identifier.
-
setContentTypeId
Description copied from interface:ContentElementDefinitionSet the element's content type identifier.- Specified by:
setContentTypeIdin interfaceContentElementDefinition- Parameters:
contentTypeId- the content type identifier to set.
-
getModelItems
Description copied from interface:ModelItemAccessorRetrieves all the model items of this accessor- Specified by:
getModelItemsin interfaceContentElementDefinition- Specified by:
getModelItemsin interfaceModelItemAccessor- Returns:
- the model items
-
_getHierarchicalReferenceTablesHelper
Retrieves the hierarchical reference tables helper- Returns:
- the hierarchical reference tables helper
-