Package edu.pdx.cs.joy.grader
Class ProjectSubmissionsProcessor
java.lang.Object
edu.pdx.cs.joy.grader.StudentEmailAttachmentProcessor
edu.pdx.cs.joy.grader.ProjectSubmissionsProcessor
- All Implemented Interfaces:
EmailAttachmentProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.pdx.cs.joy.grader.StudentEmailAttachmentProcessor
StudentEmailAttachmentProcessor.SubmissionException -
Field Summary
FieldsFields inherited from class edu.pdx.cs.joy.grader.StudentEmailAttachmentProcessor
directory, gradeBook, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManifestgetManifestFromZipFile(InputStream zipFile) static Stringstatic LocalDateTimegetSubmissionTime(Attributes attrs) (package private) voidnoteSubmissionInGradeBook(Manifest manifest) voidprocessAttachment(jakarta.mail.Message message, String fileName, InputStream inputStream, String contentType) Methods inherited from class edu.pdx.cs.joy.grader.StudentEmailAttachmentProcessor
debug, info, logException, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.pdx.cs.joy.grader.EmailAttachmentProcessor
hasSupportedContentType
-
Field Details
-
EMAIL_FOLDER_NAME
- See Also:
-
-
Constructor Details
-
ProjectSubmissionsProcessor
-
-
Method Details
-
getSupportedContentTypes
-
processAttachment
public void processAttachment(jakarta.mail.Message message, String fileName, InputStream inputStream, String contentType) -
noteSubmissionInGradeBook
void noteSubmissionInGradeBook(Manifest manifest) throws StudentEmailAttachmentProcessor.SubmissionException -
getSubmissionTime
public static LocalDateTime getSubmissionTime(Attributes attrs) throws StudentEmailAttachmentProcessor.SubmissionException -
getStudentIdFromManifestAttributes
public static String getStudentIdFromManifestAttributes(Attributes attrs) throws StudentEmailAttachmentProcessor.SubmissionException -
getManifestFromZipFile
- Throws:
IOException
-
getEmailFolder
- Specified by:
getEmailFolderin classStudentEmailAttachmentProcessor
-