org.dspace.checker
Class DailyReportEmailer

java.lang.Object
  extended by org.dspace.checker.DailyReportEmailer

public class DailyReportEmailer
extends Object

The email reporter creates and sends emails to an administrator. This only reports information for todays 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
DailyReportEmailer()
          Default constructor.
 
Method Summary
static void main(String[] args)
          Allows users to have email sent to them.
 void sendReport(File attachment, int numberOfBitstreams)
          Send the report through email.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DailyReportEmailer

public DailyReportEmailer()
Default constructor.

Method Detail

sendReport

public void sendReport(File attachment,
                       int numberOfBitstreams)
                throws IOException,
                       javax.mail.MessagingException
Send the report through email.

Parameters:
attachment - the file containing the report
numberOfBitstreams - the number of bitstreams reported
Throws:
IOException - if IO exception occurs
javax.mail.MessagingException - if message cannot be sent.

main

public static void main(String[] args)
Allows users to have email sent to them. The default is to send all reports in one email

Parameters:
args -
-h
help
-d
Select deleted bitstreams
-m
Bitstreams missing from assetstore
-c
Bitstreams whoses checksums were changed
-n
Bitstreams whoses checksums were changed
-a
Send all reports in one email


Copyright © 2010 DuraSpace. All Rights Reserved.