-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YDA-5282: lift embargo metadata already removed during publication up…
…date
- Loading branch information
1 parent
56641f4
commit 9de77ef
Showing
2 changed files
with
16 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
# Lift embargo on data access when embargo date is passed | ||
#!/usr/bin/irule -r irods_rule_engine_plugin-irods_rule_language-instance -F | ||
# | ||
# Lift embargo on data access when embargo date is passed. | ||
run { | ||
uuGetUserType("$userNameClient#$rodsZoneClient", *usertype); | ||
uuGetUserType("$userNameClient#$rodsZoneClient", *usertype); | ||
|
||
if (*usertype != "rodsadmin") { | ||
failmsg(-1, "This script needs to be run by a rodsadmin"); | ||
} | ||
|
||
# Retrieve current timestamp. | ||
msiGetIcatTime(*timestamp, "human"); | ||
writeLine('stdout', '[' ++ *timestamp ++ '] Start finding data access under embargo that must be lifted'); | ||
|
||
*result = rule_lift_embargos_on_data_access(); | ||
|
||
writeLine('stdout', 'Status: Finished finding of data under embargo that must be lifted'); | ||
writeLine('stdout', *result); | ||
if (*usertype != "rodsadmin") { | ||
failmsg(-1, "This script needs to be run by a rodsadmin"); | ||
} | ||
|
||
writeLine('stdout', 'Start finding vault packages under embargo that can be lifted'); | ||
*result = rule_lift_embargos_on_data_access(); | ||
writeLine('stdout', 'Finished finding vault packages under embargo that can be lifted with status *result'); | ||
} | ||
input null | ||
output ruleExecOut |