Class SharedSystemProperty

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

SystemProperty which represents the shared status 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<Boolean>
      Overrides:
      isMultiple in class DefaultElementDefinition<Boolean>
      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.
    • getConverter

      public String getConverter()
      Description copied from interface: SystemProperty
      Get the property column converter.
      Returns:
      The property column converter.
    • getRenderer

      public String getRenderer()
      Description copied from interface: SystemProperty
      Get the renderer.
      Returns:
      The column renderer.
    • getColumnWidth

      Description copied from interface: SystemProperty
      Get the column width.
      Returns:
      the default column width, can be null.
    • 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
    • _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