Package com.xebialabs.xlrelease.builder
Class TaskBuilder<T extends com.xebialabs.xlrelease.domain.Task,S extends TaskBuilder<T,S>>
java.lang.Object
com.xebialabs.xlrelease.builder.TaskBuilder<T,S>
- Type Parameters:
T- the type of task being builtS- the "self-type" of the builder (used to conserve specificity when chaining calls)
- Direct Known Subclasses:
BaseScriptTaskBuilder,ContainerTaskBuilder,CreateReleaseTaskBuilder,DefaultTaskBuilder,GateTaskBuilder,NotificationTaskBuilder,TaskGroupBuilder,UserInputTaskBuilder
public abstract class TaskBuilder<T extends com.xebialabs.xlrelease.domain.Task,S extends TaskBuilder<T,S>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tbuild()isLocked()static ContainerTaskBuildernewContainerTask(String type) static CreateReleaseTaskBuilderstatic CustomScriptTaskBuildernewCustomScript(String scriptDefinitionType) static CustomScriptTaskBuildernewCustomScript(String scriptDefinitionType, String type) static GateTaskBuilderstatic NotificationTaskBuilderstatic ParallelGroupBuilderstatic RemoteScriptExecutionBuildernewRemoteExecution(String type) static ScriptTaskBuilderstatic SequentialGroupBuilderstatic DefaultTaskBuildernewTask()static UserInputTaskBuilderstatic com.xebialabs.xlrelease.domain.PythonScriptpythonScript(com.xebialabs.xlrelease.domain.CustomScriptTask task) withAttachments(com.xebialabs.xlrelease.domain.Attachment... attachments) withCheckAttributes(boolean check) withComments(com.xebialabs.xlrelease.domain.Comment... comments) withContainer(com.xebialabs.xlrelease.domain.TaskContainer item) withDelayDuringBlackout(boolean delayDuringBlackout) withDescription(String description) withDueDate(Date dueDate) withDueSoonNotified(boolean isNotified) withEndDate(Date endDate) withFacets(com.xebialabs.xlrelease.domain.facet.Facet... facets) withFailureHandler(String script) withFailuresCount(int failuresCount) withFlagComment(String flagComment) withFlagStatus(com.xebialabs.xlrelease.domain.status.FlagStatus flagStatus) withIdAndTitle(String id) withLocked(boolean locked) withOriginalScheduledStartDate(Date originalScheduledStartDate) withOverdueNotified(boolean isNotified) withPlannedDuration(Integer plannedDuration) withPrecondition(String script) withScheduledStartDate(Date scheduledStartDate) withStartDate(Date startDate) withStatus(com.xebialabs.xlrelease.domain.status.TaskStatus status) withTaskFailureHandlerEnabled(boolean enabled) withTaskRecoverOp(com.xebialabs.xlrelease.domain.recover.TaskRecoverOp recoverOp) withVariableMapping(Map<String, String> variableMapping) withWaitForScheduledStartDate(boolean waitForScheduledStartDate) withWatchers(Set<String> watchers)
-
Constructor Details
-
TaskBuilder
public TaskBuilder()
-
-
Method Details
-
newTask
-
newGateTask
-
newNotificationTask
-
newScriptTask
-
newParallelGroup
-
newSequentialGroup
-
newCustomScript
-
newContainerTask
-
newRemoteExecution
-
pythonScript
public static com.xebialabs.xlrelease.domain.PythonScript pythonScript(com.xebialabs.xlrelease.domain.CustomScriptTask task) -
newCustomScript
-
newUserInputTask
-
newCreateReleaseTask
-
withId
-
withTitle
-
withIdAndTitle
-
withStatus
-
withFlagStatus
-
withFlagComment
-
withOwner
-
withTeam
-
withContainer
-
withDescription
-
withDueDate
-
withStartDate
-
withScheduledStartDate
-
withOriginalScheduledStartDate
-
withEndDate
-
withPlannedDuration
-
withComments
-
withOverdueNotified
-
withDueSoonNotified
-
withWaitForScheduledStartDate
-
withDelayDuringBlackout
-
beenPostponedDueToBlackout
-
withAttachments
-
withFailuresCount
-
beenDelayed
-
beenFlagged
-
withPrecondition
-
withCheckAttributes
-
beenPostponedUntilEnvironmentsAreReserved
-
withFailureHandler
-
withTaskFailureHandlerEnabled
-
withTaskRecoverOp
-
withVariableMapping
-
withTags
-
withLocked
-
isLocked
-
withFacets
-
withWatchers
-
completed
-
build
-