[CST-5755] Ported process special group tracking

This commit is contained in:
Jurgen Mamani
2022-04-28 14:17:15 +02:00
parent 365827ce92
commit e4a4b913b9
13 changed files with 230 additions and 12 deletions

View File

@@ -259,12 +259,19 @@ public class Curation extends DSpaceRunnable<CurationScriptConfiguration> {
super.handler.logError("EPerson not found: " + currentUserUuid);
throw new IllegalArgumentException("Unable to find a user with uuid: " + currentUserUuid);
}
assignSpecialGroupsInContext();
this.context.setCurrentUser(eperson);
} catch (SQLException e) {
handler.handleException("Something went wrong trying to fetch eperson for uuid: " + currentUserUuid, e);
}
}
protected void assignSpecialGroupsInContext() throws SQLException {
for (UUID uuid : handler.getSpecialGroups()) {
context.setSpecialGroup(uuid);
}
}
/**
* Fills in some optional command line options.
* Checks if there are missing required options or invalid values for options.