TaskConfig

public class TaskConfig implements Serializable

Represents a single task configuration. Task configuration is a list of TaskConfigSteps that are taken during task execution. A single step can be a filter(whose conditions must be meet) or a data store that must be fetched in order to execute the task successfully.

Methods

add

public TaskConfig add(TaskConfigStep... configSteps)

Stores the given configuration steps.

Parameters:
  • configSteps – the configuration steps, not null
Returns:

this object

addAll

public TaskConfig addAll(SortedSet<TaskConfigStep> set)

Stores the given configuration steps

Parameters:
  • set – the configuration steps
Returns:

this object

equals

public boolean equals(Object obj)

getDataSource

public DataSource getDataSource(Long providerId, Long objectId, String objectType)

Returns the data source for the given information.

Parameters:
  • providerId – the provider ID
  • objectId – the object ID
  • objectType – the object type
Returns:

the object matching the given data.

getDataSources

public List<DataSource> getDataSources()

getDataSources

public SortedSet<DataSource> getDataSources(Long providerId)

getFilters

public List<FilterSet> getFilters()

getSteps

public SortedSet<TaskConfigStep> getSteps()

hashCode

public int hashCode()

removeAll

public TaskConfig removeAll()

Clears filter sets and data sources for this object.

Returns:this object

removeDataSources

public TaskConfig removeDataSources()

Clears data sources for this object.

Returns:this object

removeFilterSets

public TaskConfig removeFilterSets()

Clears filter sets for this object.

Returns:this object

setDataSources

public void setDataSources(List<DataSource> dataSources)

setFilters

public void setFilters(List<FilterSet> filters)

toString

public String toString()