private void processDIP(ModelService model, Report report, JobPluginInfo jobPluginInfo, Job job, DIP dip) {
PluginState state = PluginState.SUCCESS;
Report reportItem = PluginHelper.initPluginReportItem(this, dip.getId(), DIP.class);
try {
dip.setPermissions(permissions);
model.updateDIPPermissions(dip);
} catch (GenericException | NotFoundException | RequestNotValidException | AuthorizationDeniedException e) {
state = PluginState.FAILURE;
reportItem.addPluginDetails("Could not update DIP permissions: " + e.getMessage());
} finally {
reportItem.setPluginState(state);
report.addReport(reportItem);
jobPluginInfo.incrementObjectsProcessed(state);
PluginHelper.updatePartialJobReport(this, model, reportItem, true, job);
}
}