Class DataFeedPublication
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
DataFeedProcessExecution
that is specifically
interested in transforming data (which was already fetched in an earlier step of the execution)
and publishing it for one specific DataFeedPublicationConfiguration
.
Admin users should almost never be responsible for making direct CRUD requests on this entity. The system should be in charge of managing these records.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Should be copied fromDataFeedProcessExecution.getApplicationId()
.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.TheDataFeedProcessExecution.getId()
of theDataFeedProcessExecution
which this publication is for.The time at which this publication stopped processing.If errors are encountered during the run of this publication (ex:isContainsErrors()
is true), details should be added here.getId()
The context ID of this publication.The time at which this publication started processing.Should contain a value fromDefaultDataFeedPublicationStatuses
describing the current status of the publication.TheDataFeedPublicationConfiguration.getId()
of theDataFeedPublicationConfiguration
that this publication process will publish data to.int
hashCode()
boolean
A simple flag indicating whether the current publication encountered any errors.void
setApplicationId
(String applicationId) Should be copied fromDataFeedProcessExecution.getApplicationId()
.void
setContainsErrors
(boolean containsErrors) A simple flag indicating whether the current publication encountered any errors.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
setDataFeedProcessExecutionId
(String dataFeedProcessExecutionId) TheDataFeedProcessExecution.getId()
of theDataFeedProcessExecution
which this publication is for.void
setEndTime
(Instant endTime) The time at which this publication stopped processing.void
setErrorDetails
(List<String> errorDetails) If errors are encountered during the run of this publication (ex:isContainsErrors()
is true), details should be added here.void
The context ID of this publication.void
setStartTime
(Instant startTime) The time at which this publication started processing.void
Should contain a value fromDefaultDataFeedPublicationStatuses
describing the current status of the publication.void
setTargetDataFeedPublicationConfigurationId
(String targetDataFeedPublicationConfigurationId) TheDataFeedPublicationConfiguration.getId()
of theDataFeedPublicationConfiguration
that this publication process will publish data to.toString()
-
Constructor Details
-
DataFeedPublication
public DataFeedPublication()
-
-
Method Details
-
getId
The context ID of this publication.- Returns:
- the id of this data feed publication
-
getDataFeedProcessExecutionId
TheDataFeedProcessExecution.getId()
of theDataFeedProcessExecution
which this publication is for.- Returns:
- the ID of the data feed process execution this publication is for
-
getApplicationId
Should be copied fromDataFeedProcessExecution.getApplicationId()
.This may be useful for application filtration/visibility concerns specifically relating to
DataFeedPublication
.- Returns:
- value matching
DataFeedProcessExecution.getApplicationId()
-
getTargetDataFeedPublicationConfigurationId
TheDataFeedPublicationConfiguration.getId()
of theDataFeedPublicationConfiguration
that this publication process will publish data to.This will be one of the values from
DataFeedProcessExecution.getDataFeedPublicationConfigurationIds()
.- Returns:
- feed publication configuration ID that this publication will publish data to
-
getStartTime
The time at which this publication started processing.- Returns:
- the time at which this publication started processing
-
getEndTime
The time at which this publication stopped processing.- Returns:
- the time at which this publication stopped processing
-
getStatus
Should contain a value fromDefaultDataFeedPublicationStatuses
describing the current status of the publication.When this is being changed, be sure to update
getStartTime()
orgetEndTime()
if appropriate.- Returns:
- the current status of the publication
-
isContainsErrors
public boolean isContainsErrors()A simple flag indicating whether the current publication encountered any errors.- Returns:
- whether this publication experienced errors
- See Also:
-
getErrorDetails
If errors are encountered during the run of this publication (ex:isContainsErrors()
is true), details should be added here. Otherwise, this will be empty.- Returns:
- details about any errors experienced by this publication
- See Also:
-
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 publication.- Parameters:
id
- the id of this data feed publication
-
setDataFeedProcessExecutionId
TheDataFeedProcessExecution.getId()
of theDataFeedProcessExecution
which this publication is for.- Parameters:
dataFeedProcessExecutionId
- the ID of the data feed process execution this publication is for
-
setApplicationId
Should be copied fromDataFeedProcessExecution.getApplicationId()
.This may be useful for application filtration/visibility concerns specifically relating to
DataFeedPublication
.- Parameters:
applicationId
- value matchingDataFeedProcessExecution.getApplicationId()
-
setTargetDataFeedPublicationConfigurationId
public void setTargetDataFeedPublicationConfigurationId(String targetDataFeedPublicationConfigurationId) TheDataFeedPublicationConfiguration.getId()
of theDataFeedPublicationConfiguration
that this publication process will publish data to.This will be one of the values from
DataFeedProcessExecution.getDataFeedPublicationConfigurationIds()
.- Parameters:
targetDataFeedPublicationConfigurationId
- feed publication configuration ID that this publication will publish data to
-
setStartTime
The time at which this publication started processing.- Parameters:
startTime
- the time at which this publication started processing
-
setEndTime
The time at which this publication stopped processing.- Parameters:
endTime
- the time at which this publication stopped processing
-
setStatus
Should contain a value fromDefaultDataFeedPublicationStatuses
describing the current status of the publication.When this is being changed, be sure to update
getStartTime()
orgetEndTime()
if appropriate.- Parameters:
status
- the current status of the publication
-
setContainsErrors
public void setContainsErrors(boolean containsErrors) A simple flag indicating whether the current publication encountered any errors.- Parameters:
containsErrors
- whether this publication experienced errors- See Also:
-
setErrorDetails
If errors are encountered during the run of this publication (ex:isContainsErrors()
is true), details should be added here. Otherwise, this will be empty.- Parameters:
errorDetails
- details about any errors experienced by this publication- See Also:
-
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
-