Class CollectionsSystemProperty

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

SystemProperty which represents the synchronizable contents collections of a content.
  • 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 content)
      Description copied from interface: Property
      Get the property's value
      Parameters:
      content - the ametysObject containing the property
      Returns:
      the values to index.
    • valueToJSON

      public Object valueToJSON(Content content, DataContext context)
      Description copied from interface: Property
      Convert the property into a JSON object
      Parameters:
      content - the ametysObject containing the property to convert.
      context - the context of the data to convert. Can not be null.
      Returns:
      The property as JSON
    • valueToSAX

      public void valueToSAX(ContentHandler contentHandler, Content content, DataContext context) throws SAXException
      Description copied from interface: Property
      Generates SAX events for the property
      Parameters:
      contentHandler - the ContentHandler that will receive the SAX events
      content - the ametysObject containing the property to SAX.
      context - the context of the data to SAX. Can not be null.
      Throws:
      SAXException - if an error occurs during the SAX events generation
    • _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