throw new QueueException("Content " + contentId + " is already queued");
M_log.warn(" getReviewScore Unable to queue content with content review Service: " + qe.getMessage());
/** * Access all AssignmentSubmission objects - known to us (not from external providers). * * @return A list of AssignmentSubmission objects. */ protected List getSubmissions(String context) { List<AssignmentSubmission> submissions = m_submissionStorage.getAll(context); //get all the review scores if (contentReviewService != null) { try { List<ContentReviewItem> reports = contentReviewService.getReportList(null, context); if (reports != null && reports.size() > 0) { updateSubmissionList(submissions, reports); } } catch (QueueException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SubmissionException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ReportException e) { // TODO Auto-generated catch block e.printStackTrace(); } } return submissions; } // getAssignmentSubmissions
M_log.warn(" getReviewScore(ContentResource) Unable to queue content with content review service: " + qe.getMessage());
@Override public int getReviewScore(String contentId, String assignmentRef, String userId) throws QueueException, ReportException, Exception { Optional<ContentReviewItem> matchingItem = getItemByContentId(contentId); if (!matchingItem.isPresent()) { log.debug("Content {} has not been queued previously", contentId); throw new QueueException("Content " + contentId + " has not been queued previously"); } ContentReviewItem item = matchingItem.get(); if (item.getStatus().compareTo(ContentReviewConstants.CONTENT_REVIEW_SUBMITTED_REPORT_AVAILABLE_CODE) != 0) { log.debug("Report not available: {}", item.getStatus()); throw new ReportException("Report not available: " + item.getStatus()); } return item.getReviewScore().intValue(); }
M_log.warn(" BaseAssignmentSubmissionEdit postAttachment: Unable to add content to Content Review queue: " + qe.getMessage());
throw new QueueException("Content " + contentId + " has not been queued previously");
throw new QueueException("Content " + contentId + " has not been queued previously");
throw new QueueException("Content " + contentId + " has not been queued previously");
throw new QueueException("Content " + contentId + " has not been queued previously");