summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/GUI/FTPUploader_GUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'Dozentenmodul/src/GUI/FTPUploader_GUI.java')
-rw-r--r--Dozentenmodul/src/GUI/FTPUploader_GUI.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/Dozentenmodul/src/GUI/FTPUploader_GUI.java b/Dozentenmodul/src/GUI/FTPUploader_GUI.java
index 1a76b7b3..078f8075 100644
--- a/Dozentenmodul/src/GUI/FTPUploader_GUI.java
+++ b/Dozentenmodul/src/GUI/FTPUploader_GUI.java
@@ -259,6 +259,20 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
JSeparator separator_1 = new JSeparator();
separator_1.setBounds(0, 627, 597, 2);
contentPanel.add(separator_1);
+
+ JButton btnCopyFileTo = new JButton("Copy File to Prod");
+ btnCopyFileTo.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ try {
+ client.startFileCopy(user.path+"/"+uploadFile.getName());
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ }
+ });
+ btnCopyFileTo.setBounds(10, 375, 264, 23);
+ contentPanel.add(btnCopyFileTo);
{
JPanel buttonPane = new JPanel();
buttonPane.setBackground(UIManager.getColor("Button.background"));
@@ -276,7 +290,7 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
{
try {
client.DeleteFtpUser(user.userName);
-
+ thrift.closeThriftConnection();
} catch (TException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
@@ -388,6 +402,9 @@ public class FTPUploader_GUI extends JFrame implements PropertyChangeListener {
public boolean writeData(){
try {
+
+
+
client.writeVLdata(Image.image.getImagename(), person.verantowrtlicher.getVorname(), person.verantowrtlicher.getName(), person.verantowrtlicher.getHochschule(), person.verantowrtlicher.getEMail(), person.verantowrtlicher.getTel(), person.verantowrtlicher.getFakultät(), Image.image.isLicensed(), Image.image.isInternet(), Image.image.getRam(), Image.image.getCpu());
} catch (TException e) {
// TODO Auto-generated catch block