Class ContentReviewFederatedServiceImpl
- java.lang.Object
-
- org.sakaiproject.contentreview.service.BaseContentReviewService
-
- org.sakaiproject.contentreview.service.ContentReviewFederatedServiceImpl
-
- All Implemented Interfaces:
ContentReviewService
public class ContentReviewFederatedServiceImpl 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 ContentReviewFederatedServiceImpl()
-
Method Summary
-
Methods inherited from class org.sakaiproject.contentreview.service.BaseContentReviewService
createFormattedMessageXML, createLastError, deleteAllSubmissionsForAssignment, getLocalizedLastError, getResourceLoaderName, getUserEULAVersion, getWebhookUrl, queueAllSubmissionsForAssignment, setLastError, setLastError, setLastError
-
-
-
-
Method Detail
-
init
public void init()
-
allowResubmission
public boolean allowResubmission()
-
checkForReports
public void checkForReports()
-
syncRosters
public void syncRosters()
-
getProviderId
public Integer getProviderId()
-
createAssignment
public void createAssignment(String arg0, String arg1, Map arg2) 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
-
getAllContentReviewItems
public List<ContentReviewItem> getAllContentReviewItems(String arg0, String arg1) throws QueueException, SubmissionException, ReportException
-
getAssignment
public Map getAssignment(String arg0, String arg1) throws SubmissionException, TransientSubmissionException
-
getDateQueued
public Date getDateQueued(String arg0) throws QueueException
- Throws:
QueueException
-
getDateSubmitted
public Date getDateSubmitted(String arg0) throws QueueException, SubmissionException
- Throws:
QueueExceptionSubmissionException
-
getReportList
public List<ContentReviewItem> getReportList(String siteId) throws QueueException, SubmissionException, ReportException
-
getReportList
public List<ContentReviewItem> getReportList(String siteId, String taskId) throws QueueException, SubmissionException, ReportException
-
getReviewReport
public String getReviewReport(String contentId, String assignmentRef, String userId) throws QueueException, ReportException
- Specified by:
getReviewReportin interfaceContentReviewService- Overrides:
getReviewReportin 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
-
getReviewReportStudent
public String getReviewReportStudent(String contentId, String assignmentRef, String userId) throws QueueException, ReportException
- Specified by:
getReviewReportStudentin interfaceContentReviewService- Overrides:
getReviewReportStudentin classBaseContentReviewService- Throws:
QueueExceptionReportException
-
getReviewStatus
public Long getReviewStatus(String contentId) throws QueueException
- Throws:
QueueException
-
getServiceName
public String getServiceName()
-
allowAllContent
public boolean allowAllContent()
-
isAcceptableContent
public boolean isAcceptableContent(ContentResource arg0)
-
getAcceptableExtensionsToMimeTypes
public Map<String,SortedSet<String>> getAcceptableExtensionsToMimeTypes()
-
getAcceptableFileTypesToExtensions
public Map<String,SortedSet<String>> getAcceptableFileTypesToExtensions()
-
isSiteAcceptable
public boolean isSiteAcceptable(Site arg0)
-
processQueue
public void processQueue()
-
queueContent
public void queueContent(String userId, String siteId, String assignmentReference, List<ContentResource> content) throws QueueException
- Throws:
QueueException
-
removeFromQueue
public void removeFromQueue(String arg0)
-
resetUserDetailsLockedItems
public void resetUserDetailsLockedItems(String arg0)
-
getReviewScore
public int getReviewScore(String contentId, String assignmentRef, String userId) throws QueueException, ReportException, Exception
- Throws:
QueueExceptionReportExceptionException
-
getContentReviewItemByContentId
public ContentReviewItem getContentReviewItemByContentId(String arg0)
-
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()
-
getReviewReportRedirectUrl
public String getReviewReportRedirectUrl(String contentId, String assignmentRef, String userId, String contextId, boolean isInstructor)
- Specified by:
getReviewReportRedirectUrlin interfaceContentReviewService- Overrides:
getReviewReportRedirectUrlin classBaseContentReviewService
-
webhookEvent
public void webhookEvent(HttpServletRequest request, int providerId, Optional<String> customParam)
-
allowSubmissionsOnBehalf
public boolean allowSubmissionsOnBehalf()
- Specified by:
allowSubmissionsOnBehalfin interfaceContentReviewService- Overrides:
allowSubmissionsOnBehalfin classBaseContentReviewService
-
getResourceLoader
protected ResourceLoader getResourceLoader()
Description copied from class:BaseContentReviewServiceThe Resource Loader specific to the content-review service implementation- Overrides:
getResourceLoaderin classBaseContentReviewService
-
-