Class TaskDefinitionBuilder
java.lang.Object
io.vertigo.datamodel.task.definitions.TaskDefinitionBuilder
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<TaskDefinition>
public final class TaskDefinitionBuilder
extends Object
implements io.vertigo.core.lang.Builder<TaskDefinition>
Builder of taskDefinition.
- Author:
- fconstantin, pchretien
-
Method Summary
Modifier and TypeMethodDescriptionaddInAttribute(String attributeName, SmartTypeDefinition smartTypeDefinition, io.vertigo.core.lang.Cardinality cardinality) Adds an input attribute.build()withDataSpace(String dataSpace) Sets the dataSpacewithEngine(Class<? extends TaskEngine> taskEngineClass) Defines the engine, used at runtime to process the task.withOutAttribute(String attributeName, SmartTypeDefinition smartTypeDefinition, 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:
taskEngineClass- 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 TaskDefinitionBuilder addInAttribute(String attributeName, SmartTypeDefinition smartTypeDefinition, io.vertigo.core.lang.Cardinality cardinality) Adds an input attribute.- Parameters:
attributeName- the name of the attributecardinality- cadinality (one, optional, many)domain- the domain of the attribute- Returns:
- this builder
-
withOutAttribute
public TaskDefinitionBuilder withOutAttribute(String attributeName, SmartTypeDefinition smartTypeDefinition, io.vertigo.core.lang.Cardinality cardinality) Adds an output attribute.- Parameters:
attributeName- the name of the attributecardinality- cardinality of the attribute seeCardinalitysmartType- the smartType of the attribute- Returns:
- this builder
-
build
- Specified by:
buildin interfaceio.vertigo.core.lang.Builder<TaskDefinition>
-