diff options
author | Simon Rettberg | 2019-02-22 17:28:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-22 17:28:41 +0100 |
commit | a143ba9f0a98e530178b494cf7542a71e7a7f8fc (patch) | |
tree | 26eb401f9f189b5fa15b1d995fee25c7151eb0f4 /dozentenmodul | |
parent | [client] disable custom address field on start (diff) | |
download | tutor-module-a143ba9f0a98e530178b494cf7542a71e7a7f8fc.tar.gz tutor-module-a143ba9f0a98e530178b494cf7542a71e7a7f8fc.tar.xz tutor-module-a143ba9f0a98e530178b494cf7542a71e7a7f8fc.zip |
[*] Make ServerSideCopy configurable
Options are OFF, ON, AUTO, USER
AUTO enables it as soon as upload speed falls below 10MiB/s
USER enables a checkbox in the client to toggle it for each individual
upload
Diffstat (limited to 'dozentenmodul')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UploadPanel.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UploadPanel.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UploadPanel.java index ea339651..df396b55 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UploadPanel.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/UploadPanel.java @@ -8,6 +8,7 @@ import javax.swing.JCheckBox; import org.apache.log4j.Logger; import org.apache.thrift.TException; +import org.openslx.bwlp.thrift.iface.SscMode; import org.openslx.bwlp.thrift.iface.TAuthorizationException; import org.openslx.bwlp.thrift.iface.TInvalidTokenException; import org.openslx.bwlp.thrift.iface.UploadOptions; @@ -34,7 +35,8 @@ public class UploadPanel extends TransferPanel { public UploadPanel(UploadWizardState state) { super(state.upload.getUploadTask(), state.name, state.diskFile.getName()); - if (!Session.hasFeature(Feature.SERVER_SIDE_COPY)) { + if (!Session.hasFeature(Feature.SERVER_SIDE_COPY) + || Session.getSatelliteConfig().serverSideCopy != SscMode.USER) { chkServerSideCopy = null; } else { chkServerSideCopy = new JCheckBox("ServerSide Copy"); |