Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNLOCK
fairds
Commits
04e72d48
Commit
04e72d48
authored
Jan 07, 2022
by
Jasper Koehorst
Browse files
force enabled
parent
7ade428e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/nl/fairbydesign/views/unlock/export/Export.java
View file @
04e72d48
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment