Package org.dspace.checker
Class DailyReportEmailer
java.lang.Object
org.dspace.checker.DailyReportEmailer
The email reporter creates and sends emails to an administrator. This only reports information for today's date. It is expected this will be used just after the checksum checker has been run.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAllows users to have email sent to them.voidsendReport(File attachment, int numberOfBitstreams) Send the report through email.
-
Constructor Details
-
DailyReportEmailer
public DailyReportEmailer()Default constructor.
-
-
Method Details
-
sendReport
public void sendReport(File attachment, int numberOfBitstreams) throws IOException, jakarta.mail.MessagingException Send the report through email.- Parameters:
attachment- the file containing the reportnumberOfBitstreams- the number of bitstreams reported- Throws:
IOException- if IO exception occursjakarta.mail.MessagingException- if message cannot be sent.
-
main
Allows users to have email sent to them. The default is to send all reports in one email- -h
- help
- -d
- Select deleted bitstreams
- -m
- Bitstreams missing from assetstore
- -c
- Bitstreams whose checksums were changed
- -n
- Bitstreams whose checksums were changed
- -a
- Send all reports in one email
- Parameters:
args- the command line arguments given
-