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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanShould be copied fromDataFeedProcessExecution.getApplicationId().com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.TheDataFeedProcessExecution.getId()of theDataFeedProcessExecutionwhich 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 fromDefaultDataFeedPublicationStatusesdescribing the current status of the publication.TheDataFeedPublicationConfiguration.getId()of theDataFeedPublicationConfigurationthat this publication process will publish data to.inthashCode()booleanA simple flag indicating whether the current publication encountered any errors.voidsetApplicationId(String applicationId) Should be copied fromDataFeedProcessExecution.getApplicationId().voidsetContainsErrors(boolean containsErrors) A simple flag indicating whether the current publication encountered any errors.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDataFeedProcessExecutionId(String dataFeedProcessExecutionId) TheDataFeedProcessExecution.getId()of theDataFeedProcessExecutionwhich this publication is for.voidsetEndTime(Instant endTime) The time at which this publication stopped processing.voidsetErrorDetails(List<String> errorDetails) If errors are encountered during the run of this publication (ex:isContainsErrors()is true), details should be added here.voidThe context ID of this publication.voidsetStartTime(Instant startTime) The time at which this publication started processing.voidShould contain a value fromDefaultDataFeedPublicationStatusesdescribing the current status of the publication.voidsetTargetDataFeedPublicationConfigurationId(String targetDataFeedPublicationConfigurationId) TheDataFeedPublicationConfiguration.getId()of theDataFeedPublicationConfigurationthat 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 theDataFeedProcessExecutionwhich 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 theDataFeedPublicationConfigurationthat 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 fromDefaultDataFeedPublicationStatusesdescribing 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 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 publication.- Parameters:
id- the id of this data feed publication
-
setDataFeedProcessExecutionId
TheDataFeedProcessExecution.getId()of theDataFeedProcessExecutionwhich 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 theDataFeedPublicationConfigurationthat 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 fromDefaultDataFeedPublicationStatusesdescribing 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 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
-