Commit 04e72d48 authored by Jasper Koehorst's avatar Jasper Koehorst
Browse files

force enabled

parent 7ade428e
...@@ -239,8 +239,8 @@ public class Export extends Div { ...@@ -239,8 +239,8 @@ public class Export extends Div {
File yamlPath = new File("/" + irodsAccount.getZone() + "/home/" + irodsAccount.getUserName() + "/export/" + yamlFile.getName()); File yamlPath = new File("/" + irodsAccount.getZone() + "/home/" + irodsAccount.getUserName() + "/export/" + yamlFile.getName());
File jobPath = new File("/" + irodsAccount.getZone() + "/home/" + irodsAccount.getUserName() + "/export/" + jobFile.getName()); File jobPath = new File("/" + irodsAccount.getZone() + "/home/" + irodsAccount.getUserName() + "/export/" + jobFile.getName());
Data.uploadIrodsFile(irodsAccount, yamlFile, yamlPath); Data.uploadIrodsFile(irodsAccount, yamlFile, yamlPath, true);
Data.uploadIrodsFile(irodsAccount, jobFile, jobPath); Data.uploadIrodsFile(irodsAccount, jobFile, jobPath, true);
// Delete uploaded files // Delete uploaded files
while (yamlFile.exists()) while (yamlFile.exists())
...@@ -249,11 +249,14 @@ public class Export extends Div { ...@@ -249,11 +249,14 @@ public class Export extends Div {
while (jobFile.exists()) while (jobFile.exists())
jobFile.delete(); jobFile.delete();
// Add access rights to the technicians group // Add access rights to the technicians group
IRODSFileSystem irodsFileSystem = new IRODSFileSystem(); IRODSFileSystem irodsFileSystem = new IRODSFileSystem();
IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory(); IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory();
DataObjectAO dataObjectAO = accessObjectFactory.getDataObjectAO(irodsAccount); DataObjectAO dataObjectAO = accessObjectFactory.getDataObjectAO(irodsAccount);
dataObjectAO.setAccessPermissionOwn(irodsAccount.getZone(), yamlPath.getAbsolutePath(), "technicians"); dataObjectAO.setAccessPermissionOwn(irodsAccount.getZone(), yamlPath.getAbsolutePath(), "technicians");
dataObjectAO.setAccessPermissionOwn(irodsAccount.getZone(), jobPath.getAbsolutePath(), "technicians");
// Add metadata tag... // Add metadata tag...
dataObjectAO = irodsFileSystem.getIRODSAccessObjectFactory().getDataObjectAO(credentials.getIrodsAccount()); dataObjectAO = irodsFileSystem.getIRODSAccessObjectFactory().getDataObjectAO(credentials.getIrodsAccount());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment