Class DataFeedProcess
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
Actually running this process is done via DataFeedProcessExecution
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Data feed processes always target data for a specific application.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.TheIDs
of theDataFeedPublicationConfiguration
s 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 fromDefaultDataFeedProcessTypes
describing what type of data feed process this is.int
hashCode()
boolean
Describes whether newDataFeedProcessExecution
s of this process can be started.void
setApplicationId
(String applicationId) Data feed processes always target data for a specific application.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setDataFeedPublicationConfigurationIds
(List<String> dataFeedPublicationConfigurationIds) TheIDs
of theDataFeedPublicationConfiguration
s to which data queried by this process will be published.void
setDescription
(String description) A user-friendly description explaining what the process is for.void
setDisplayName
(String displayName) A user-friendly display name for the process.void
setEnabled
(boolean enabled) Describes whether newDataFeedProcessExecution
s of this process can be started.void
setFilterString
(String filterString) (Optional) A (by default, RSQL) filter string that should be used to filter all products that are fetched by this process.void
The context ID of this process.void
setProcessType
(String processType) Should contain a value fromDefaultDataFeedProcessTypes
describing 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 fromDefaultDataFeedProcessTypes
describing what type of data feed process this is.This field is immutable after creation.
- Returns:
- the type of this data feed process
-
getDataFeedPublicationConfigurationIds
TheIDs
of theDataFeedPublicationConfiguration
s 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 newDataFeedProcessExecution
s 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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information 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 fromDefaultDataFeedProcessTypes
describing 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) TheIDs
of theDataFeedPublicationConfiguration
s 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 newDataFeedProcessExecution
s 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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-