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.
|
List<String> |
getContentReviewItemsGroupedBySite(Integer providerId)
Gets all items grouped by site, order by most recent items descending
|
Date |
getDateQueued(Integer providerId,
String contentId)
Deprecated.
Use getQueuedItem method to get ContentReviewItem object
|
Date |
getDateSubmitted(Integer providerId,
String contentId)
Deprecated.
Use getQueuedItem method to get ContentReviewItem object
|
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.
|
Optional<ContentReviewItem> |
getQueuedItemByExternalId(Integer providerId,
String externalId)
Get an item that has been queued via external ID.
|
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)
Deprecated.
Use getQueuedItem method to get ContentReviewItem object
|
Long |
getReviewStatus(Integer providerId,
String contentId)
Deprecated.
Use getQueuedItem method to get ContentReviewItem object
|
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 reviewedQueueException@Deprecated int getReviewScore(Integer providerId, String contentId) throws QueueException, ReportException, Exception
providerId - the id of content review implementationcontentId - the id of the content itemintQueueExceptionReportExceptionException@Deprecated Long 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.LongQueueException@Deprecated Date getDateQueued(Integer providerId, String contentId) throws QueueException
providerId - the id of content review implementationcontentId - the id of the content itemjava.util.DateQueueException@Deprecated Date 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>Optional<ContentReviewItem> getQueuedItemByExternalId(Integer providerId, String externalId)
providerId - the id of content review implementationexternalId - the external 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>List<String> getContentReviewItemsGroupedBySite(Integer providerId)
providerId - the id of content review implementationList<String> list containing siteIds ordered by most recently used sites@Deprecated void update(ContentReviewItem item)
item - to update@Deprecated void delete(ContentReviewItem item)
item - to deleteCopyright © 2003–2019 Sakai Project. All rights reserved.