Class NotFoundIndexable
- java.lang.Object
-
- com.broadleafcommerce.search.api.domain.NotFoundIndexable
-
-
Constructor Summary
Constructors Constructor Description NotFoundIndexable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetId()Returns the identifier for this object.Map<String,Object>getJsonMap()The raw JSON map representing the Indexable object.List<Translation>getTranslations()Any translations present for this Indexable object.IndexableTypegetType()Provides a type or "namespace" for documents that are co-mingled in an index.booleanisNotFound()Returns true if the item was not found when querying the service, otherwise false.voidsetId(Object id)voidsetType(IndexableType type)
-
-
-
Method Detail
-
getId
public Object getId()
Description copied from interface:IndexableReturns the identifier for this object. Typically a ULID, UUID, Long, or BigDecimal.
-
getType
public IndexableType 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
public Map<String,Object> 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
public List<Translation> 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
public void setId(Object id)
-
setType
public void setType(IndexableType type)
-
-