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_TYPEFields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptiondefault IntegerGet the column width.default StringGet the property column converter.getQuery(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Get theQueryassociated to the given value.default StringGet the renderer.Get the schema definitions brought by this property.Get theSearchFieldrepresenting this system property.default ObjectgetSortValue(X ametysObject) Get the sort value represented by this field in the given result ametys object.default booleanGet if the property can be displayed (i.e.default booleanGets if the property can be facetabledefault booleanGet if the property can be searched on (i.e.default booleanGet if the property can be sorted on.Methods inherited from interface java.lang.Comparable
compareToMethods 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, setValidatorConfigurationMethods 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.util.ModifiableLabelable
setDescription, setLabel, setNameMethods 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:
trueif the property can be searched on,falseotherwise.
-
isDisplayable
Get if the property can be displayed (i.e. used in a ResultField).- Returns:
trueif the property can be displayed,falseotherwise.
-
isSortable
Get if the property can be sorted on.- Returns:
trueif the property can be sorted on,falseotherwise.
-
isFacetable
Gets if the property can be facetable- Returns:
trueif the property can be facetable,falseotherwise.
-
getQuery
Query getQuery(Object value, Query.Operator operator, String language, Map<String, Object> contextualParameters) Get theQueryassociated to the given value.- Parameters:
value- the user-submitted value for this property.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.
-
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 theSearchFieldrepresenting 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.
-