Class FormEntryLastUpdateSearchCriterionDefinition
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<ZonedDateTime>
org.ametys.cms.search.model.impl.AbstractCriterionDefinition<ZonedDateTime>
org.ametys.web.frontoffice.search.metamodel.impl.AbstractSearchServiceCriterionDefinition<ZonedDateTime>
org.ametys.plugins.forms.search.criteria.AbstractFormEntrySearchCriterionDefinition<ZonedDateTime>
org.ametys.plugins.forms.search.criteria.FormEntryLastUpdateSearchCriterionDefinition
- All Implemented Interfaces:
Comparable<ModelItem>,CriterionDefinition<ZonedDateTime>,ElementDefinition<ZonedDateTime>,ModelItem,Labelable,ModifiableLabelable,SearchServiceCriterionDefinition<ZonedDateTime>
public class FormEntryLastUpdateSearchCriterionDefinition
extends AbstractFormEntrySearchCriterionDefinition<ZonedDateTime>
Form entry workflow step search criterion definition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LastUpdateSystemPropertyThe last update system propertyFields inherited from class org.ametys.plugins.forms.search.criteria.AbstractFormEntrySearchCriterionDefinition
_form, _formEntryDAO, _modelItemTypeEP, _userManagerFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractSearchServiceCriterionDefinition
_criterionTypeExtensionPoint, _searchServiceCriterionDefinitionHelperFields inherited from class org.ametys.cms.search.model.impl.AbstractCriterionDefinition
_criterionDefinitionHelper, _joinedPaths, _multipleOperandOperator, _solrFacetFieldNameFields 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
ConstructorsConstructorDescriptionConstructor for form entry last update search criterion definition -
Method Summary
Modifier and TypeMethodDescriptionprotected LastUpdateSystemPropertyRetrieves theLastUpdateSystemPropertyGet the model item id of the form entry on which the criterion is based.Get the model item label of the form entry on which the criterion is based.getQuery(Object value, Query.Operator operator, Map<String, Object> allValues, String language, Map<String, Object> contextualParameters) Get theQueryassociated to the given value.getSolrFacetFieldName(Map<String, Object> contextualParameters) Retrieves the name of the criterion's solr facet fieldbooleanTest if the element is multiple.Methods inherited from class org.ametys.plugins.forms.search.criteria.AbstractFormEntrySearchCriterionDefinition
getEmptyValueQuery, getFacetLabel, getFormEntryDAO, getJoinedPaths, getLabel, getModelItemTypeEP, getName, getSearchable, getType, getUserManager, setSearchableMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractSearchServiceCriterionDefinition
_getCriterionTypeExtensionPoint, _getSearchServiceCriterionDefinitionHelper, _toJSON, dispose, getRestrictedEnumerator, isEnumerated, isTooBigForStaticEnumeratorMethods inherited from class org.ametys.cms.search.model.impl.AbstractCriterionDefinition
_getCriterionDefinitionHelper, _getDefaultWidget, _getDefaultWidgetParameters, convertQueryValue, getMultipleOperandOperator, getQueryContext, getWidget, getWidgetParameters, setJoinedPaths, setSolrFacetFieldNameMethods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_defaultValueToJSON, _getDefaultValues, _getSimpleDefaultValue, _widgetToJSON, _widgetToSAX, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, 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, getModel, 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.CriterionDefinition
convertQueryValue, getQuery, getQueryMethods 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.runtime.util.Labelable
getDescriptionMethods 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.util.ModifiableLabelable
setDescription, setLabel, setNameMethods inherited from interface org.ametys.web.frontoffice.search.metamodel.SearchServiceCriterionDefinition
convertRestrictedValue, facetValueToSAX, getContextPrefixLabel
-
Field Details
-
_lastUpdateSystemProperty
The last update system property
-
-
Constructor Details
-
FormEntryLastUpdateSearchCriterionDefinition
Constructor for form entry last update search criterion definition- Parameters:
form- the form
-
-
Method Details
-
getQuery
public Query getQuery(Object value, Query.Operator operator, Map<String, Object> allValues, String language, Map<String, Object> contextualParameters) Description copied from interface:CriterionDefinitionGet theQueryassociated to the given value.- Specified by:
getQueryin interfaceCriterionDefinition<ZonedDateTime>- Overrides:
getQueryin classAbstractCriterionDefinition<ZonedDateTime>- Parameters:
value- The user-submitted value (or the default value if not set) for this criterion.operator- In advanced search mode, the operator chosen by the user.nullto use the criterion-defined operator (simple search mode).allValues- All the user-submitted values.language- The current search language.contextualParameters- the search contextual parameters.- Returns:
Queryassociated to the given value.
-
getModelItemLabel
Description copied from class:AbstractFormEntrySearchCriterionDefinitionGet the model item label of the form entry on which the criterion is based.- Specified by:
getModelItemLabelin classAbstractFormEntrySearchCriterionDefinition<ZonedDateTime>- Returns:
- the model item label of the form entry on which the criterion is based.
-
getModelItemId
Description copied from class:AbstractFormEntrySearchCriterionDefinitionGet the model item id of the form entry on which the criterion is based.- Specified by:
getModelItemIdin classAbstractFormEntrySearchCriterionDefinition<ZonedDateTime>- Returns:
- the model item id of the form entry on which the criterion is based.
-
getSolrFacetFieldName
Description copied from interface:CriterionDefinitionRetrieves the name of the criterion's solr facet field- Specified by:
getSolrFacetFieldNamein interfaceCriterionDefinition<ZonedDateTime>- Overrides:
getSolrFacetFieldNamein classAbstractCriterionDefinition<ZonedDateTime>- Parameters:
contextualParameters- the search contextual parameters.- Returns:
- the name of the criterion's solr facet field. Can be
nullif the criterion is not facetable
-
getLastUpdateSystemProperty
Retrieves theLastUpdateSystemProperty- Returns:
- the
LastUpdateSystemProperty
-
isMultiple
Description copied from interface:ElementDefinitionTest if the element is multiple.- Specified by:
isMultiplein interfaceElementDefinition<ZonedDateTime>- Overrides:
isMultiplein classDefaultElementDefinition<ZonedDateTime>- Returns:
trueif the metadata is multiple.
-