Class ReindexRequest
java.lang.Object
com.broadleafcommerce.search.index.core.domain.ReindexRequest
- All Implemented Interfaces:
Serializable
Payload object representing a request to fully reindex an indexable type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReindexRequest(String name, com.broadleafcommerce.search.api.type.IndexableType type, boolean enablePartialIndexWithFilters, Instant startDate, Instant endDate, boolean useAllTenants) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA date used to filter the reindex of items.getName()The requested name to identify the requested reindex to administrators.A date used to filter the reindex of items.com.broadleafcommerce.search.api.type.IndexableTypegetType()TheIndexableTypefor which the reindex is requested.inthashCode()booleanDetermines if the current reindex request has potential filters to limit the items indexed.booleanA toggle used to filter the reindex of items.voidsetEnablePartialIndexWithFilters(boolean enablePartialIndexWithFilters) Determines if the current reindex request has potential filters to limit the items indexed.voidsetEndDate(Instant endDate) A date used to filter the reindex of items.voidThe requested name to identify the requested reindex to administrators.voidsetStartDate(Instant startDate) A date used to filter the reindex of items.voidsetType(com.broadleafcommerce.search.api.type.IndexableType type) TheIndexableTypefor which the reindex is requested.voidsetUseAllTenants(boolean useAllTenants) A toggle used to filter the reindex of items.toString()
-
Constructor Details
-
ReindexRequest
-
ReindexRequest
public ReindexRequest()
-
-
Method Details
-
getName
The requested name to identify the requested reindex to administrators.If this is left
null, a name will be generated with the following format:$type + " Reindex - " + $timestamp- Returns:
- the requested name to identify the requested reindex to administrators
-
getType
public com.broadleafcommerce.search.api.type.IndexableType getType()TheIndexableTypefor which the reindex is requested.- Returns:
- the type for which the reindex is requested
-
isEnablePartialIndexWithFilters
public boolean isEnablePartialIndexWithFilters()Determines if the current reindex request has potential filters to limit the items indexed. Turns the reindex request into a partial reindex based on the provided filters. -
getStartDate
A date used to filter the reindex of items. This is used to determine the minimum date when filtering items to be indexed. -
getEndDate
A date used to filter the reindex of items. This is used to determine the maximum date when filtering items to be indexed. -
isUseAllTenants
public boolean isUseAllTenants()A toggle used to filter the reindex of items. This is used to determine if the current Tenant should be used to limit the items indexed. True if the tenant is not taken into account, false otherwise. -
setName
The requested name to identify the requested reindex to administrators.If this is left
null, a name will be generated with the following format:$type + " Reindex - " + $timestamp- Parameters:
type- the requested name to identify the requested reindex to administrators
-
setType
public void setType(com.broadleafcommerce.search.api.type.IndexableType type) TheIndexableTypefor which the reindex is requested.- Parameters:
type- the type for which the reindex is requested
-
setEnablePartialIndexWithFilters
public void setEnablePartialIndexWithFilters(boolean enablePartialIndexWithFilters) Determines if the current reindex request has potential filters to limit the items indexed. Turns the reindex request into a partial reindex based on the provided filters. -
setStartDate
A date used to filter the reindex of items. This is used to determine the minimum date when filtering items to be indexed. -
setEndDate
A date used to filter the reindex of items. This is used to determine the maximum date when filtering items to be indexed. -
setUseAllTenants
public void setUseAllTenants(boolean useAllTenants) A toggle used to filter the reindex of items. This is used to determine if the current Tenant should be used to limit the items indexed. True if the tenant is not taken into account, false otherwise. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-