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 Object
getId()
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.IndexableType
getType()
Provides a type or "namespace" for documents that are co-mingled in an index.boolean
isNotFound()
Returns true if the item was not found when querying the service, otherwise false.void
setId(Object id)
void
setType(IndexableType type)
-
-
-
Method Detail
-
getId
public Object getId()
Description copied from interface:Indexable
Returns the identifier for this object. Typically a ULID, UUID, Long, or BigDecimal.
-
getType
public IndexableType getType()
Description copied from interface:Indexable
Provides 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:Indexable
The raw JSON map representing the Indexable object.- Specified by:
getJsonMap
in interfaceIndexable<Object>
- Returns:
- raw JSON map representing the Indexable object
-
getTranslations
public List<Translation> getTranslations()
Description copied from interface:Indexable
Any translations present for this Indexable object. If the indexable type is not translatable, this will be empty.- Specified by:
getTranslations
in interfaceIndexable<Object>
- Returns:
- any translations present for this Indexable object
-
isNotFound
public boolean isNotFound()
Description copied from interface:Indexable
Returns 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:
isNotFound
in interfaceIndexable<Object>
- Returns:
-
setId
public void setId(Object id)
-
setType
public void setType(IndexableType type)
-
-