Interface ContentReviewQueueService
-
public interface ContentReviewQueueService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddelete(ContentReviewItem item)Deprecated.List<ContentReviewItem>getAllContentReviewItemsGroupedBySiteAndTask(Integer providerId)Gets all items grouped by site and taskList<ContentReviewItem>getAwaitingReports(Integer providerId)Get items awaiting a report from the content review serviceList<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 descendingDategetDateQueued(Integer providerId, String contentId)Deprecated.Use getQueuedItem method to get ContentReviewItem objectDategetDateSubmitted(Integer providerId, String contentId)Deprecated.Use getQueuedItem method to get ContentReviewItem objectOptional<ContentReviewItem>getNextItemInQueueToSubmit(Integer providerId)Get the next item in the queue to be submitted to the content review serviceOptional<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 serviceintgetReviewScore(Integer providerId, String contentId)Deprecated.Use getQueuedItem method to get ContentReviewItem objectLonggetReviewStatus(Integer providerId, String contentId)Deprecated.Use getQueuedItem method to get ContentReviewItem objectvoidqueueContent(Integer providerId, String userId, String siteId, String taskId, List<org.sakaiproject.content.api.ContentResource> content)Queue a content item that will later be sent to the content review service when the Content Review Process Job is run.voidremoveFromQueue(Integer providerId, String contentId)Remove an item from queuevoidresetUserDetailsLockedItems(Integer providerId, String userId)Sets the items to be retried for a specific user and a status ofContentReviewConstantsvoidupdate(ContentReviewItem item)Deprecated.
-
-
-
Method Detail
-
queueContent
void queueContent(Integer providerId, String userId, String siteId, String taskId, List<org.sakaiproject.content.api.ContentResource> content) throws QueueException
Queue a content item that will later be sent to the content review service when the Content Review Process Job is run.- Parameters:
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- ajava.util.Listof the items to be reviewed- Throws:
QueueException
-
getReviewScore
@Deprecated int getReviewScore(Integer providerId, String contentId) throws QueueException, ReportException, Exception
Deprecated.Use getQueuedItem method to get ContentReviewItem objectGet the score that has been stored by the content review service.- Parameters:
providerId- the id of content review implementationcontentId- the id of the content item- Returns:
- an
int - Throws:
QueueExceptionReportExceptionException
-
getReviewStatus
@Deprecated Long getReviewStatus(Integer providerId, String contentId) throws QueueException
Deprecated.Use getQueuedItem method to get ContentReviewItem objectGet the current status of the content itemorg.sakaiproject.contentreview.dao.ContentReviewConstants- Parameters:
providerId- the id of content review implementationcontentId- the id of the content item- Returns:
- a
java.lang.Long - Throws:
QueueException
-
getDateQueued
@Deprecated Date getDateQueued(Integer providerId, String contentId) throws QueueException
Deprecated.Use getQueuedItem method to get ContentReviewItem objectGet when the content item was first queued.- Parameters:
providerId- the id of content review implementationcontentId- the id of the content item- Returns:
- a
java.util.Date - Throws:
QueueException
-
getDateSubmitted
@Deprecated Date getDateSubmitted(Integer providerId, String contentId) throws QueueException, SubmissionException
Deprecated.Use getQueuedItem method to get ContentReviewItem objectGets when the item was submitted to the content review service.- Parameters:
providerId- the id of content review implementationcontentId- the id of the content item- Returns:
- the
java.util.Date - Throws:
QueueExceptionSubmissionException
-
getContentReviewItems
List<ContentReviewItem> getContentReviewItems(Integer providerId, String siteId, String taskId)
Get the items for a site or a task.- Parameters:
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 reviewed- Returns:
- a
java.util.List<ContentReviewItem>
-
getQueuedItem
Optional<ContentReviewItem> getQueuedItem(Integer providerId, String contentId)
Get an item that has been queued and contentId.- Parameters:
providerId- the id of content review implementationcontentId- the id of the content item- Returns:
Optional<ContentReviewItem>
-
getQueuedItemByExternalId
Optional<ContentReviewItem> getQueuedItemByExternalId(Integer providerId, String externalId)
Get an item that has been queued via external ID.- Parameters:
providerId- the id of content review implementationexternalId- the external id of the content item- Returns:
Optional<ContentReviewItem>
-
getQueuedNotSubmittedItems
List<ContentReviewItem> getQueuedNotSubmittedItems(Integer providerId)
Get items queued but have not yet been submitted to the content review service- Parameters:
providerId- the id of content review implementation- Returns:
List<ContentReviewItem>
-
getNextItemInQueueToSubmit
Optional<ContentReviewItem> getNextItemInQueueToSubmit(Integer providerId)
Get the next item in the queue to be submitted to the content review service- Parameters:
providerId- the id of content review implementation- Returns:
Optional<ContentReviewItem>
-
getAwaitingReports
List<ContentReviewItem> getAwaitingReports(Integer providerId)
Get items awaiting a report from the content review service- Parameters:
providerId- the id of content review implementation- Returns:
List<ContentReviewItem>
-
resetUserDetailsLockedItems
void resetUserDetailsLockedItems(Integer providerId, String userId)
Sets the items to be retried for a specific user and a status ofContentReviewConstants- Parameters:
providerId- the id of content review implementationuserId- the user id for which items to reset
-
removeFromQueue
void removeFromQueue(Integer providerId, String contentId)
Remove an item from queue- Parameters:
providerId- the id of content review implementationcontentId- the id of the content item
-
getAllContentReviewItemsGroupedBySiteAndTask
List<ContentReviewItem> getAllContentReviewItemsGroupedBySiteAndTask(Integer providerId)
Gets all items grouped by site and task- Parameters:
providerId- the id of content review implementation- Returns:
List<ContentReviewItem>
-
getContentReviewItemsGroupedBySite
List<String> getContentReviewItemsGroupedBySite(Integer providerId)
Gets all items grouped by site, order by most recent items descending- Parameters:
providerId- the id of content review implementation- Returns:
List<String>list containing siteIds ordered by most recently used sites
-
update
@Deprecated void update(ContentReviewItem item)
Deprecated.Update an item- Parameters:
item- to update
-
delete
@Deprecated void delete(ContentReviewItem item)
Deprecated.Delete an item- Parameters:
item- to delete
-
-