Edit C:\Users\Admin\.m2\repository\org\dspace\dspace-api\6.2\org\dspace\embargo\EmbargoCLITool.class
???? 3s j ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ! ? ? ! ? ? ! ? ? ? ? ( ? ? ? ? ( ? ? ? ? ? ? ? ? ? 0 ? 0 ? ? 4 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? i ? i ? ? ? ? ? ? ? 0 ? 0 ? 0 ? ? ? ! ? I ? ? ? ? ? ? ? Q O ? i @ O ? O 4 ? ? log Lorg/apache/log4j/Logger; embargoService +Lorg/dspace/embargo/service/EmbargoService; <init> ()V Code LineNumberTable LocalVariableTable this #Lorg/dspace/embargo/EmbargoCLITool; main ([Ljava/lang/String;)V e 'Lorg/apache/commons/cli/ParseException; dso !Lorg/dspace/content/DSpaceObject; handle Ljava/lang/String; item Lorg/dspace/content/Item; ii Ljava/util/Iterator; now Ljava/util/Date; Ljava/lang/Exception; argv [Ljava/lang/String; status I options Lorg/apache/commons/cli/Options; line $Lorg/apache/commons/cli/CommandLine; context Lorg/dspace/core/Context; LocalVariableTypeTable /Ljava/util/Iterator<Lorg/dspace/content/Item;>; StackMapTable ? ? ? ? ? ? ? processOneItem i(Lorg/dspace/core/Context;Lorg/dspace/content/Item;Lorg/apache/commons/cli/CommandLine;Ljava/util/Date;)Z liftDate Lorg/dspace/content/DCDate; Z lift Ljava/util/List; 4Ljava/util/List<Lorg/dspace/content/MetadataValue;>;! ? Exceptions <clinit> SourceFile EmbargoCLITool.java o p org/apache/commons/cli/Options v verbose CPrint a line describing action taken for each embargoed Item found."# q quiet (Do not print anything except for errors. n dryrun @Do not change anything in the data model, print message instead. i identifier PProcess ONLY this Handle identifier(s), which must be an Item. Can be repeated. c check MFunction: ONLY check the state of embargoed Items, do NOT lift any embargoes. l MFunction: ONLY lift embargoes, do NOT check the state of any embargoed Items. a adjust $Function: Adjust bitstreams policies h help "org/apache/commons/cli/PosixParser$% %org/apache/commons/cli/ParseException&'( java/lang/StringBuilder Command error: )*+,-,./0 $org/apache/commons/cli/HelpFormatter %org/dspace/embargo/EmbargoServiceImpl12,345678 TCommand error: --lift and --check are mutually exclusive, try --help for assistance. org/dspace/core/Context9<= o>? p java/util/Date@ABCDEFGHI Error, cannot resolve handle= to a DSpace Item.JK org/dspace/core/Constants Error, the handle= is not a DSpace Item. org/dspace/content/Item ? ? m nLMNOPQRSTU pV p java/lang/Exception ERROR, got exception: )WX pYZ![K org/dspace/content/DCDate\] org/dspace/content/MetadataValue^, o0_` k l Testing embargo on item=a, , date=bcdefgh !Lifting embargo from Item handle= , lift date= 4DRY RUN: would have lifted embargo from Item handle=i` (Checking current embargo on Item handle=j` (Failed attempting to lift embargo, item= : klmnoCpqr !org/dspace/embargo/EmbargoCLITool java/lang/Object "org/apache/commons/cli/CommandLine java/lang/String org/dspace/content/DSpaceObject java/util/Iterator java/lang/Throwable java/util/List 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; java/lang/System err Ljava/io/PrintStream; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getMessage ()Ljava/lang/String; toString java/io/PrintStream println (Ljava/lang/String;)V java/lang/Class getName printHelp 5(Ljava/lang/String;Lorg/apache/commons/cli/Options;)V exit (I)V hasOption (C)Z org/dspace/core/Context$Mode Mode InnerClasses BATCH_EDIT Lorg/dspace/core/Context$Mode; !(Lorg/dspace/core/Context$Mode;)V turnOffAuthorisationSystem getOptionValues (C)[Ljava/lang/String; .org/dspace/handle/factory/HandleServiceFactory getInstance 2()Lorg/dspace/handle/factory/HandleServiceFactory; getHandleService +()Lorg/dspace/handle/service/HandleService; 'org/dspace/handle/service/HandleService resolveToObject N(Lorg/dspace/core/Context;Ljava/lang/String;)Lorg/dspace/content/DSpaceObject; getType ()I )org/dspace/embargo/service/EmbargoService findItemsByLiftMetadata /(Lorg/dspace/core/Context;)Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; uncacheEntity %(Lorg/dspace/core/ReloadableEntity;)V complete abort -(Ljava/lang/Object;)Ljava/lang/StringBuilder; printStackTrace getLiftMetadata D(Lorg/dspace/core/Context;Lorg/dspace/content/Item;)Ljava/util/List; size get (I)Ljava/lang/Object; getValue setEmbargo 5(Lorg/dspace/core/Context;Lorg/dspace/content/Item;)V getHandle org/apache/log4j/Logger debug (Ljava/lang/Object;)V toDate ()Ljava/util/Date; before (Ljava/util/Date;)Z liftEmbargo checkEmbargo error *(Ljava/lang/Object;Ljava/lang/Throwable;)V getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; 0org/dspace/embargo/factory/EmbargoServiceFactory 4()Lorg/dspace/embargo/factory/EmbargoServiceFactory; getEmbargoService -()Lorg/dspace/embargo/service/EmbargoService; ! i j k l m n o p q / *? ? r s t u v w q S<? Y? M,? W, ? W, ? W,? W,? W,? W,? W,? WN? Y? ,*? N? 6:? ? !Y? "#? $? %? $? &? '? (Y? )*? +,? ,? --h? .? ? (Y? )*? +,? ,? --l? .? -c? .? ? /? '? -:? 0Y? 1? 2:? 3? 4Y? 5:-i? .? ?-i? 6:?66? ?2: ? 7? 8 ? 9 : ? '? ? !Y? ":? $ ? $;? $? &? '<? B ? <? '? ? !Y? ">? $ ? $?? $? &? '<? ? @-? A? <???v? >? B? C :? D ? (? E ? @:-? A? <? F???? G:? Y? H? Q:? L:? ? !Y? "J? $? K? &? '? L<? $? H? :? :? ? H? :?? -? l y | ?? I ?? I-25 I ??: (: AFI I:<: r E E G H J "