Package org.ametys.odf.rights
Class ODFContributorOrManagerCriterionDefinition
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<String>
org.ametys.cms.search.model.impl.AbstractCriterionDefinition<String>
org.ametys.cms.search.model.impl.DefaultSearchModelCriterionDefinition<String>
org.ametys.cms.search.model.impl.AbstractStaticSearchModelCriterionDefinition<String>
org.ametys.odf.rights.ODFContributorOrManagerCriterionDefinition
- All Implemented Interfaces:
Comparable<ModelItem>
,CriterionDefinition<String>
,SearchModelCriterionDefinition<String>
,ElementDefinition<String>
,ModelItem
,Labelable
,ModifiableLabelable
,Component
,Configurable
,Serviceable
public class ODFContributorOrManagerCriterionDefinition
extends AbstractStaticSearchModelCriterionDefinition<String>
UI criteria for program item context
-
Field Summary
Fields inherited from class org.ametys.cms.search.model.impl.AbstractStaticSearchModelCriterionDefinition
_criterionTypeExtensionPoint
Fields inherited from class org.ametys.cms.search.model.impl.DefaultSearchModelCriterionDefinition
_operator
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 TypeMethodDescriptionGet the criterion Operator.getQuery
(Object value, Query.Operator customOperator, Map<String, Object> allValues, String language, Map<String, Object> contextualParameters) Get theQuery
associated to the given value.protected String
Retrieves the id of the property's typevoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.cms.search.model.impl.AbstractStaticSearchModelCriterionDefinition
configure, getType, setMultipleOperandOperator, setOperator
Methods inherited from class org.ametys.cms.search.model.impl.DefaultSearchModelCriterionDefinition
_getDefaultOperator, _toJSON, copyTo, getModel, toSAX
Methods inherited from class org.ametys.cms.search.model.impl.AbstractCriterionDefinition
_defaultValueToJSON, _getCriterionDefinitionHelper, _getDefaultWidget, _getDefaultWidgetParameters, convertQueryValue, getJoinedPaths, getMultipleOperandOperator, getQueryContext, getSolrFacetFieldName, getWidget, getWidgetParameters, setJoinedPaths, setSolrFacetFieldName
Methods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValues, _widgetToJSON, _widgetToSAX, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, 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, getDescription, getDisableConditions, getItemCheckers, getLabel, getName, 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
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.util.ModifiableLabelable
setDescription, setLabel, setName
-
Constructor Details
-
ODFContributorOrManagerCriterionDefinition
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractStaticSearchModelCriterionDefinition<String>
- Throws:
ServiceException
-
getOperator
Description copied from interface:SearchModelCriterionDefinition
Get the criterion Operator.- Specified by:
getOperator
in interfaceSearchModelCriterionDefinition<String>
- Overrides:
getOperator
in classDefaultSearchModelCriterionDefinition<String>
- Returns:
- the criterion Operator.
-
getTypeId
Description copied from class:AbstractStaticSearchModelCriterionDefinition
Retrieves the id of the property's type- Specified by:
getTypeId
in classAbstractStaticSearchModelCriterionDefinition<String>
- Returns:
- the id of the property's type
-
getQuery
public Query getQuery(Object value, Query.Operator customOperator, Map<String, Object> allValues, String language, Map<String, Object> contextualParameters) Description copied from interface:CriterionDefinition
Get theQuery
associated to the given value.- Specified by:
getQuery
in interfaceCriterionDefinition<String>
- Overrides:
getQuery
in classDefaultSearchModelCriterionDefinition<String>
- Parameters:
value
- The user-submitted value (or the default value if not set) for this criterion.customOperator
- In advanced search mode, the operator chosen by the user.null
to 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:
Query
associated to the given value.
-