Class PagesSystemProperty

All Implemented Interfaces:
Comparable<ModelItem>, Property<String,Content>, SystemProperty<String,Content>, ElementDefinition<String>, ModelItem, PluginAware, Labelable, ModifiableLabelable, Configurable, Serviceable

SystemProperty which represents the pages of a Content.
  • Constructor Details

  • Method Details

    • isMultiple

      public boolean isMultiple()
      Description copied from interface: ElementDefinition
      Test if the element is multiple.
      Specified by:
      isMultiple in interface ElementDefinition<String>
      Overrides:
      isMultiple in class DefaultElementDefinition<String>
      Returns:
      true if the metadata is multiple.
    • isSortable

      public boolean isSortable()
      Description copied from interface: SystemProperty
      Get if the property can be sorted on.
      Returns:
      true if the property can be sorted on, false otherwise.
    • isDisplayable

      public boolean isDisplayable()
      Description copied from interface: SystemProperty
      Get if the property can be displayed (i.e. used in a ResultField).
      Returns:
      true if the property can be displayed, false otherwise.
    • getQuery

      public Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
      Description copied from interface: SystemProperty
      Get the Query 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.
    • getCriterionWidget

      Description copied from interface: ModelItem
      Get the default widget to use when rendering this item as a criterion.
      Returns:
      The default widget to use, or null if no specific widget is necessary.
    • getCriterionWidgetParameters

      Description copied from interface: ModelItem
      Get the widget parameters to use when rendering this item as a criterion.
      Parameters:
      configuration - The widget parameters configuration
      Returns:
      The default widget parameters to use, or an empty Map if no specific widget parameters are necessary.
    • getSearchField

      Description copied from interface: SystemProperty
      Get the SearchField representing this system property.
      Returns:
      The search field representing this system property.
    • getValue

      public Object getValue(Content content)
      Description copied from interface: Property
      Get the property's value
      Parameters:
      content - the ametysObject containing the property
      Returns:
      the values to index.
    • _getTypeId

      protected String _getTypeId()
      Description copied from class: AbstractProperty
      Retrieves the id of the property's type
      Specified by:
      _getTypeId in class AbstractProperty<String,Content>
      Returns:
      the id of the property's type