Class NoOpContentReviewService
- java.lang.Object
-
- org.sakaiproject.contentreview.service.BaseContentReviewService
-
- org.sakaiproject.contentreview.service.NoOpContentReviewService
-
- All Implemented Interfaces:
ContentReviewService
public class NoOpContentReviewService extends BaseContentReviewService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sakaiproject.contentreview.service.BaseContentReviewService
BaseContentReviewService.LastErrorUpdater
-
-
Field Summary
-
Fields inherited from class org.sakaiproject.contentreview.service.BaseContentReviewService
assignmentService, crqs, entityManager, preferencesService, serverConfigurationService
-
-
Constructor Summary
Constructors Constructor Description NoOpContentReviewService()
-
Method Summary
-
Methods inherited from class org.sakaiproject.contentreview.service.BaseContentReviewService
allowSubmissionsOnBehalf, createFormattedMessageXML, createLastError, deleteAllSubmissionsForAssignment, getLocalizedLastError, getResourceLoader, getResourceLoaderName, getReviewReportRedirectUrl, getUserEULAVersion, getWebhookUrl, queueAllSubmissionsForAssignment, setLastError, setLastError, setLastError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sakaiproject.contentreview.service.ContentReviewService
getProviderId
-
-
-
-
Method Detail
-
queueContent
public void queueContent(String userId, String siteId, String taskId, List<ContentResource> content) throws QueueException
- Throws:
QueueException
-
getReviewScore
public int getReviewScore(String contentId, String taskId, String userId) throws QueueException, ReportException, Exception
- Throws:
QueueExceptionReportExceptionException
-
getReviewReport
public String getReviewReport(String contentId, String assignmentRef, String userId) throws QueueException, ReportException
- Specified by:
getReviewReportin interfaceContentReviewService- Overrides:
getReviewReportin classBaseContentReviewService- Throws:
QueueExceptionReportException
-
getReviewReportStudent
public String getReviewReportStudent(String contentId, String assignmentRef, String userId) throws QueueException, ReportException
- Specified by:
getReviewReportStudentin interfaceContentReviewService- Overrides:
getReviewReportStudentin classBaseContentReviewService- Throws:
QueueExceptionReportException
-
getReviewReportInstructor
public String getReviewReportInstructor(String contentId, String assignmentRef, String userId) throws QueueException, ReportException
- Specified by:
getReviewReportInstructorin interfaceContentReviewService- Overrides:
getReviewReportInstructorin classBaseContentReviewService- Throws:
QueueExceptionReportException
-
getReviewStatus
public Long getReviewStatus(String contentId) throws QueueException
- Throws:
QueueException
-
getDateQueued
public Date getDateQueued(String contextId) throws QueueException
- Throws:
QueueException
-
getDateSubmitted
public Date getDateSubmitted(String contextId) throws QueueException, SubmissionException
- Throws:
QueueExceptionSubmissionException
-
processQueue
public void processQueue()
-
checkForReports
public void checkForReports()
-
syncRosters
public void syncRosters()
-
getReportList
public List<ContentReviewItem> getReportList(String siteId, String taskId) throws QueueException, SubmissionException, ReportException
-
getReportList
public List<ContentReviewItem> getReportList(String siteId) throws QueueException, SubmissionException, ReportException
-
getAllContentReviewItems
public List<ContentReviewItem> getAllContentReviewItems(String siteId, String taskId) throws QueueException, SubmissionException, ReportException
-
getServiceName
public String getServiceName()
-
resetUserDetailsLockedItems
public void resetUserDetailsLockedItems(String userId)
-
allowAllContent
public boolean allowAllContent()
-
isAcceptableContent
public boolean isAcceptableContent(ContentResource resource)
-
getAcceptableExtensionsToMimeTypes
public Map<String,SortedSet<String>> getAcceptableExtensionsToMimeTypes()
-
getAcceptableFileTypesToExtensions
public Map<String,SortedSet<String>> getAcceptableFileTypesToExtensions()
-
isSiteAcceptable
public boolean isSiteAcceptable(Site site)
-
allowResubmission
public boolean allowResubmission()
-
removeFromQueue
public void removeFromQueue(String contentId)
-
getLocalizedStatusMessage
public String getLocalizedStatusMessage(String messageCode, String userRef)
-
getLocalizedStatusMessage
public String getLocalizedStatusMessage(String messageCode, Locale locale)
-
getAssignment
public Map getAssignment(String siteId, String taskId) throws SubmissionException, TransientSubmissionException
-
createAssignment
public void createAssignment(String siteId, String taskId, Map extraAsnnOpts) throws SubmissionException, TransientSubmissionException
- Specified by:
createAssignmentin interfaceContentReviewService- Overrides:
createAssignmentin classBaseContentReviewService- Throws:
SubmissionExceptionTransientSubmissionException
-
deleteAssignment
public void deleteAssignment(String siteId, String taskId)
Description copied from class:BaseContentReviewService- Specified by:
deleteAssignmentin interfaceContentReviewService- Overrides:
deleteAssignmentin classBaseContentReviewService
-
getContentReviewItemByContentId
public ContentReviewItem getContentReviewItemByContentId(String contentId)
-
getEndUserLicenseAgreementTimestamp
public Instant getEndUserLicenseAgreementTimestamp()
-
getUserEULATimestamp
public Instant getUserEULATimestamp(String userId)
- Specified by:
getUserEULATimestampin interfaceContentReviewService- Overrides:
getUserEULATimestampin classBaseContentReviewService
-
updateUserEULATimestamp
public void updateUserEULATimestamp(String userId)
- Specified by:
updateUserEULATimestampin interfaceContentReviewService- Overrides:
updateUserEULATimestampin classBaseContentReviewService
-
getEndUserLicenseAgreementVersion
public String getEndUserLicenseAgreementVersion()
-
webhookEvent
public void webhookEvent(HttpServletRequest request, int providerId, Optional<String> customParam)
-
-