public interface ContentReviewService
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowResubmission()
Does the service support resubmissions?
|
void |
checkForReports()
Check for reports for all submitted items that don't have reports yet
|
void |
createAssignment(String siteId,
String taskId,
Map extraAsnnOpts)
This is a vendor specific method needed for some deep integrations
(such as A2) to pre provision assignments on an external content
checking system.
|
List<ContentReviewItem> |
getAllContentReviewItems(String siteId,
String taskId)
This is a complement to getReportList, except that it returns all
ContentReviewItems for a site and task, rather than just the ones
whose reports have been completed.
|
Map |
getAssignment(String siteId,
String taskId)
This is a vendor specific method to allow getting information about
a particular assignment in an external plagiarism checking system.
|
Date |
getDateQueued(String contextId)
The date an item was queued
|
Date |
getDateSubmitted(String contextId)
The date an item was submitted to the queue
|
String |
getIconUrlforScore(Long score)
Get a icon URL that for a specific score
|
String |
getLocalizedStatusMessage(String messageCode)
Get a status message for a submission in the locale of the current user
|
String |
getLocalizedStatusMessage(String messageCode,
Locale locale)
Get a status message for a submission in the locale specified
|
String |
getLocalizedStatusMessage(String messageCode,
String userRef)
Get a status message for a submission in the locale of the specified user
|
List<ContentReviewItem> |
getReportList(String siteId)
Get a list of reports for all tasks in a site
|
List<ContentReviewItem> |
getReportList(String siteId,
String taskId)
Get a list of reports for a task
|
String |
getReviewError(String contentId)
Deprecated.
|
String |
getReviewReport(String contentId)
Get the URL of the report
|
String |
getReviewReportInstructor(String contentId)
Get the URL for a report constructed for an Instructor
|
String |
getReviewReportStudent(String contentId)
Get the URL of a report constructed for a student
|
int |
getReviewScore(String contentId)
Retrieve a score for a specific item
|
Long |
getReviewStatus(String contentId)
Get the status of a submission
|
String |
getServiceName()
Return the Name of the Service Implementation for Display Purposes
|
boolean |
isAcceptableContent(ContentResource resource)
Is the content resource of an type that can be accepted by the service implementation
|
boolean |
isSiteAcceptable(Site site)
Can this site make use of the content review service
|
void |
processQueue()
Proccess all pending jobs in the Queue
|
void |
queueContent(String userId,
String siteId,
String taskId,
String contentId)
Add an item to the Queue for Submission to Turnitin
|
void |
removeFromQueue(String ContentId)
Remove an item from the review Queue
|
void |
resetUserDetailsLockedItems(String userId)
Reset the Items for a specific user that where locked because of incomplete user details
|
void queueContent(String userId, String siteId, String taskId, String contentId) throws QueueException
userID - if nulll current user is usedSiteId - is null current site is usedEntity - reference to the task this is forReference - to the content object that should be submittedQueueExceptionint getReviewScore(String contentId) throws QueueException, ReportException, Exception
contentId - QueueExceptionReportExceptionExceptionString getReviewReport(String contentId) throws QueueException, ReportException
contentId - QueueExceptionReportException - * * @deprecated since Nov 2007, use getReviewReportInstructor(String contentId) or getReviewReportInstructor(String contentId)String getReviewReportStudent(String contentId) throws QueueException, ReportException
contentId - QueueExceptionReportExceptionString getReviewReportInstructor(String contentId) throws QueueException, ReportException
contentId - QueueExceptionReportExceptionLong getReviewStatus(String contentId) throws QueueException
contentId - QueueExceptionDate getDateQueued(String contextId) throws QueueException
contextId - QueueExceptionDate getDateSubmitted(String contextId) throws QueueException, SubmissionException
contextId - QueueExceptionSubmissionExceptionvoid processQueue()
void checkForReports()
List<ContentReviewItem> getReportList(String siteId, String taskId) throws QueueException, SubmissionException, ReportException
siteId - taskId - QueueExceptionSubmissionExceptionReportExceptionList<ContentReviewItem> getReportList(String siteId) throws QueueException, SubmissionException, ReportException
siteId - QueueExceptionSubmissionExceptionReportExceptionList<ContentReviewItem> getAllContentReviewItems(String siteId, String taskId) throws QueueException, SubmissionException, ReportException
siteId - taskId - QueueExceptionSubmissionExceptionReportExceptionString getServiceName()
void resetUserDetailsLockedItems(String userId)
userId - boolean isAcceptableContent(ContentResource resource)
resource - boolean isSiteAcceptable(Site site)
site - String getIconUrlforScore(Long score)
score - boolean allowResubmission()
void removeFromQueue(String ContentId)
ContentId - String getLocalizedStatusMessage(String messageCode, String userRef)
messageCode - userRef - String getLocalizedStatusMessage(String messageCode)
messageCode - String getReviewError(String contentId)
getLocalizedStatusMessage(String)contentId - String getLocalizedStatusMessage(String messageCode, Locale locale)
messageCode - locale - Map getAssignment(String siteId, String taskId) throws SubmissionException, TransientSubmissionException
siteId - taskId - SubmissionExceptionTransientSubmissionExceptionvoid createAssignment(String siteId, String taskId, Map extraAsnnOpts) throws SubmissionException, TransientSubmissionException
siteId - taskId - extraAsnnOpts - SubmissionExceptionTransientSubmissionExceptionCopyright © 2003-2014 Sakai Project. All Rights Reserved.