Package org.ametys.cms.search.model
Interface SystemProperty<T,X extends ModelAwareDataAwareAmetysObject>
- Type Parameters:
T
- type of the property valuesX
- type of ametys object supported by this property
- All Superinterfaces:
Comparable<ModelItem>
,ElementDefinition<T>
,Labelable
,ModelItem
,ModifiableLabelable
,Property<T,
X>
- All Known Implementing Classes:
AbstractDateTimeSystemProperty
,AbstractSystemProperty
,AbstractUserSystemProperty
,CollectionsSystemProperty
,CommentsSystemProperty
,ContentIdSystemProperty
,ContentPrivacySystemProperty
,ContentTypeSystemProperty
,ContributorSystemProperty
,CreationDateSystemProperty
,CreatorSystemProperty
,FirstValidationSystemProperty
,FirstValidatorSystemProperty
,FulltextSystemProperty
,HasLiveVersionSystemProperty
,LanguageSystemProperty
,LastMajorValidationSystemProperty
,LastMajorValidatorSystemProperty
,LastModifiedSystemProperty
,LastSynchronizationSystemProperty
,LastSynchronizationUserSystemProperty
,LastValidationSystemProperty
,LastValidatorSystemProperty
,OrphanSystemProperty
,PagesSystemProperty
,ParentContentSystemProperty
,ProfiledGroupsTagsSystemProperty
,SemanticAnnotationSystemProperty
,SharedSystemProperty
,SiteSystemProperty
,SiteTypeSystemProperty
,TagsSystemProperty
,TagsSystemProperty
,ViewBasedFullTextSystemProperty
,WorkflowNameSystemProperty
,WorkflowStepSystemProperty
,WorkflowStepSystemProperty
Represents a universal property of a supported
ModelAwareDataAwareAmetysObject
Ex: content types, language or current workflow steps are some system properties supporting contents-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault Integer
Get the column width.default String
Get the property column converter.getQuery
(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Get theQuery
associated to the given value.default String
Get the renderer.Get the schema definitions brought by this property.Get theSearchField
representing this system property.default Object
getSortValue
(X ametysObject) Get the sort value represented by this field in the given result ametys object.default boolean
Get if the property can be displayed (i.e.default boolean
Gets if the property can be facetabledefault boolean
Get if the property can be searched on (i.e.default boolean
Get if the property can be sorted on.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.ametys.runtime.model.ElementDefinition
getCriterionEnumerator, 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, 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
getCriterionWidget, getCriterionWidgetParameters, getType, getValue, indexValue, setAvailableTypeExtensionPoint, valueToJSON, valueToSAX
-
Method Details
-
isSearchable
Get if the property can be searched on (i.e. used in a SearchCriterion).- Returns:
true
if the property can be searched on,false
otherwise.
-
isDisplayable
Get if the property can be displayed (i.e. used in a ResultField).- Returns:
true
if the property can be displayed,false
otherwise.
-
isSortable
Get if the property can be sorted on.- Returns:
true
if the property can be sorted on,false
otherwise.
-
isFacetable
Gets if the property can be facetable- Returns:
true
if the property can be facetable,false
otherwise.
-
getQuery
Query getQuery(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Get theQuery
associated to the given value.- Parameters:
value
- the user-submitted value for this property.operator
- In advanced search mode, the operator chosen by the user.null
to use the criterion-defined operator (simple search mode).language
- The current search language.contextualParameters
- the search contextual parameters.- Returns:
- The
Query
associated to the given value.
-
getRenderer
Get the renderer.- Returns:
- The column renderer.
-
getConverter
Get the property column converter.- Returns:
- The property column converter.
-
getColumnWidth
Get the column width.- Returns:
- the default column width, can be null.
-
getSearchField
Get theSearchField
representing this system property.- Returns:
- The search field representing this system property.
-
getSortValue
Get the sort value represented by this field in the given result ametys object.- Parameters:
ametysObject
- the result ametys object.- Returns:
- the content sort value, must be scalar (String, long, double, Date).
-
getSchemaDefinitions
Get the schema definitions brought by this property.- Returns:
- The schema definitions used by this property.
-