Class HasLiveVersionSystemProperty

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

SystemProperty which indicate if the content has a live version. The current version or a past one.
  • Constructor Details

  • Method Details

    • 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.
    • 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 ametysObject)
      Description copied from interface: Property
      Get the property's value
      Parameters:
      ametysObject - 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<Boolean,Content>
      Returns:
      the id of the property's type