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 {
File yamlPath = new File("/" + irodsAccount.getZone() + "/home/" + irodsAccount.getUserName() + "/export/" + yamlFile.getName());
File jobPath = new File("/" + irodsAccount.getZone() + "/home/" + irodsAccount.getUserName() + "/export/" + jobFile.getName());
Data.uploadIrodsFile(irodsAccount, yamlFile, yamlPath);
Data.uploadIrodsFile(irodsAccount, jobFile, jobPath);
Data.uploadIrodsFile(irodsAccount, yamlFile, yamlPath, true);
Data.uploadIrodsFile(irodsAccount, jobFile, jobPath, true);
// Delete uploaded files
while (yamlFile.exists())
......@@ -249,11 +249,14 @@ public class Export extends Div {
while (jobFile.exists())
jobFile.delete();
// Add access rights to the technicians group
IRODSFileSystem irodsFileSystem = new IRODSFileSystem();
IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory();
DataObjectAO dataObjectAO = accessObjectFactory.getDataObjectAO(irodsAccount);
dataObjectAO.setAccessPermissionOwn(irodsAccount.getZone(), yamlPath.getAbsolutePath(), "technicians");
dataObjectAO.setAccessPermissionOwn(irodsAccount.getZone(), jobPath.getAbsolutePath(), "technicians");
// Add metadata tag...
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