Class NotFoundIndexable
java.lang.Object
com.broadleafcommerce.search.api.domain.NotFoundIndexable
Represents and indexable that was not found when querying a service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the identifier for this object.The raw JSON map representing the Indexable object.Any translations present for this Indexable object.getType()Provides a type or "namespace" for documents that are co-mingled in an index.booleanReturns true if the item was not found when querying the service, otherwise false.voidvoidsetType(IndexableType type)
-
Constructor Details
-
NotFoundIndexable
public NotFoundIndexable()
-
-
Method Details
-
getId
Description copied from interface:IndexableReturns the identifier for this object. Typically a ULID, UUID, Long, or BigDecimal. -
getType
Description copied from interface:IndexableProvides a type or "namespace" for documents that are co-mingled in an index. Allows for filtering by type. e.g. "PRODUCT", "CATEGORY", "ORDER", "STORE", etc. -
getJsonMap
Description copied from interface:IndexableThe raw JSON map representing the Indexable object.- Specified by:
getJsonMapin interfaceIndexable<Object>- Returns:
- raw JSON map representing the Indexable object
-
getTranslations
Description copied from interface:IndexableAny translations present for this Indexable object. If the indexable type is not translatable, this will be empty.- Specified by:
getTranslationsin interfaceIndexable<Object>- Returns:
- any translations present for this Indexable object
-
isNotFound
public boolean isNotFound()Description copied from interface:IndexableReturns true if the item was not found when querying the service, otherwise false. This indicates that the indexable was deleted. In the case that this is true, onlyIndexable.getType()andIndexable.getId()will return values.- Specified by:
isNotFoundin interfaceIndexable<Object>- Returns:
-
setId
-
setType
-