Class PluginTaskUpdater
java.lang.Object
com.xebialabs.xlrelease.domain.tasks.task.DefaultTaskUpdater
com.xebialabs.xlrelease.domain.tasks.plugin.PluginTaskUpdater
- All Implemented Interfaces:
TaskUpdater
Merges a
PluginTaskConfiguration's input/output properties from an incoming REST update
into the persisted task, mirroring CustomScriptTaskUpdater's handling of PythonScript.
Without this, DefaultTaskUpdater (the fallback for any task type with no registered
updater) never touches PluginTask.getConfiguration() at all - a release author's edits to a
plugin task's input properties (or its output properties, e.g. from an "edit and rerun" flow) would
be silently dropped by the standard update-task REST endpoint, surfacing only as "the value I typed
didn't stick" with no error.
-
Field Summary
Fields inherited from class com.xebialabs.xlrelease.domain.tasks.task.DefaultTaskUpdater
taskConcurrencyService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends com.xebialabs.xlrelease.domain.Task> com.xebialabs.xlrelease.domain.Changesupdate(com.xebialabs.xlrelease.domain.Task original, com.xebialabs.xlrelease.domain.Task updated, Set<TaskUpdateDirective> updateDirectives) Methods inherited from class com.xebialabs.xlrelease.domain.tasks.task.DefaultTaskUpdater
hasDirectiveToUpdateAllProperties, updateVariableMapping
-
Constructor Details
-
PluginTaskUpdater
public PluginTaskUpdater()
-
-
Method Details
-
getTaskClass
- Specified by:
getTaskClassin interfaceTaskUpdater- Overrides:
getTaskClassin classDefaultTaskUpdater
-
update
public com.xebialabs.xlrelease.domain.Changes update(com.xebialabs.xlrelease.domain.Task original, com.xebialabs.xlrelease.domain.Task updated, Set<TaskUpdateDirective> updateDirectives) - Specified by:
updatein interfaceTaskUpdater- Overrides:
updatein classDefaultTaskUpdater
-