Interface TransportOperation

All Superinterfaces:
MultisiteApiOperation, Serializable

public interface TransportOperation extends MultisiteApiOperation
This interface extends MultisiteApiOperation and defines methods for setting the source and target of a transport operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull TransportOperation
    source(@NotNull de.espirit.firstspirit.access.Language language)
    Sets the source language for the transport operation.
    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.
    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 - the Language 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 - the Language to be used as the source.
      revision - the Revision to be used as the source. If null, 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 - the Project to be used as the target.
      Returns:
      the current TransportOperation instance for method chaining.