Interface TransportOperation
- All Superinterfaces:
MultisiteApiOperation
,Serializable
This interface extends
MultisiteApiOperation
and defines methods
for setting the source and target of a transport operation.-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull TransportOperation
source
(@NotNull de.espirit.firstspirit.access.Language language) Sets the source language for the transport operation.@NotNull TransportOperation
source
(@NotNull de.espirit.firstspirit.access.Language language, @Nullable de.espirit.firstspirit.storage.Revision revision) Sets the source language and revision for the transport operation.@NotNull TransportOperation
target
(@NotNull de.espirit.firstspirit.access.project.Project project) Sets the target project for the transport operation.
-
Method Details
-
source
@Contract("_ -> this") @NotNull default @NotNull TransportOperation source(@NotNull @NotNull de.espirit.firstspirit.access.Language language) Sets the source language for the transport operation.- Parameters:
language
- theLanguage
to be used as the source.- Returns:
- the current
TransportOperation
instance for method chaining.
-
source
@Contract("_, _ -> this") @NotNull @NotNull TransportOperation source(@NotNull @NotNull de.espirit.firstspirit.access.Language language, @Nullable @Nullable de.espirit.firstspirit.storage.Revision revision) Sets the source language and revision for the transport operation.- Parameters:
language
- theLanguage
to be used as the source.revision
- theRevision
to be used as the source. Ifnull
, the latest revision will be used.- Returns:
- the current
TransportOperation
instance for method chaining.
-
target
@Contract("_ -> this") @NotNull @NotNull TransportOperation target(@NotNull @NotNull de.espirit.firstspirit.access.project.Project project) Sets the target project for the transport operation.- Parameters:
project
- theProject
to be used as the target.- Returns:
- the current
TransportOperation
instance for method chaining.
-