Class LastModifiedSystemProperty

All Implemented Interfaces:
SystemProperty, LogEnabled, PluginAware, Configurable, Serviceable

SystemProperty which represents the last modification date of a Content.
  • Constructor Details

  • Method Details

    • getType

      Description copied from interface: SystemProperty
      Get the property type.
      Returns:
      the property type.
    • isMultiple

      public boolean isMultiple()
      Description copied from interface: SystemProperty
      Get the multiple status of the property.
      Returns:
      true if the property can have multiple values, false otherwise.
    • 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.
    • 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.
    • getWidget

      public String getWidget()
      Description copied from interface: SystemProperty
      Get the default widget to use when rendering this property as a criterion.
      Returns:
      The default widget to use, or null if no specific widget is necessary.
    • getValue

      public Object getValue(Content content)
      Description copied from interface: SystemProperty
      Get the typed raw value for this field in the given result content. The returned object depends on this field's type:
      - MetadataType.STRING must return String or String[] if multiple
      - MetadataType.DATE or MetadataType.DATETIME must return Date or Date[] if multiple
      - MetadataType.LONG must return Long or Long[] if multiple
      - MetadataType.DOUBLE must return Double or Double[] if multiple
      - MetadataType.CONTENT must return String or String[] if multiple
      - MetadataType.GEOCODE must return Map<String, Double>
      - MetadataType.USER must return UserIdentity or UserIdentity[] if multiple
      - MetadataType.MULTILINGUAL_STRING must return MultilingualString
      Others types are not supported.
      Parameters:
      content - The result content
      Returns:
      The typed value, cast to the appropriate object according its type.
    • getColumnWidth

      Description copied from interface: SystemProperty
      Get the column width.
      Returns:
      the default column width, can be null.
    • getJsonValue

      public Object getJsonValue(Content content, boolean full)
      Description copied from interface: SystemProperty
      Get the jsonified value
      Parameters:
      content - the result content
      full - true to get full value.
      Returns:
      the content field value