@Override public List<String> generateOutput(RecordSet recordSet) { log.info("BTE OutputGenerator started. Records to output: " + recordSet.getRecords().size()); // Printing debug message String totalString = ""; for (Record record : recordSet.getRecords()) { totalString += SubmissionLookupUtils.getPrintableString(record) + "\n"; } log.debug("Records to output:\n" + totalString); witems = new ArrayList<WorkspaceItem>(); for (Record rec : recordSet.getRecords()) { try { WorkspaceItem wi = workspaceItemService.create(context, collection, true); merge(formName, wi.getItem(), rec); witems.add(wi); } catch (AuthorizeException e) { log.error(e.getMessage(), e); } catch (SQLException e) { log.error(e.getMessage(), e); } } return new ArrayList<String>(); }
return 1; } catch (AuthorizeException ex) { System.err.println(ex.getMessage()); return 1; } catch (IOException ex) {
id.id.toString() + " couldn't be converted: " + "anonymous user doesn't have read permsission. " + ex.getMessage()); toDelete.add(id); } catch (IllegalArgumentException ex) {
System.exit(1); } catch (AuthorizeException ex) { System.err.format("Not authorized: %s%n", ex.getMessage()); System.exit(1);
metadataField = metadataFieldService.create(context, epersonSchema, metadataName, null, null); } catch (AuthorizeException e) { log.error(e.getMessage(), e); return false; } catch (NonUniqueMetadataException e) {
processException(e.getMessage(), context); } catch (AuthorizeException e) { processException(e.getMessage(), context); } catch (ContextException e) { processException("Unauthorized filtered item query. " + e.getMessage(), context);
processException("Context error:" + e.getMessage(), context); } catch (AuthorizeException e) { processException("Authorize error:" + e.getMessage(), context); } catch (IOException e) { processException("IO error:" + e.getMessage(), context);
} catch (AuthorizeException e) { log.error("User not authroized to create bundle on item \"" + item.getName() + "\": " + e.getMessage()); } catch (AuthorizeException e) { log.error("User not authroized to create bundle on item \"" + item.getName() + "\": " + e.getMessage());
} catch (AuthorizeException e) { processException( "Could not update metadata in item(id=" + itemId + "), AuthorizeException. Message: " + e.getMessage(), context); } finally {
log.error(e.getMessage(), e); } catch (AuthorizeException e) { log.error(e.getMessage(), e);
context); } catch (AuthorizeException e) { processException("Could not create new metadata field, AuthorizeException. Message: " + e.getMessage(), context); } catch (NonUniqueMetadataException e) {
context); } catch (AuthorizeException e) { processException("Could not create new metadata schema, AuthorizeException. Message: " + e.getMessage(), context); } catch (NonUniqueMetadataException e) {
throw new IOException(authE.getMessage(), authE); } catch (SQLException sqlE) { throw new IOException(sqlE.getMessage(), sqlE);
logDebugMessage(ae.getMessage()); status = Curator.CURATE_ERROR; } catch (SQLException sqle) {
result.setMessage(new Message(null,ae.getMessage()));
context); } catch (AuthorizeException e) { processException("Could not create new top community, AuthorizeException. Message: " + e.getMessage(), context); } finally {
this.submissionInfo = FlowUtils.obtainSubmissionInfo(objectModel, this.id); } catch (AuthorizeException e) { log.error(e.getMessage(), e); throw new ProcessingException(e);
.getTypeText(dso) + " " + dso.getID() + " (handle " + dso.getHandle() + ")" + ", not authorized: " + ex.getMessage()); return; } catch (RDFMissingIdentifierException ex) {
"Skipping processing of " + contentServiceFactory.getDSpaceObjectService(dso).getTypeText(dso) + " " + dso.getID() + " (handle " + dso.getHandle() + ")" + ", not authorized: " + ex.getMessage()); return;