Package io.vertigo.studio.notebook.task
Class TaskSketchBuilder
java.lang.Object
io.vertigo.studio.notebook.task.TaskSketchBuilder
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<TaskSketch>
public final class TaskSketchBuilder
extends Object
implements io.vertigo.core.lang.Builder<TaskSketch>
Builder of taskSketch.
- Author:
- fconstantin, pchretien
-
Method Summary
Modifier and TypeMethodDescriptionaddInAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality) Adds an input attribute.build()withDataSpace(String dataSpace) Sets the dataSpacewithEngine(String taskEngineClassName) Defines the engine, used at runtime to process the task.withOutAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality) Adds an output attribute.withPackageName(String packageName) withRequest(String request)
-
Method Details
-
withEngine
Defines the engine, used at runtime to process the task.- Parameters:
taskEngineClassName- Class running the task- Returns:
- this builder
-
withRequest
- Parameters:
request- the request used to configure the task. (ldap request, sql request...)- Returns:
- this builder
-
withPackageName
- Parameters:
packageName- the name of the package- Returns:
- this builder
-
withDataSpace
Sets the dataSpace- Parameters:
dataSpace- the dataSpace- Returns:
- this builder
-
addInAttribute
public TaskSketchBuilder addInAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality) Adds an input attribute.- Parameters:
attributeName- the name of the attributedomainSketch- the domain of the attributecardinality- cadinality (one, optional, many)- Returns:
- this builder
-
withOutAttribute
public TaskSketchBuilder withOutAttribute(String attributeName, DomainSketch domainSketch, io.vertigo.core.lang.Cardinality cardinality) Adds an output attribute.- Parameters:
attributeName- the name of the attributedomainSketch- the domain of the attributecardinality- cadinality (one, optional, many)- Returns:
- this builder
-
build
- Specified by:
buildin interfaceio.vertigo.core.lang.Builder<TaskSketch>
-