Class DataIndexManager

java.lang.Object
com.jalios.jcms.AbstractIndexManager
com.jalios.jcms.DataIndexManager

public class DataIndexManager extends AbstractIndexManager
  • Method Details

    • getInstance

      public static DataIndexManager getInstance()
    • getExtraInfoMap

      public Map<String,Object> getExtraInfoMap(Data data)
      Returns the ExtraInfo Map which is associated to the given data.
      Parameters:
      data - the data to get the ExtraInfo Map
      Returns:
      the ExtraInfo Map which is associated to the given data.
      Since:
      jcms-6.0.0
    • getExtraInfo

      public Object getExtraInfo(Data data, String key)
      Returns the ExtraInfo which is associated to the given key for the given data.
      Parameters:
      data - the data to get the ExtraInfo
      key - whose associated value is to be returned.
      Returns:
      the ExtraInfo which is associated to the given key for the given data.
      Since:
      jcms-6.0.0
    • putExtraInfo

      public Object putExtraInfo(Data data, String key, Object value)
      Associates the given ExtraInfo for the given data.
      Parameters:
      data - data with which this ExtraInfo is to be associated.
      key - key with which the specified value is to be associated.
      value - valuee to be associated with the specified key.
      Returns:
      previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values.
      Since:
      jcms-6.0.0
    • removeExtraInfo

      public Object removeExtraInfo(Data data, String key)
      Removes the mapping for this key from this map if it is present.
      Parameters:
      data - data with which this ExtraInfo is to be associated.
      key - key whose mapping is to be removed from the map.
      Returns:
      previous value associated with specified key, or null if there was no mapping for key.
      Since:
      jcms-6.0.0
    • removeExtraInfoMap

      public Map<String,Object> removeExtraInfoMap(Data data)
      Removes and returns the ExtraInfo Map which is associated to the given data.
      Parameters:
      data - the data from which to get and remove the ExtraInfo Map
      Returns:
      the ExtraInfo Map which is associated to the given data.
      Since:
      JCMS-3804
    • setExtraInfoMap

      public Map<String,Object> setExtraInfoMap(Data data, Map<String,Object> extraInfoMap)
      Set the ExtraInfo Map associated to the given data.

      Replace any exiting map already associated to the data.

      Parameters:
      data - the data for which to set the ExtraInfo Map
      extraInfoMap - the map to associate to the specified data
      Returns:
      the previous ExtraInfo Map associated to the given data.
      Since:
      JCMS-3804