Class DataFeedProcess
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
Actually running this process is done via DataFeedProcessExecution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanData feed processes always target data for a specific application.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.TheIDsof theDataFeedPublicationConfigurations to which data queried by this process will be published.A user-friendly description explaining what the process is for.A user-friendly display name for the process.(Optional) A (by default, RSQL) filter string that should be used to filter all products that are fetched by this process.getId()The context ID of this process.Should contain a value fromDefaultDataFeedProcessTypesdescribing what type of data feed process this is.inthashCode()booleanDescribes whether newDataFeedProcessExecutions of this process can be started.voidsetApplicationId(String applicationId) Data feed processes always target data for a specific application.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDataFeedPublicationConfigurationIds(List<String> dataFeedPublicationConfigurationIds) TheIDsof theDataFeedPublicationConfigurations to which data queried by this process will be published.voidsetDescription(String description) A user-friendly description explaining what the process is for.voidsetDisplayName(String displayName) A user-friendly display name for the process.voidsetEnabled(boolean enabled) Describes whether newDataFeedProcessExecutions of this process can be started.voidsetFilterString(String filterString) (Optional) A (by default, RSQL) filter string that should be used to filter all products that are fetched by this process.voidThe context ID of this process.voidsetProcessType(String processType) Should contain a value fromDefaultDataFeedProcessTypesdescribing what type of data feed process this is.toString()
-
Constructor Details
-
DataFeedProcess
public DataFeedProcess()
-
-
Method Details
-
getId
The context ID of this process.- Returns:
- the id of this data feed process
-
getDisplayName
A user-friendly display name for the process.- Returns:
- a user-friendly display name for this process
-
getDescription
A user-friendly description explaining what the process is for.- Returns:
- a user-friendly description for this process
-
getProcessType
Should contain a value fromDefaultDataFeedProcessTypesdescribing what type of data feed process this is.This field is immutable after creation.
- Returns:
- the type of this data feed process
-
getDataFeedPublicationConfigurationIds
TheIDsof theDataFeedPublicationConfigurations to which data queried by this process will be published.Note that all of these must be compatible with the
getProcessType().Note that all of these must be compatible with the
getApplicationId()and tenant ID of this process.This can never be empty (at least one element).
- Returns:
- ids of feed publication configurations to which data queried by this process will be published
-
getApplicationId
Data feed processes always target data for a specific application. This is because some references in feed fields (ex: product links) are application-specific.This field should contain the context ID of the application whose data should be queried + published.
This field is immutable after creation.
- Returns:
- id of the application whose data should be queried + published by this process
-
isEnabled
public boolean isEnabled()Describes whether newDataFeedProcessExecutions of this process can be started.This is particularly useful when making changes to the configuration of a data feed process. When disabled, current executions can complete, but future execution will be paused until the process is re-enabled.
- Returns:
- whether this process should be enabled
-
getFilterString
(Optional) A (by default, RSQL) filter string that should be used to filter all products that are fetched by this process. If provided, any request to fetch products for this data feed process should use these filters to restrict the results that are included. -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
The context ID of this process.- Parameters:
id- the id of this data feed process
-
setDisplayName
A user-friendly display name for the process.- Parameters:
displayName- a user-friendly display name for this process
-
setDescription
A user-friendly description explaining what the process is for.- Parameters:
description- a user-friendly description for this process
-
setProcessType
Should contain a value fromDefaultDataFeedProcessTypesdescribing what type of data feed process this is.This field is immutable after creation.
- Parameters:
processType- the type of this data feed process
-
setDataFeedPublicationConfigurationIds
public void setDataFeedPublicationConfigurationIds(List<String> dataFeedPublicationConfigurationIds) TheIDsof theDataFeedPublicationConfigurations to which data queried by this process will be published.Note that all of these must be compatible with the
getProcessType().Note that all of these must be compatible with the
getApplicationId()and tenant ID of this process.This can never be empty (at least one element).
- Parameters:
dataFeedPublicationConfigurationIds- ids of feed publication configurations to which data queried by this process will be published
-
setApplicationId
Data feed processes always target data for a specific application. This is because some references in feed fields (ex: product links) are application-specific.This field should contain the context ID of the application whose data should be queried + published.
This field is immutable after creation.
- Parameters:
applicationId- id of the application whose data should be queried + published by this process
-
setEnabled
public void setEnabled(boolean enabled) Describes whether newDataFeedProcessExecutions of this process can be started.This is particularly useful when making changes to the configuration of a data feed process. When disabled, current executions can complete, but future execution will be paused until the process is re-enabled.
- Parameters:
enabled- whether this process should be enabled
-
setFilterString
(Optional) A (by default, RSQL) filter string that should be used to filter all products that are fetched by this process. If provided, any request to fetch products for this data feed process should use these filters to restrict the results that are included. -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-