public interface ContentReviewQueueService
| Modifier and Type | Method and Description |
|---|---|
void |
delete(ContentReviewItem item)
Deprecated.
|
List<ContentReviewItem> |
getAllContentReviewItemsGroupedBySiteAndTask(Integer providerId)
Gets all items grouped by site and task
|
List<ContentReviewItem> |
getAwaitingReports(Integer providerId)
Get items awaiting a report from the content review service
|
List<ContentReviewItem> |
getContentReviewItems(Integer providerId,
String siteId,
String taskId)
Get the items for a site or a task.
|
Date |
getDateQueued(Integer providerId,
String contentId)
Get when the content item was first queued.
|
Date |
getDateSubmitted(Integer providerId,
String contentId)
Gets when the item was submitted to the content review service.
|
Optional<ContentReviewItem> |
getNextItemInQueueToSubmit(Integer providerId)
Get the next item in the queue to be submitted to the content review service
|
Optional<ContentReviewItem> |
getQueuedItem(Integer providerId,
String contentId)
Get an item that has been queued and contentId.
|
List<ContentReviewItem> |
getQueuedNotSubmittedItems(Integer providerId)
Get items queued but have not yet been submitted to the content review service
|
int |
getReviewScore(Integer providerId,
String contentId)
Get the score that has been stored by the content review service.
|
Long |
getReviewStatus(Integer providerId,
String contentId)
Get the current status of the content item
org.sakaiproject.contentreview.dao.ContentReviewConstants |
void |
queueContent(Integer providerId,
String userId,
String siteId,
String taskId,
List<ContentResource> content)
Queue a content item that will later be sent to the content review service
when the Content Review Process Job is run.
|
void |
removeFromQueue(Integer providerId,
String contentId)
Remove an item from queue
|
void |
resetUserDetailsLockedItems(Integer providerId,
String userId)
Sets the items to be retried for a specific user and a status of
ContentReviewConstants |
void |
update(ContentReviewItem item)
Deprecated.
|
void queueContent(Integer providerId, String userId, String siteId, String taskId, List<ContentResource> content) throws QueueException
providerId - the id of content review implementationuserId - the user id associated with the item to be reviewedsiteId - the site id associated with the item to be reviewedtaskId - the task id associated with the item to reviewedcontent - a java.util.List of the items to be reviewedQueueExceptionint getReviewScore(Integer providerId, String contentId) throws QueueException, ReportException, Exception
providerId - the id of content review implementationcontentId - the id of the content itemintQueueExceptionReportExceptionExceptionLong getReviewStatus(Integer providerId, String contentId) throws QueueException
org.sakaiproject.contentreview.dao.ContentReviewConstantsproviderId - the id of content review implementationcontentId - the id of the content itemjava.lang.LongQueueExceptionDate getDateQueued(Integer providerId, String contentId) throws QueueException
providerId - the id of content review implementationcontentId - the id of the content itemjava.util.DateQueueExceptionDate getDateSubmitted(Integer providerId, String contentId) throws QueueException, SubmissionException
providerId - the id of content review implementationcontentId - the id of the content itemjava.util.DateQueueExceptionSubmissionExceptionList<ContentReviewItem> getContentReviewItems(Integer providerId, String siteId, String taskId)
providerId - the id of content review implementationsiteId - the site id associated with the item to be reviewedtaskId - the task id associated with the item to reviewedjava.util.List<ContentReviewItem>Optional<ContentReviewItem> getQueuedItem(Integer providerId, String contentId)
providerId - the id of content review implementationcontentId - the id of the content itemOptional<ContentReviewItem>List<ContentReviewItem> getQueuedNotSubmittedItems(Integer providerId)
providerId - the id of content review implementationList<ContentReviewItem>Optional<ContentReviewItem> getNextItemInQueueToSubmit(Integer providerId)
providerId - the id of content review implementationOptional<ContentReviewItem>List<ContentReviewItem> getAwaitingReports(Integer providerId)
providerId - the id of content review implementationList<ContentReviewItem>void resetUserDetailsLockedItems(Integer providerId, String userId)
ContentReviewConstantsproviderId - the id of content review implementationuserId - the user id for which items to resetvoid removeFromQueue(Integer providerId, String contentId)
providerId - the id of content review implementationcontentId - the id of the content itemList<ContentReviewItem> getAllContentReviewItemsGroupedBySiteAndTask(Integer providerId)
providerId - the id of content review implementationList<ContentReviewItem>@Deprecated void update(ContentReviewItem item)
item - to update@Deprecated void delete(ContentReviewItem item)
item - to deleteCopyright © 2003–2018 Sakai Project. All rights reserved.