Interface UploadToServer

All Known Implementing Classes:
AbstractModifiableLayer, AbstractOsmDataLayer, AdvancedPreference.UnclearableOsmDataLayer, CorrelationSupportLayer, GeoImageLayer, GpxLayer, GpxRouteLayer, NoteLayer, OsmDataLayer, WikimediaCommonsLayer

public interface UploadToServer
Interface for layers that can upload data.
Since:
9751
See Also:
  • Method Details

    • isUploadable

      boolean isUploadable()
      Determines if the layer is able to upload data and implements the UploadToServer interface. A layer that implements the UploadToServer interface must return true.
      Returns:
      true if the layer is able to upload data; false, otherwise
    • requiresUploadToServer

      Determines if the data managed by this layer needs to be uploaded to the server because it contains modified data.
      Returns:
      true if the data managed by this layer needs to be uploaded to the server because it contains modified data; false, otherwise
    • isUploadDiscouraged

      Determines if upload of data managed by this layer is discouraged. This feature allows to use "private" data layers.
      Returns:
      true if upload is discouraged for this layer; false, otherwise
    • isUploadInProgress

      Determines if upload of data managed by this layer is currently in progress.
      Returns:
      true if upload is in progress
      Since:
      13434
    • onPostUploadToServer

      Initializes the layer after a successful upload to the server.
    • createUploadTask

      Creates a new AbstractIOTask for uploading data.
      Parameters:
      monitor - The progress monitor
      Returns:
      a new AbstractIOTask for uploading data, or null if not applicable
    • getUploadDialog

      Returns the upload dialog for this layer.
      Returns:
      the upload dialog for this layer, or null if not applicable