Class ContentReviewQueueServiceImpl

  • All Implemented Interfaces:
    org.sakaiproject.contentreview.service.ContentReviewQueueService

    public class ContentReviewQueueServiceImpl
    extends Object
    implements org.sakaiproject.contentreview.service.ContentReviewQueueService
    • Constructor Detail

      • ContentReviewQueueServiceImpl

        public ContentReviewQueueServiceImpl()
    • Method Detail

      • queueContent

        @Transactional
        public void queueContent​(Integer providerId,
                                 String userId,
                                 String siteId,
                                 String taskId,
                                 List<org.sakaiproject.content.api.ContentResource> content)
                          throws org.sakaiproject.contentreview.exception.QueueException
        Specified by:
        queueContent in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
        Throws:
        org.sakaiproject.contentreview.exception.QueueException
      • getReviewScore

        @Transactional(readOnly=true)
        @Deprecated
        public int getReviewScore​(Integer providerId,
                                  String contentId)
                           throws org.sakaiproject.contentreview.exception.QueueException,
                                  org.sakaiproject.contentreview.exception.ReportException,
                                  Exception
        Deprecated.
        Specified by:
        getReviewScore in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
        Throws:
        org.sakaiproject.contentreview.exception.QueueException
        org.sakaiproject.contentreview.exception.ReportException
        Exception
      • getReviewStatus

        @Transactional(readOnly=true)
        @Deprecated
        public Long getReviewStatus​(Integer providerId,
                                    String contentId)
                             throws org.sakaiproject.contentreview.exception.QueueException
        Deprecated.
        Specified by:
        getReviewStatus in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
        Throws:
        org.sakaiproject.contentreview.exception.QueueException
      • getDateQueued

        @Transactional(readOnly=true)
        @Deprecated
        public Date getDateQueued​(Integer providerId,
                                  String contentId)
                           throws org.sakaiproject.contentreview.exception.QueueException
        Deprecated.
        Specified by:
        getDateQueued in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
        Throws:
        org.sakaiproject.contentreview.exception.QueueException
      • getDateSubmitted

        @Transactional(readOnly=true)
        @Deprecated
        public Date getDateSubmitted​(Integer providerId,
                                     String contentId)
                              throws org.sakaiproject.contentreview.exception.QueueException,
                                     org.sakaiproject.contentreview.exception.SubmissionException
        Deprecated.
        Specified by:
        getDateSubmitted in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
        Throws:
        org.sakaiproject.contentreview.exception.QueueException
        org.sakaiproject.contentreview.exception.SubmissionException
      • getContentReviewItems

        @Transactional(readOnly=true)
        public List<org.sakaiproject.contentreview.dao.ContentReviewItem> getContentReviewItems​(Integer providerId,
                                                                                                String siteId,
                                                                                                String taskId)
        Specified by:
        getContentReviewItems in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • getAllContentReviewItemsGroupedBySiteAndTask

        @Transactional(readOnly=true)
        public List<org.sakaiproject.contentreview.dao.ContentReviewItem> getAllContentReviewItemsGroupedBySiteAndTask​(Integer providerId)
        Specified by:
        getAllContentReviewItemsGroupedBySiteAndTask in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • getContentReviewItemsGroupedBySite

        @Transactional(readOnly=true)
        public List<String> getContentReviewItemsGroupedBySite​(Integer providerId)
        Specified by:
        getContentReviewItemsGroupedBySite in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • resetUserDetailsLockedItems

        @Transactional
        public void resetUserDetailsLockedItems​(Integer providerId,
                                                String userId)
        Specified by:
        resetUserDetailsLockedItems in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • removeFromQueue

        @Transactional
        public void removeFromQueue​(Integer providerId,
                                    String contentId)
        Specified by:
        removeFromQueue in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • getQueuedItem

        @Transactional(readOnly=true)
        public Optional<org.sakaiproject.contentreview.dao.ContentReviewItem> getQueuedItem​(Integer providerId,
                                                                                            String contentId)
        Specified by:
        getQueuedItem in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • getQueuedItemByExternalId

        @Transactional(readOnly=true)
        public Optional<org.sakaiproject.contentreview.dao.ContentReviewItem> getQueuedItemByExternalId​(Integer providerId,
                                                                                                        String externalId)
        Specified by:
        getQueuedItemByExternalId in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • getQueuedNotSubmittedItems

        @Transactional(readOnly=true)
        public List<org.sakaiproject.contentreview.dao.ContentReviewItem> getQueuedNotSubmittedItems​(Integer providerId)
        Specified by:
        getQueuedNotSubmittedItems in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • getNextItemInQueueToSubmit

        @Transactional(readOnly=true)
        public Optional<org.sakaiproject.contentreview.dao.ContentReviewItem> getNextItemInQueueToSubmit​(Integer providerId)
        Specified by:
        getNextItemInQueueToSubmit in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • getAwaitingReports

        @Transactional(readOnly=true)
        public List<org.sakaiproject.contentreview.dao.ContentReviewItem> getAwaitingReports​(Integer providerId)
        Specified by:
        getAwaitingReports in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • update

        @Transactional
        public void update​(org.sakaiproject.contentreview.dao.ContentReviewItem item)
        Specified by:
        update in interface org.sakaiproject.contentreview.service.ContentReviewQueueService
      • delete

        @Transactional
        public void delete​(org.sakaiproject.contentreview.dao.ContentReviewItem item)
        Specified by:
        delete in interface org.sakaiproject.contentreview.service.ContentReviewQueueService