Edit C:\Users\Admin\.m2\repository\org\dspace\dspace-api\6.2\org\dspace\checker\DailyReportEmailer.class
???? 3? t ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? C ? ? ? ? ? ? ? ? 5 ? ? 5 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? C ? E ? E E I M M M M T X ? ? X X X! C" I# I$%& ?' M() ?*+,- ?./ log Lorg/apache/log4j/Logger; <init> ()V Code LineNumberTable LocalVariableTable this 'Lorg/dspace/checker/DailyReportEmailer; sendReport (Ljava/io/File;I)V hostname Ljava/lang/String; email Lorg/dspace/core/Email; attachment Ljava/io/File; numberOfBitstreams I StackMapTable Exceptions main ([Ljava/lang/String;)V e 'Lorg/apache/commons/cli/ParseException; myhelp &Lorg/apache/commons/cli/HelpFormatter; numBitstreams dirLocation directory Ljava/lang/Exception; args [Ljava/lang/String; parser *Lorg/apache/commons/cli/CommandLineParser; line $Lorg/apache/commons/cli/CommandLine; options Lorg/apache/commons/cli/Options; reporter 2Lorg/dspace/checker/service/SimpleReporterService; emailer calendar Ljava/util/GregorianCalendar; yesterday Ljava/util/Date; tomorrow report writer Ljava/io/FileWriter; context Lorg/dspace/core/Context; ?01 ? ?2 ? 34%5 <clinit> SourceFile DailyReportEmailer.java w x dspace.hostname678 org/dspace/core/Email java/lang/StringBuilder Checksum checker Report - 9:9; * Bitstreams found with POSSIBLE issues on <=>? report is attached ...@? checksum_checker_report.txtAB mail.adminC?D x "org/apache/commons/cli/PosixParser org/apache/commons/cli/Options h help HelpEF d Deleted >Send E-mail report for all bitstreams set as deleted for today m Missing GSend E-mail report for all bitstreams not found in assetstore for today c Changed OSend E-mail report for all bitstreams where checksum has been changed for today a All Send all E-mail reports u Unchecked #Send the Unchecked bitstream report n Not Processed JSend E-mail report for all bitstreams set to longer be processed for today0GH %org/apache/commons/cli/ParseException u vIJKLMN1OP $org/apache/commons/cli/HelpFormatter Checksum Reporter QRST ; Send Deleted bitstream email report: DailyReportEmailer -dUV? < Send Missing bitstreams email report: DailyReportEmailer -m : Send Checksum Changed email report: DailyReportEmailer -c G Send bitstream not to be processed email report: DailyReportEmailer -n 8 Send Un-checked bitstream report: DailyReportEmailer -u + Send All email reports: DailyReportEmailerWXYZ[ %org/dspace/checker/DailyReportEmailer java/util/GregorianCalendar\]^_ org/dspace/core/Context`cd we log.report.dir java/io/File w?fghg checker_report .txtij java/lang/IllegalStateException directory : does not exist java/io/FileWriter wkOlmn M --------------------------------- Begin Reporting ------------------------ o?2pq N --------------------------------- Report Spacer --------------------------- rqsqtquv K --------------------------------- End Report --------------------------- w xx x ~ ygz x java/lang/Exception Could not close writerJ{|g Unable to delete report file}K javax/mail/MessagingException java/sql/SQLException java/io/IOException~ java/lang/Object (org/apache/commons/cli/CommandLineParser "org/apache/commons/cli/CommandLine 0org/dspace/checker/service/SimpleReporterService java/util/Date java/lang/String java/lang/Throwable $org/dspace/core/ConfigurationManager getProperty &(Ljava/lang/String;)Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; setSubject (Ljava/lang/String;)V setContent addAttachment #(Ljava/io/File;Ljava/lang/String;)V addRecipient send addOption Y(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Lorg/apache/commons/cli/Options; parse Y(Lorg/apache/commons/cli/Options;[Ljava/lang/String;)Lorg/apache/commons/cli/CommandLine; org/apache/log4j/Logger fatal (Ljava/lang/Object;)V java/lang/System exit (I)V hasOption (C)Z printHelp 5(Ljava/lang/String;Lorg/apache/commons/cli/Options;)V out Ljava/io/PrintStream; java/io/PrintStream println 0org/dspace/checker/factory/CheckerServiceFactory getInstance 4()Lorg/dspace/checker/factory/CheckerServiceFactory; getSimpleReporterService 4()Lorg/dspace/checker/service/SimpleReporterService; add (II)V getTime ()Ljava/util/Date; org/dspace/core/Context$Mode Mode InnerClasses READ_ONLY Lorg/dspace/core/Context$Mode; !(Lorg/dspace/core/Context$Mode;)V exists ()Z isDirectory createTempFile B(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File; (Ljava/io/File;)V (Ljava/lang/String;)Z getOptions "()[Lorg/apache/commons/cli/Option; write getDeletedBitstreamReport X(Lorg/dspace/core/Context;Ljava/util/Date;Ljava/util/Date;Ljava/io/OutputStreamWriter;)I getChangedChecksumReport getBitstreamNotFoundReport getNotToBeProcessedReport getUncheckedBitstreamsReport 8(Lorg/dspace/core/Context;Ljava/io/OutputStreamWriter;)I flush close isValid abort *(Ljava/lang/Object;Ljava/lang/Throwable;)V delete error getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! C t u v w x y 3 *? ? z 0 1 { | } ~ y ? S? Q? N? Y? :? Y? ? ? ? -? ? ? ? +? ? ? ? ? z &