java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.search.domain.SingleIndexRequest<T>
All Implemented Interfaces:
Serializable

public class SingleIndexRequest<T extends Identifiable> extends Object implements Serializable
For entities that are Indexable, this is the message payload that will be sent to request indexing on an entity.

This should be built by a SingleIndexRequestMessageBuilder.

Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • SingleIndexRequest

      public SingleIndexRequest(@NonNull T payload, @NonNull @NonNull Class<?> originatingEntity)
  • Method Details

    • getPayload

      public T getPayload()
      The payload which will be unwrapped into the final JSON. Allows flexibility since an index request may look different for each entity.
    • get_class

      public String get_class()
      The class name of the entity on which a CRUD operation was performed that resulted in this request. This is not necessarily the entity on which the reindex will actually occur - it may just be a related entity.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object