mirror of
https://github.com/linuxserver/davos.git
synced 2026-04-20 00:01:51 +08:00
Changed method signature of TransferStrategy
This commit is contained in:
parent
b997da42db
commit
455b074bd4
@ -1,15 +0,0 @@
|
||||
package io.linuxserver.davos.schedule.workflow.transfer;
|
||||
|
||||
import io.linuxserver.davos.transfer.ftp.connection.Connection;
|
||||
|
||||
public class FileRecursiveTransferStrategy extends TransferStrategy {
|
||||
|
||||
public FileRecursiveTransferStrategy(Connection connection) {
|
||||
super(connection);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transfer(String from, String to) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
package io.linuxserver.davos.schedule.workflow.transfer;
|
||||
|
||||
import io.linuxserver.davos.transfer.ftp.FTPFile;
|
||||
import io.linuxserver.davos.transfer.ftp.connection.Connection;
|
||||
|
||||
public class FilesAndFoldersTranferStrategies extends TransferStrategy {
|
||||
@ -9,7 +10,7 @@ public class FilesAndFoldersTranferStrategies extends TransferStrategy {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transfer(String from, String to) {
|
||||
public void transfer(FTPFile fileToTransfer, String destination) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package io.linuxserver.davos.schedule.workflow.transfer;
|
||||
|
||||
import io.linuxserver.davos.transfer.ftp.FTPFile;
|
||||
import io.linuxserver.davos.transfer.ftp.connection.Connection;
|
||||
|
||||
public class FilesOnlyTransferStrategy extends TransferStrategy {
|
||||
@ -9,7 +10,7 @@ public class FilesOnlyTransferStrategy extends TransferStrategy {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transfer(String from, String to) {
|
||||
public void transfer(FTPFile fileToTransfer, String destination) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package io.linuxserver.davos.schedule.workflow.transfer;
|
||||
|
||||
import io.linuxserver.davos.transfer.ftp.FTPFile;
|
||||
import io.linuxserver.davos.transfer.ftp.connection.Connection;
|
||||
|
||||
public abstract class TransferStrategy {
|
||||
@ -10,5 +11,5 @@ public abstract class TransferStrategy {
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
public abstract void transfer(String from, String to);
|
||||
public abstract void transfer(FTPFile fileToTransfer, String destination);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user